Skip to content

Commit

Permalink
read portchannel name from LAG_NAME_MAP_TABLE in COUNTERS_DB (sonic-n…
Browse files Browse the repository at this point in the history
  • Loading branch information
anilkpandey authored and prsunny committed Nov 19, 2019
1 parent bc3964b commit 21ebca9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/swsssdk/port_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ def get_interface_oid_map(db):
"""
db.connect('COUNTERS_DB')
if_name_map = db.get_all('COUNTERS_DB', 'COUNTERS_PORT_NAME_MAP', blocking=True)
if_lag_name_map = db.get_all('COUNTERS_DB', 'COUNTERS_LAG_NAME_MAP', blocking=True)
if_name_map.update(if_lag_name_map)

oid_pfx = len("oid:0x")
if_name_map = {if_name: sai_oid[oid_pfx:] for if_name, sai_oid in if_name_map.items()}

Expand Down

0 comments on commit 21ebca9

Please sign in to comment.