summaryrefslogtreecommitdiffstats
path: root/test/test_vxlan_gpe.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/test_vxlan_gpe.py
parente513f98f5baa120c37d0ccb796ab06b424f3e473 (diff)
test:vxlan over ipv6 tests
Change-Id: Id910db0e3a07ecc6f469e2f0d1e97f39ba48cc60 Signed-off-by: Eyal Bari <ebari@cisco.com>
Diffstat (limited to 'test/test_vxlan_gpe.py')
-rw-r--r--test/test_vxlan_gpe.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test_vxlan_gpe.py b/test/test_vxlan_gpe.py
index 61d86fe07dc..cf24652a257 100644
--- a/test/test_vxlan_gpe.py
+++ b/test/test_vxlan_gpe.py
@@ -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, running_extended_tests
from template_bd import BridgeDomain
@@ -31,6 +31,10 @@ class TestVxlanGpe(BridgeDomain, VppTestCase):
VXLAN(vni=vni, flags=self.flags) /
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 VXLAN-GPE header