tests docs: update python3 venv packages
[vpp.git] / extras / deprecated / plugins / gbp / test_gbp.py
index 8c53b39..84dda76 100644 (file)
@@ -1099,7 +1099,7 @@ class TestGBP(VppTestCase):
             # adj-fibs due to the fact the the BVI address has /32 and
             # the subnet is not attached.
             #
-            for (ip, fip) in zip(ep.ips, ep.fips):
+            for ip, fip in zip(ep.ips, ep.fips):
                 # Add static mappings for each EP from the 10/8 to 11/8 network
                 if ip_address(ip).version == 4:
                     flags = self.nat_config_flags.NAT_IS_ADDR_ONLY
@@ -1162,6 +1162,31 @@ class TestGBP(VppTestCase):
             lf = VppL2FibEntry(self, epg_nat.bd.bd, ep.mac, ep.recirc.recirc, bvi_mac=0)
             lf.add_vpp_config()
 
+        self.assert_equal(
+            self.statistics["/net/arp/tx/gratuitous"][
+                :, epgs[0].uplink.sw_if_index
+            ].sum(),
+            2,
+        )
+        self.assert_equal(
+            self.statistics["/net/arp/tx/gratuitous"][
+                :, epgs[1].uplink.sw_if_index
+            ].sum(),
+            1,
+        )
+        self.assert_equal(
+            self.statistics["/net/ip6-nd/tx/gratuitous"][
+                :, epgs[0].uplink.sw_if_index
+            ].sum(),
+            2,
+        )
+        self.assert_equal(
+            self.statistics["/net/ip6-nd/tx/gratuitous"][
+                :, epgs[1].uplink.sw_if_index
+            ].sum(),
+            1,
+        )
+
         #
         # ARP packets for unknown IP are sent to the EPG uplink
         #