diff options
author | Matus Fabian <matfabia@cisco.com> | 2018-08-22 01:27:10 -0700 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2018-08-22 13:39:00 +0000 |
commit | 69ce30d6ab7c6afba475b25bb32542b1e955b91d (patch) | |
tree | 70d291a626ff9cced4a68905669a8bf6f95436a9 /test/test_nat.py | |
parent | a7e6cd90b8db92c5eebc103f0994bfe612eccc21 (diff) |
NAT: update nat_show_config_reply API (VPP-1403)
Change-Id: I85383e428cb54c4c09ab387811dd6390f7c61d97
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'test/test_nat.py')
-rw-r--r-- | test/test_nat.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/test_nat.py b/test/test_nat.py index 76cc7338c5a..286c74a8037 100644 --- a/test/test_nat.py +++ b/test/test_nat.py @@ -3345,6 +3345,9 @@ class TestNAT44EndpointDependent(MethodHolder): self.vapi.nat44_interface_add_del_feature(self.pg1.sw_if_index, is_inside=0) + nat_config = self.vapi.nat_show_config() + self.assertEqual(1, nat_config.endpoint_dependent) + # in2out pkts = self.create_stream_in(self.pg0, self.pg1) self.pg0.add_stream(pkts) @@ -4979,6 +4982,9 @@ class TestNAT44Out2InDPO(MethodHolder): def test_464xlat_ce(self): """ Test 464XLAT CE with NAT44 """ + nat_config = self.vapi.nat_show_config() + self.assertEqual(1, nat_config.out2in_dpo) + self.configure_xlat() self.vapi.nat44_interface_add_del_feature(self.pg0.sw_if_index) @@ -6961,6 +6967,9 @@ class TestDSlite(MethodHolder): def test_dslite(self): """ Test DS-Lite """ + nat_config = self.vapi.nat_show_config() + self.assertEqual(0, nat_config.dslite_ce) + self.vapi.dslite_add_del_pool_addr_range(self.nat_addr_n, self.nat_addr_n) aftr_ip4 = '192.0.0.1' @@ -7121,6 +7130,9 @@ class TestDSliteCE(MethodHolder): def test_dslite_ce(self): """ Test DS-Lite CE """ + nat_config = self.vapi.nat_show_config() + self.assertEqual(1, nat_config.dslite_ce) + b4_ip4 = '192.0.0.2' b4_ip4_n = socket.inet_pton(socket.AF_INET, b4_ip4) b4_ip6 = '2001:db8:62aa::375e:f4c1:1' |