summaryrefslogtreecommitdiff
path: root/smoketest
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2024-02-13 12:12:49 +0000
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-02-13 16:36:15 +0000
commitb3922818710d2c698c82f7f9fea5b4ae1b21921c (patch)
treeaa5467600ef2a1456172c2ae013f421be19d4c0c /smoketest
parentf7c805e95b4b9cf1020a04847ae38fb13bea375b (diff)
downloadvyos-1x-b3922818710d2c698c82f7f9fea5b4ae1b21921c.tar.gz
vyos-1x-b3922818710d2c698c82f7f9fea5b4ae1b21921c.zip
T5928: Smoketest change firewall flowtable test to use VLAN
(cherry picked from commit ef87bd7320da2750de4d93c14314965704f3dfbd)
Diffstat (limited to 'smoketest')
-rwxr-xr-xsmoketest/scripts/cli/test_firewall.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/smoketest/scripts/cli/test_firewall.py b/smoketest/scripts/cli/test_firewall.py
index 415f3436f..bc2848492 100755
--- a/smoketest/scripts/cli/test_firewall.py
+++ b/smoketest/scripts/cli/test_firewall.py
@@ -813,7 +813,8 @@ class TestFirewall(VyOSUnitTestSHIM.TestCase):
self.verify_nftables(nftables_search_v6, 'ip6 vyos_filter')
def test_flow_offload(self):
- self.cli_set(['firewall', 'flowtable', 'smoketest', 'interface', 'eth0'])
+ self.cli_set(['interfaces', 'ethernet', 'eth0', 'vif', '10'])
+ self.cli_set(['firewall', 'flowtable', 'smoketest', 'interface', 'eth0.10'])
self.cli_set(['firewall', 'flowtable', 'smoketest', 'offload', 'hardware'])
# QEMU virtual NIC does not support hw-tc-offload
@@ -839,7 +840,7 @@ class TestFirewall(VyOSUnitTestSHIM.TestCase):
nftables_search = [
['flowtable VYOS_FLOWTABLE_smoketest'],
['hook ingress priority filter'],
- ['devices = { eth0 }'],
+ ['devices = { eth0.10 }'],
['ct state { established, related }', 'meta l4proto { tcp, udp }', 'flow add @VYOS_FLOWTABLE_smoketest'],
]