From e792917572a7d293b53db4163b26596c112af0c3 Mon Sep 17 00:00:00 2001 From: Lukas Stockner Date: Tue, 27 Jun 2023 18:23:04 +0200 Subject: [PATCH] Change ifName to return EthernetX name --- src/sonic_ax_impl/mibs/ietf/rfc1213.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sonic_ax_impl/mibs/ietf/rfc1213.py b/src/sonic_ax_impl/mibs/ietf/rfc1213.py index 0150cdf0f..e36c9ec3e 100644 --- a/src/sonic_ax_impl/mibs/ietf/rfc1213.py +++ b/src/sonic_ax_impl/mibs/ietf/rfc1213.py @@ -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): """