Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
NAT44: asymmetrical load balancing static mapping rule (VPP-1132)
[vpp.git]
/
test
/
vpp_papi_provider.py
diff --git
a/test/vpp_papi_provider.py
b/test/vpp_papi_provider.py
index
acd05a7
..
6e6f7ca
100644
(file)
--- a/
test/vpp_papi_provider.py
+++ b/
test/vpp_papi_provider.py
@@
-1420,6
+1420,7
@@
class VppPapiProvider(object):
protocol,
vrf_id=0,
twice_nat=0,
protocol,
vrf_id=0,
twice_nat=0,
+ out2in_only=0,
local_num=0,
locals=[],
is_add=1):
local_num=0,
locals=[],
is_add=1):
@@
-1436,6
+1437,7
@@
class VppPapiProvider(object):
'protocol': protocol,
'vrf_id': vrf_id,
'twice_nat': twice_nat,
'protocol': protocol,
'vrf_id': vrf_id,
'twice_nat': twice_nat,
+ 'out2in_only': out2in_only,
'local_num': local_num,
'locals': locals})
'local_num': local_num,
'locals': locals})
@@
-1818,6
+1820,17
@@
class VppPapiProvider(object):
{'ip4_addr': ip4,
'ip6_addr': ip6})
{'ip4_addr': ip4,
'ip6_addr': ip6})
+ def dslite_set_b4_addr(self, ip6, ip4):
+ """Set DS-Lite B4 IPv6 address
+
+ :param ip4: IPv4 address
+ :param ip6: IPv6 address
+ """
+ return self.api(
+ self.papi.dslite_set_b4_addr,
+ {'ip4_addr': ip4,
+ 'ip6_addr': ip6})
+
def dslite_add_del_pool_addr_range(
self,
start_addr,
def dslite_add_del_pool_addr_range(
self,
start_addr,