Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
API: Use string type instead of u8.
[vpp.git]
/
test
/
test_vxlan_gpe.py
diff --git
a/test/test_vxlan_gpe.py
b/test/test_vxlan_gpe.py
index
61d86fe
..
cf24652
100644
(file)
--- a/
test/test_vxlan_gpe.py
+++ b/
test/test_vxlan_gpe.py
@@
-1,7
+1,7
@@
#!/usr/bin/env python
import socket
#!/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
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)
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
def encap_mcast(self, pkt, src_ip, src_mac, vni):
"""
Encapsulate the original payload frame by adding VXLAN-GPE header