summaryrefslogtreecommitdiff
path: root/smoketest/scripts
diff options
context:
space:
mode:
authorsarthurdev <965089+sarthurdev@users.noreply.github.com>2023-09-19 21:06:35 +0200
committersarthurdev <965089+sarthurdev@users.noreply.github.com>2023-09-19 21:14:20 +0200
commitcdbe969308c1f540050d288ffc6b55abbefa7534 (patch)
treeb107aa08bacdf34ed1fb12672a7a579d7a94913e /smoketest/scripts
parentdb53c8e77cd93d5d7f16036b4d7b783083caf32e (diff)
downloadvyos-1x-cdbe969308c1f540050d288ffc6b55abbefa7534.tar.gz
vyos-1x-cdbe969308c1f540050d288ffc6b55abbefa7534.zip
conntrack: firewall: T4502: Update conntrack check for new flowtable CLI
Also updates flowtable smoketest to verify conntrack enabled
Diffstat (limited to 'smoketest/scripts')
-rwxr-xr-xsmoketest/scripts/cli/test_firewall.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_firewall.py b/smoketest/scripts/cli/test_firewall.py
index 72e04847a..676be5305 100755
--- a/smoketest/scripts/cli/test_firewall.py
+++ b/smoketest/scripts/cli/test_firewall.py
@@ -637,5 +637,9 @@ class TestFirewall(VyOSUnitTestSHIM.TestCase):
self.verify_nftables(nftables_search, 'ip vyos_filter')
self.verify_nftables(nftables_search, 'ip6 vyos_filter')
+ # Check conntrack
+ self.verify_nftables_chain([['accept']], 'ip vyos_conntrack', 'FW_CONNTRACK')
+ self.verify_nftables_chain([['accept']], 'ip6 vyos_conntrack', 'FW_CONNTRACK')
+
if __name__ == '__main__':
unittest.main(verbosity=2)