diff options
author | Neale Ranns <nranns@cisco.com> | 2018-08-08 01:06:40 -0700 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2018-08-10 08:26:00 +0000 |
commit | d0df49f26eabf2f534b567f3370e50c4e804aeea (patch) | |
tree | eea014e723f00b4e00e57937fc5f6e043e2162f9 /test/test_udp.py | |
parent | 404d88edce63a635b58ba54d21d91735ff933584 (diff) |
Use IP address types on UDP encap API
Change-Id: I3c714c519b6d0009329b50947ce250c18ee2a85a
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'test/test_udp.py')
-rw-r--r-- | test/test_udp.py | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/test/test_udp.py b/test/test_udp.py index 230335ff169..b0c6ee9c46a 100644 --- a/test/test_udp.py +++ b/test/test_udp.py @@ -1,7 +1,7 @@ #!/usr/bin/env python import unittest from framework import VppTestCase, VppTestRunner -from vpp_udp_encap import VppUdpEncap +from vpp_udp_encap import * from vpp_ip_route import VppIpRoute, VppRoutePath, VppIpTable, VppMplsLabel from scapy.packet import Raw @@ -100,19 +100,24 @@ class TestUdpEncap(VppTestCase): self.pg2.local_ip6, self.pg2.remote_ip6, 332, 442, - table_id=2, - is_ip6=1) + table_id=2) udp_encap_3 = VppUdpEncap(self, 3, self.pg3.local_ip6, self.pg3.remote_ip6, 333, 443, - table_id=3, - is_ip6=1) + table_id=3) udp_encap_0.add_vpp_config() udp_encap_1.add_vpp_config() udp_encap_2.add_vpp_config() udp_encap_3.add_vpp_config() + self.logger.info(self.vapi.cli("sh udp encap")) + + self.assertTrue(find_udp_encap(self, udp_encap_2)) + self.assertTrue(find_udp_encap(self, udp_encap_3)) + self.assertTrue(find_udp_encap(self, udp_encap_0)) + self.assertTrue(find_udp_encap(self, udp_encap_1)) + # # Routes via each UDP encap object - all combinations of v4 and v6. # |