File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -276,19 +276,17 @@ def main():
276
276
deep_update (data , FormatConverter .db_to_output (configdb .get_config ()))
277
277
278
278
279
- # for multi Asic platforms to generate the platform info for an Asic
280
- # the minigraph file must be provided
279
+ # the minigraph file must be provided to get the mac address for backend asics
281
280
if args .platform_info :
282
281
asic_role = None
283
- mac = None
284
282
if asic_name is not None :
285
- if args .minigraph is None :
286
- print ('Failed to get minigraph' )
287
- sys .exit (1 )
288
- asic_role = parse_asic_sub_role (args .minigraph , asic_name )
283
+ if args .minigraph is not None :
284
+ asic_role = parse_asic_sub_role (args .minigraph , asic_name )
289
285
290
- if asic_role is not None and asic_role .lower () == "backend" :
291
- mac = get_system_mac (namespace = asic_name )
286
+ if asic_role is not None and asic_role .lower () == "backend" :
287
+ mac = get_system_mac (namespace = asic_name )
288
+ else :
289
+ mac = get_system_mac ()
292
290
else :
293
291
mac = get_system_mac ()
294
292
You can’t perform that action at this time.
0 commit comments