]> git.puffer.fish Git - matthieu/frr.git/commit
tests: Fix determination of IPv6 link-local addresses
authorMartin Buck <mb-tmp-tvguho.pbz@gromit.dyndns.org>
Fri, 19 Feb 2021 11:09:16 +0000 (12:09 +0100)
committerMartin Buck <mb-tmp-tvguho.pbz@gromit.dyndns.org>
Mon, 22 Feb 2021 08:48:16 +0000 (09:48 +0100)
commitfd03dacd03c5af99652a209580de1651d9645fd4
treebd84233e8c8f71d65a5fa3953d5c9fb7613f84c3
parent2031dbf31cfbe7e6fb0028b34054db5d92de05d2
tests: Fix determination of IPv6 link-local addresses

When parsing the output of "ip -6 address", allow arbitrary base interface
names (the part after "@" in the interface name), not just "if0-9". Without
this, link-local addresses sometimes are attributed to the wrong interface
because we're not matching the interface name but still handle the
interface's addresses.

Signed-off-by: Martin Buck <mb-tmp-tvguho.pbz@gromit.dyndns.org>
tests/topotests/lib/topotest.py