netlink: fix failing TestRtNlAddIfaddrLo::test_add_6 tests.

Recent netlink commit added hook for calling IPv6 code upon implicit
inteface bring-up on adding first interface address. This hook handles
link-local ifa addition for the loopback interface, resulting in
failed assertion in the loopback tests.

Fix the tests by fixing the assert.
This commit is contained in:
Alexander V. Chernikov 2023-06-13 15:24:24 +00:00
parent bd76e4c860
commit 9247238cc4

View File

@ -698,7 +698,7 @@ def test_add_6(self, ifa_str):
self.send_check_success(msg)
lst = self.get_ifa_list(iface.ifindex, self.get_family_from_ip(ifa.ip))
assert len(lst) == 1
assert len(lst) == 2 # link-local should be auto-created as well
rx_msg = self.find_msg_by_ifa(lst, ifa.ip)
assert rx_msg is not None