Skip to content

Commit

Permalink
Revert "Revert "read portchannel name from LAG_NAME_MAP_TABLE in COUN…
Browse files Browse the repository at this point in the history
…TERS_DB (#51)" (#57)" (#64)

This reverts commit 022d8fb.

Add #51 back in by reverting #57, in because issues should be addressed by the merge of sonic-net/sonic-swss#1124
  • Loading branch information
jleveque authored Apr 8, 2020
1 parent df61734 commit ee9ee14
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 ee9ee14

Please sign in to comment.