summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMatus Fabian <matfabia@cisco.com>2018-01-31 01:13:23 -0800
committerMatus Fabian <matfabia@cisco.com>2018-01-31 01:13:23 -0800
commit9dba7816f6c3b5e4c879f839bb4bc61dcdbde757 (patch)
tree681ae6bedfbebdb5fcafcd8389866452cfb98dd8 /test
parent8ad6a2dfed0a7248be9d005dd04c76da142f2238 (diff)
NAT44: nat44_static_mapping_details protocol=0 if addr_only=0 (VPP-1158)
Change-Id: I1e3cfc751e7657464fc850dc56ddf763df45f62e Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'test')
-rw-r--r--test/test_nat.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_nat.py b/test/test_nat.py
index b9785f01c7a..6aff932c024 100644
--- a/test/test_nat.py
+++ b/test/test_nat.py
@@ -1383,6 +1383,9 @@ class TestNAT44(MethodHolder):
sm = self.vapi.nat44_static_mapping_dump()
self.assertEqual(len(sm), 1)
self.assertEqual((sm[0].tag).split('\0', 1)[0], '')
+ self.assertEqual(sm[0].protocol, 0)
+ self.assertEqual(sm[0].local_port, 0)
+ self.assertEqual(sm[0].external_port, 0)
# in2out
pkts = self.create_stream_in(self.pg0, self.pg1)