#!/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
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
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):
"""
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,