From 1fb62c0bcce06d335833a274f4c9c086aa907f97 Mon Sep 17 00:00:00 2001 From: Vladislav Grishenko Date: Mon, 16 May 2022 01:44:43 +0500 Subject: fib: fix dpo-receive address in ip6-ll fibs Need to fill frp_addr for local path, it's used by dpo-receive. If not, address output can be invalid: $ sudo vppctl sh ip6-ll fe80::dcad:ff:fe00:3/128 IP6-link-local:loop3, fib_index:2, locks:[IPv6-nd:1, ] fe80::dcad:ff:fe00:3/128 fib:2 index:55 locks:2 IPv6-nd refs:1 entry-flags:connected,import,local, src-flags:added,contributing,active, path-list:[72] locks:2 flags:shared,local, uPRF-list:58 len:0 itfs:[] path:[82] pl-index:72 ip6 weight=1 pref=0 receive: oper-flags:resolved, cfg-flags:local,glean, [@0]: dpo-receive: 8000:100:fe80::dcad:ff on loop3 forwarding: unicast-ip6-chain [@0]: dpo-load-balance: [proto:ip6 index:57 buckets:1 uRPF:58 to:[0:0]] [0] [@2]: dpo-receive: 8000:100:fe80::dcad:ff on loop3 Type: fix Change-Id: Ib9874c5eac74af789e721098d512a1058cb8e404 Signed-off-by: Vladislav Grishenko --- test/test_ip6.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/test_ip6.py b/test/test_ip6.py index 01a6d94288c..38bce973e86 100644 --- a/test/test_ip6.py +++ b/test/test_ip6.py @@ -274,7 +274,7 @@ class TestIPv6(TestIPv6ND): def tearDown(self): """Run standard test teardown and log ``show ip6 neighbors``.""" - for i in self.interfaces: + for i in reversed(self.interfaces): i.unconfig_ip6() i.admin_down() for i in self.sub_interfaces: @@ -1100,6 +1100,8 @@ class TestIPv6(TestIPv6ND): self.pg_start() subitf = VppDot1QSubint(self, self.pg1, 99) + self.interfaces.append(subitf) + self.sub_interfaces.append(subitf) subitf.admin_up() subitf.config_ip6() -- cgit 1.2.3-korg