Skip to content

Commit

Permalink
[sonic-cfggen] Allow cfggen to work on system without ports
Browse files Browse the repository at this point in the history
Signed-off-by: liora <liora@nvidia.com>
  • Loading branch information
liorghub committed Jul 6, 2021
1 parent e662e65 commit db76a6f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/sonic-config-engine/sonic-cfggen
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,6 @@ def main():
if args.port_config is None:
args.port_config = device_info.get_path_to_port_config_file(hwsku)
(ports, _, _) = get_port_config(hwsku, platform, args.port_config, asic_id)
if not ports:
print('Failed to get port config', file=sys.stderr)
sys.exit(1)
deep_update(data, {'PORT': ports})

brkout_table = get_breakout_mode(hwsku, platform, args.port_config)
Expand Down

0 comments on commit db76a6f

Please sign in to comment.