summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMartin <magalik@cisco.com>2017-03-08 03:31:02 -0800
committerMartin <magalik@cisco.com>2017-03-08 04:38:37 -0800
commit6b7fcda46689bf540538f839c870a9981752fc2c (patch)
tree64bc0f5c009c5aea52ce2e3e0eab69cc0a0aa683 /test
parent3f844d0bc900e5db40ba74724e2b61e7943682d3 (diff)
SNAT: user_session_dump is_ip4 and vat unformating added
Change-Id: I0ffab147c3218a75b7c3bb829983f538c7b637ee Signed-off-by: Martin <magalik@cisco.com>
Diffstat (limited to 'test')
-rw-r--r--test/vpp_papi_provider.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/vpp_papi_provider.py b/test/vpp_papi_provider.py
index f04537bff47..3d6af8afd55 100644
--- a/test/vpp_papi_provider.py
+++ b/test/vpp_papi_provider.py
@@ -1109,7 +1109,8 @@ class VppPapiProvider(object):
def snat_user_session_dump(
self,
ip_address,
- vrf_id):
+ vrf_id,
+ is_ip4=1):
"""Dump S-NAT user's sessions
:param ip_address: ip adress of the user to be dumped
@@ -1120,7 +1121,8 @@ class VppPapiProvider(object):
return self.api(
self.papi.snat_user_session_dump,
{'ip_address': ip_address,
- 'vrf_id': vrf_id})
+ 'vrf_id': vrf_id,
+ 'is_ip4': is_ip4})
def snat_user_dump(self):
"""Dump S-NAT users