Skip to content

Commit

Permalink
Change ifName to return EthernetX name
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasstockner committed Oct 30, 2023
1 parent a1e11f8 commit e792917
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sonic_ax_impl/mibs/ietf/rfc1213.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,8 @@ def interface_description(self, sub_id):
elif oid in self.vlan_oid_name_map:
return self.vlan_oid_name_map[oid]

return self.if_alias_map[self.oid_name_map[oid]]
# Don't use alias map here to get the EthernetX name (unlike ifName)
return self.oid_name_map[oid]

def _get_counter(self, oid, table_name):
"""
Expand Down

0 comments on commit e792917

Please sign in to comment.