Skip to content

Commit

Permalink
Fix bug: check port alias even when port_config_file parameter is not…
Browse files Browse the repository at this point in the history
… provided (#4787)
  • Loading branch information
qiluo-msft authored Jun 17, 2020
1 parent 6014773 commit edf3160
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/sonic-config-engine/minigraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -966,10 +966,7 @@ def parse_xml(filename, platform=None, port_config_file=None, asic_name=None):

for port_name, port in ports.items():
# get port alias from port_config.ini
if port_config_file:
alias = port.get('alias')
else:
alias = port_name
alias = port.get('alias', port_name)
# generate default 100G FEC
# Note: FECDisabled only be effective on 100G port right now
if port.get('speed') == '100000' and linkmetas.get(alias, {}).get('FECDisabled', '').lower() != 'true':
Expand Down

0 comments on commit edf3160

Please sign in to comment.