Fixed issue#15359 by adding support of IpaddrToIfIndex MIB #284
Build #20231004.1 had test failures
Details
- Failed: 25 (6.89%)
- Passed: 331 (91.18%)
- Other: 7 (1.93%)
- Total: 363
Annotations
Check failure on line 1416 in Build log
azure-pipelines / Azure.sonic-snmpagent
Build log #L1416
Bash exited with code '1'.
Check failure on line 17 in Build log
azure-pipelines / Azure.sonic-snmpagent
Build log #L17
There are one or more test failures detected in result files. Detailed summary of published test results can be viewed in the Tests tab.
Check failure on line 1 in test_getnextpdu
azure-pipelines / Azure.sonic-snmpagent
test_getnextpdu
test setup failure
Raw output
cls = <class 's.tests.test_arp.TestSonicMIB'>
@classmethod
def setUpClass(cls):
cls.lut = MIBTable(SonicMIB)
for updater in cls.lut.updater_instances:
> updater.update_data()
tests/test_arp.py:27:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sonic_ax_impl.mibs.ietf.rfc1213.IfIndexUpdater object at 0x7f12f4dd8f28>
def update_data(self):
self.if_index_map = {}
self.if_index_list = []
interfaces = Namespace.dbs_keys(self.db_conn, mibs.APPL_DB, "INTF_TABLE:*")
for interface in interfaces:
ethTablePrefix = re.search(r"INTF_TABLE\:[A-Za-z]+[0-9]+\:[0-9.\:A-Fa-f]+", interface)
if ethTablePrefix is None:
continue
else:
dev = ethTablePrefix.group().split(':')[1]
ip = ':'.join(ethTablePrefix.group().split(':')[2:])
self._update_if_index_info(dev, ip)
mgmt_ipv4 = os.popen('ip addr show eth0').read().split("inet ")[1].split("/")[0]
if (len(mgmt_ipv4) != 0):
self._update_if_index_info("eth0", mgmt_ipv4)
> mgmt_ipv6 = os.popen('ip addr show eth0').read().split("inet6 ")[1].split("/")[0]
E IndexError: list index out of range
src/sonic_ax_impl/mibs/ietf/rfc1213.py:224: IndexError
Check failure on line 1 in test_getnextpdu_empty
azure-pipelines / Azure.sonic-snmpagent
test_getnextpdu_empty
test setup failure
Raw output
cls = <class 's.tests.test_arp.TestSonicMIB'>
@classmethod
def setUpClass(cls):
cls.lut = MIBTable(SonicMIB)
for updater in cls.lut.updater_instances:
> updater.update_data()
tests/test_arp.py:27:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sonic_ax_impl.mibs.ietf.rfc1213.IfIndexUpdater object at 0x7f12f4dd8f28>
def update_data(self):
self.if_index_map = {}
self.if_index_list = []
interfaces = Namespace.dbs_keys(self.db_conn, mibs.APPL_DB, "INTF_TABLE:*")
for interface in interfaces:
ethTablePrefix = re.search(r"INTF_TABLE\:[A-Za-z]+[0-9]+\:[0-9.\:A-Fa-f]+", interface)
if ethTablePrefix is None:
continue
else:
dev = ethTablePrefix.group().split(':')[1]
ip = ':'.join(ethTablePrefix.group().split(':')[2:])
self._update_if_index_info(dev, ip)
mgmt_ipv4 = os.popen('ip addr show eth0').read().split("inet ")[1].split("/")[0]
if (len(mgmt_ipv4) != 0):
self._update_if_index_info("eth0", mgmt_ipv4)
> mgmt_ipv6 = os.popen('ip addr show eth0').read().split("inet6 ")[1].split("/")[0]
E IndexError: list index out of range
src/sonic_ax_impl/mibs/ietf/rfc1213.py:224: IndexError
Check failure on line 1 in test_getnextpdu_exactmatch
azure-pipelines / Azure.sonic-snmpagent
test_getnextpdu_exactmatch
test setup failure
Raw output
cls = <class 's.tests.test_arp.TestSonicMIB'>
@classmethod
def setUpClass(cls):
cls.lut = MIBTable(SonicMIB)
for updater in cls.lut.updater_instances:
> updater.update_data()
tests/test_arp.py:27:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sonic_ax_impl.mibs.ietf.rfc1213.IfIndexUpdater object at 0x7f12f4dd8f28>
def update_data(self):
self.if_index_map = {}
self.if_index_list = []
interfaces = Namespace.dbs_keys(self.db_conn, mibs.APPL_DB, "INTF_TABLE:*")
for interface in interfaces:
ethTablePrefix = re.search(r"INTF_TABLE\:[A-Za-z]+[0-9]+\:[0-9.\:A-Fa-f]+", interface)
if ethTablePrefix is None:
continue
else:
dev = ethTablePrefix.group().split(':')[1]
ip = ':'.join(ethTablePrefix.group().split(':')[2:])
self._update_if_index_info(dev, ip)
mgmt_ipv4 = os.popen('ip addr show eth0').read().split("inet ")[1].split("/")[0]
if (len(mgmt_ipv4) != 0):
self._update_if_index_info("eth0", mgmt_ipv4)
> mgmt_ipv6 = os.popen('ip addr show eth0').read().split("inet6 ")[1].split("/")[0]
E IndexError: list index out of range
src/sonic_ax_impl/mibs/ietf/rfc1213.py:224: IndexError
Check failure on line 1 in test_getpdu
azure-pipelines / Azure.sonic-snmpagent
test_getpdu
test setup failure
Raw output
cls = <class 's.tests.test_arp.TestSonicMIB'>
@classmethod
def setUpClass(cls):
cls.lut = MIBTable(SonicMIB)
for updater in cls.lut.updater_instances:
> updater.update_data()
tests/test_arp.py:27:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <sonic_ax_impl.mibs.ietf.rfc1213.IfIndexUpdater object at 0x7f12f4dd8f28>
def update_data(self):
self.if_index_map = {}
self.if_index_list = []
interfaces = Namespace.dbs_keys(self.db_conn, mibs.APPL_DB, "INTF_TABLE:*")
for interface in interfaces:
ethTablePrefix = re.search(r"INTF_TABLE\:[A-Za-z]+[0-9]+\:[0-9.\:A-Fa-f]+", interface)
if ethTablePrefix is None:
continue
else:
dev = ethTablePrefix.group().split(':')[1]
ip = ':'.join(ethTablePrefix.group().split(':')[2:])
self._update_if_index_info(dev, ip)
mgmt_ipv4 = os.popen('ip addr show eth0').read().split("inet ")[1].split("/")[0]
if (len(mgmt_ipv4) != 0):
self._update_if_index_info("eth0", mgmt_ipv4)
> mgmt_ipv6 = os.popen('ip addr show eth0').read().split("inet6 ")[1].split("/")[0]
E IndexError: list index out of range
src/sonic_ax_impl/mibs/ietf/rfc1213.py:224: IndexError