summaryrefslogtreecommitdiffstats
path: root/test/test_gtpu.py
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2018-02-25 12:27:18 -0800
committerDave Wallace <dwallacelf@gmail.com>2018-03-19 13:09:45 +0000
commit2bc940272ec75d1094326eafb4a3fa2c614e3a7b (patch)
treed813084708e143fc9eb6edbca408ba93beadaf41 /test/test_gtpu.py
parentf38bef46a3511249f352d18072f97a49f2c5b06c (diff)
Scapy upgrade to 2.4.0.rc5
- many of the patches fd.io applies in test/patches/2.3.3 are now upstreamed in 2.4 - 2.4 adds support for IGMPv3 which is my main motivation for the upgrade Change-Id: If2c0a524e3cba320b4a5d8cd07817c6ea2bf0c5a Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'test/test_gtpu.py')
-rw-r--r--test/test_gtpu.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_gtpu.py b/test/test_gtpu.py
index 9411fffcf0e..b0c0a7459dc 100644
--- a/test/test_gtpu.py
+++ b/test/test_gtpu.py
@@ -27,7 +27,7 @@ class TestGtpu(BridgeDomain, VppTestCase):
return (Ether(src=self.pg0.remote_mac, dst=self.pg0.local_mac) /
IP(src=self.pg0.remote_ip4, dst=self.pg0.local_ip4) /
UDP(sport=self.dport, dport=self.dport, chksum=0) /
- GTP_U_Header(TEID=vni, gtp_type=self.gtp_type, length=150) /
+ GTP_U_Header(teid=vni, gtp_type=self.gtp_type, length=150) /
pkt)
def encap_mcast(self, pkt, src_ip, src_mac, vni):
@@ -38,7 +38,7 @@ class TestGtpu(BridgeDomain, VppTestCase):
return (Ether(src=src_mac, dst=self.mcast_mac) /
IP(src=src_ip, dst=self.mcast_ip4) /
UDP(sport=self.dport, dport=self.dport, chksum=0) /
- GTP_U_Header(TEID=vni, gtp_type=self.gtp_type, length=150) /
+ GTP_U_Header(teid=vni, gtp_type=self.gtp_type, length=150) /
pkt)
def decapsulate(self, pkt):
@@ -68,8 +68,8 @@ class TestGtpu(BridgeDomain, VppTestCase):
# Verify UDP destination port is GTPU 2152, source UDP port could be
# arbitrary.
self.assertEqual(pkt[UDP].dport, type(self).dport)
- # Verify TEID
- self.assertEqual(pkt[GTP_U_Header].TEID, vni)
+ # Verify teid
+ self.assertEqual(pkt[GTP_U_Header].teid, vni)
def test_encap(self):
""" Encapsulation test