diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-10-05 18:42:07 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-10-05 18:42:07 +0200 |
commit | 65acae4868363117697ccefff10d0ef12fae9da4 (patch) | |
tree | e2b77f52b1ec6059905958fdd971790030870422 /smoketest/scripts | |
parent | 5fca68d821c549572b07f073635170359a9f82c8 (diff) | |
download | vyos-1x-65acae4868363117697ccefff10d0ef12fae9da4.tar.gz vyos-1x-65acae4868363117697ccefff10d0ef12fae9da4.zip |
nat: T2951: use proper comments for source/destination logging
For both source and destination NAT always the LOG name contained DST - which
is definately false. This has been corrected to use SRC and DST on the
appropriate rules.
Diffstat (limited to 'smoketest/scripts')
-rwxr-xr-x | smoketest/scripts/cli/test_nat.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/smoketest/scripts/cli/test_nat.py b/smoketest/scripts/cli/test_nat.py index b06fa239d..5c7c66840 100755 --- a/smoketest/scripts/cli/test_nat.py +++ b/smoketest/scripts/cli/test_nat.py @@ -56,11 +56,10 @@ class TestNAT(unittest.TestCase): nftable_json = json.loads(tmp) condensed_json = jmespath.search(snat_pattern, nftable_json)[0] - self.assertEqual(condensed_json['comment'], 'DST-NAT-1') + self.assertEqual(condensed_json['comment'], 'SRC-NAT-1') self.assertEqual(condensed_json['address']['network'], network.split('/')[0]) self.assertEqual(str(condensed_json['address']['prefix']), network.split('/')[1]) - def test_validation(self): """ T2813: Ensure translation address is specified """ self.session.set(source_path + ['rule', '100', 'outbound-interface', 'eth0']) |