diff options
author | Neale Ranns <neale.ranns@cisco.com> | 2018-08-22 00:21:14 -0700 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-08-22 20:29:40 +0000 |
commit | 6150211538ef37e317a1a68cd4d8f169d87becd2 (patch) | |
tree | ba960bed8660329c3d349460ad9ffd4bf110194c /test/test_ipip.py | |
parent | 5779a441acaf1f613f548668262d8f9bb07560f2 (diff) |
IPIP and SIXRD tunnels create API needs table-IDs not fib-indexes
Change-Id: Ifaef196a24fa9b6924f2b9692318f69763cee5e1
Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
Diffstat (limited to 'test/test_ipip.py')
-rw-r--r-- | test/test_ipip.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/test/test_ipip.py b/test/test_ipip.py index 8d99f83e6c2..fc74d274b1f 100644 --- a/test/test_ipip.py +++ b/test/test_ipip.py @@ -5,7 +5,7 @@ import unittest from scapy.layers.inet6 import IPv6, Ether, IP, UDP from scapy.all import fragment, RandShort from framework import VppTestCase, VppTestRunner -from vpp_ip_route import VppIpRoute, VppRoutePath, DpoProto +from vpp_ip_route import VppIpRoute, VppRoutePath, DpoProto, VppIpTable from socket import AF_INET, AF_INET6, inet_pton import StringIO @@ -303,6 +303,18 @@ class TestIPIP(VppTestCase): sw_if_index = rv.sw_if_index self.vapi.ipip_del_tunnel(sw_if_index) + def test_ipip_vrf_create(self): + """ ipip create / delete interface VRF test """ + + t = VppIpTable(self, 20) + t.add_vpp_config() + rv = self.vapi.ipip_add_tunnel( + src_address=inet_pton(AF_INET, '1.2.3.4'), + dst_address=inet_pton(AF_INET, '2.3.4.5'), is_ipv6=0, + table_id=20) + sw_if_index = rv.sw_if_index + self.vapi.ipip_del_tunnel(sw_if_index) + def payload(self, len): return 'x' * len |