Skip to content

Commit

Permalink
Support multiple IP addresses for lldp_loc_man_addr (sonic-net#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenkelly authored and qiluo-msft committed Apr 25, 2019
1 parent fe60afa commit 0e27329
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lldp_syncd/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@ def parse_chassis(self, chassis_attributes):
chassis_id = id_attributes.get('value', '')
descr = attributes.get('descr', '')
mgmt_ip = attributes.get('mgmt-ip', '')
if isinstance(mgmt_ip, list):
mgmt_ip = ','.join(mgmt_ip)
except (KeyError, ValueError):
logger.exception("Could not infer system information from: {}"
.format(chassis_attributes))
Expand Down

0 comments on commit 0e27329

Please sign in to comment.