Skip to content

Commit

Permalink
Revert "read portchannel name from LAG_NAME_MAP_TABLE in COUNTERS_DB (s…
Browse files Browse the repository at this point in the history
…onic-net#51)" (sonic-net#57)

This reverts commit 21ebca9.
  • Loading branch information
qiluo-msft authored Dec 9, 2019
1 parent 21ebca9 commit 022d8fb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/swsssdk/port_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ 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 022d8fb

Please sign in to comment.