diff options
author | Ole Troan <ot@cisco.com> | 2018-02-12 18:14:39 +0100 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2018-03-01 14:37:11 +0000 |
commit | 6ee4051139409eb53cd41b2b73dac838e8c4e8a0 (patch) | |
tree | c7c8e5ac17cfb31c84684a877e7da027c191e64e /test/vpp_papi_provider.py | |
parent | 62bab658e7ca782c8d35dacacfa5906ddbcaf437 (diff) |
6RD: Rewritten 6RD RFC5969 support.
Change-Id: Ic30fbcb2630f39e45345d7215babf5d7ed4b33a0
Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'test/vpp_papi_provider.py')
-rw-r--r-- | test/vpp_papi_provider.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/vpp_papi_provider.py b/test/vpp_papi_provider.py index 8e53333b624..99e320bfe60 100644 --- a/test/vpp_papi_provider.py +++ b/test/vpp_papi_provider.py @@ -3210,3 +3210,22 @@ class VppPapiProvider(object): def gbp_contract_dump(self): """ GBP contract Dump """ return self.api(self.papi.gbp_contract_dump, {}) + + def sixrd_add_tunnel(self, fib_index, ip6_prefix, ip6_prefix_len, + ip4_prefix, ip4_prefix_len, ip4_src, mtu, + security_check): + """ 6RD tunnel Add """ + return self.api(self.papi.sixrd_add_tunnel, + {'fib_index': fib_index, + 'ip6_prefix': ip6_prefix, + 'ip6_prefix_len': ip6_prefix_len, + 'ip4_prefix': ip4_prefix, + 'ip4_prefix_len': ip4_prefix_len, + 'ip4_src': ip4_src, + 'mtu': mtu, + 'security_check': security_check}) + + def sixrd_del_tunnel(self, sw_if_index): + """ 6RD tunnel Delete """ + return self.api(self.papi.sixrd_del_tunnel, + {'sw_if_index': sw_if_index}) |