2.107. test_pnat module¶
Policy 1:1 NAT functional tests
-
class
test_pnat.
TestPNAT
(methodName='runTest')¶ Bases:
framework.VppTestCase
PNAT Test Case
-
maxDiff
= None¶
-
ping_check
()¶ Verify non matching traffic works.
-
setUp
()¶ Clear trace before running each test
-
classmethod
setUpClass
()¶ Perform class setup before running the testcase Remove shared memory files, start vpp and connect the vpp-api
-
tearDown
()¶ Show various debug prints after each test
-
classmethod
tearDownClass
()¶ Perform final cleanup after running all tests in this test-case
-
test_pnat
()¶ PNAT test
-
test_pnat_show
()¶ PNAT show tests
-
validate
(rx, expected)¶
-
validate_bytes
(rx, expected)¶
-