summaryrefslogtreecommitdiffstats
path: root/src/plugins/nat/test
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2021-02-06 13:02:41 +0100
committerNeale Ranns <neale@graphiant.com>2021-02-09 09:56:56 +0000
commitc9c9143898aa1f5b5aa90ab03a4c94181dcf7ed6 (patch)
tree87ece208cd36415f92566cd2b3c4aebf4abeff94 /src/plugins/nat/test
parent070387d3f4b0b5a5742b95fca19404cb50fa9927 (diff)
nat: fix coverity errors
Including a general missing free in fromjson autogenerated code. Type: fix Signed-off-by: Ole Troan <ot@cisco.com> Change-Id: I9ab2b0193135e2fb3d62d51b3c114df56969e341 Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'src/plugins/nat/test')
-rw-r--r--src/plugins/nat/test/test_pnat.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/nat/test/test_pnat.py b/src/plugins/nat/test/test_pnat.py
index 5e52fa9f135..d5b60050691 100644
--- a/src/plugins/nat/test/test_pnat.py
+++ b/src/plugins/nat/test/test_pnat.py
@@ -93,10 +93,10 @@ class TestPNAT(VppTestCase):
'rewrite': {'mask': 0xa, 'dst': self.pg1.remote_ip4,
'dport': 5555},
'send': (IP(src=self.pg0.remote_ip4, dst='10.10.10.10') /
- UDP(dport=6871)),
+ UDP(sport=65530, dport=6871)),
'reply': (IP(src=self.pg0.remote_ip4,
dst=self.pg1.remote_ip4) /
- UDP(dport=5555))
+ UDP(sport=65530, dport=5555))
},
{
'input': PNAT_IP4_INPUT,