From 8d7c5aa92414661d1506e61d4b84c77292d205ad Mon Sep 17 00:00:00 2001 From: bingwang Date: Fri, 14 Aug 2020 00:33:24 -0700 Subject: [PATCH] Fix exception in fdb.py caused by IPv6 Address. PR #1982 added IPv6 address to vlan interface, which caused regression in test_fdb_mac_expire. This commit is to address this issue. --- tests/fdb/files/fdb.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/fdb/files/fdb.j2 b/tests/fdb/files/fdb.j2 index 6c0b7c79615..d2ffa91fd40 100644 --- a/tests/fdb/files/fdb.j2 +++ b/tests/fdb/files/fdb.j2 @@ -1,3 +1,5 @@ {% for vlan in minigraph_vlan_interfaces %} +{% if vlan['addr'] | ipv4 %} {{ vlan['subnet'] }} {% for ifname in minigraph_vlans[vlan['attachto']]['members'] %} {{ minigraph_port_indices[ifname] }} {% endfor %} +{% endif %} {% endfor %}