aboutsummaryrefslogtreecommitdiffstats
path: root/test/template_bd.py
diff options
context:
space:
mode:
authorEyal Bari <ebari@cisco.com>2018-06-18 13:01:59 +0300
committerJohn Lo <loj@cisco.com>2018-06-21 19:21:36 +0000
commitcef1e2a8b49306fc1347d97b6d74255923292edf (patch)
treedfe6899ef00c6fa78ec7c9b00951dbf2d8f32623 /test/template_bd.py
parente513f98f5baa120c37d0ccb796ab06b424f3e473 (diff)
test:vxlan over ipv6 tests
Change-Id: Id910db0e3a07ecc6f469e2f0d1e97f39ba48cc60 Signed-off-by: Eyal Bari <ebari@cisco.com>
Diffstat (limited to 'test/template_bd.py')
-rw-r--r--test/template_bd.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/template_bd.py b/test/template_bd.py
index 080b2e6bcc5..291f4684db9 100644
--- a/test/template_bd.py
+++ b/test/template_bd.py
@@ -29,6 +29,11 @@ class BridgeDomain(object):
Raw('\xa5' * 100))
@abstractmethod
+ def ip_range(self, start, end):
+ """ range of remote ip's """
+ pass
+
+ @abstractmethod
def encap_mcast(self, pkt, src_ip, src_mac, vni):
""" Encapsulate mcast packet """
pass
@@ -148,8 +153,7 @@ class BridgeDomain(object):
ip_range_end = 30
mcast_stream = [
self.encap_mcast(self.frame_request, ip, mac, self.mcast_flood_bd)
- for ip in ip4_range(self.pg0.remote_ip4,
- ip_range_start, ip_range_end)]
+ for ip in self.ip_range(ip_range_start, ip_range_end)]
self.pg0.add_stream(mcast_stream)
self.pg2.enable_capture()
self.pg_start()