VPP-1506: dump local punts and registered punt sockets
[vpp.git] / test / test_geneve.py
index c32302c..d77bfbf 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/env python
 
 import socket
-from util import ip4n_range
+from util import ip4n_range, ip4_range
 import unittest
 from framework import VppTestCase, VppTestRunner
 from template_bd import BridgeDomain
@@ -31,6 +31,10 @@ class TestGeneve(BridgeDomain, VppTestCase):
                 GENEVE(vni=vni) /
                 pkt)
 
+    def ip_range(self, start, end):
+        """ range of remote ip's """
+        return ip4_range(self.pg0.remote_ip4, start, end)
+
     def encap_mcast(self, pkt, src_ip, src_mac, vni):
         """
         Encapsulate the original payload frame by adding GENEVE header with its
@@ -98,7 +102,7 @@ class TestGeneve(BridgeDomain, VppTestCase):
         add or del tunnels sharing the same mcast dst
         to test geneve ref_count mechanism
         """
-        n_shared_dst_tunnels = 2000
+        n_shared_dst_tunnels = 10
         vni_start = 10000
         vni_end = vni_start + n_shared_dst_tunnels
         for vni in range(vni_start, vni_end):
@@ -124,7 +128,7 @@ class TestGeneve(BridgeDomain, VppTestCase):
         """
         add or del tunnels to test geneve stability
         """
-        n_distinct_dst_tunnels = 200
+        n_distinct_dst_tunnels = 10
         ip_range_start = 10
         ip_range_end = ip_range_start + n_distinct_dst_tunnels
         for dest_ip4n in ip4n_range(cls.mcast_ip4n, ip_range_start,