summaryrefslogtreecommitdiff
path: root/smoketest/scripts
diff options
context:
space:
mode:
authorsever-sever <v.gletenko@vyos.io>2020-10-17 09:58:53 +0000
committersever-sever <v.gletenko@vyos.io>2020-10-17 12:52:09 +0000
commit2e436854d91e3adb7ac1bb24c64ec7189eb21bee (patch)
tree63b6552bbb66d61f117eaf47530e9b040ad4cfd2 /smoketest/scripts
parentaa844567456504c5026a9c49d5c4cf590c7cf08b (diff)
downloadvyos-1x-2e436854d91e3adb7ac1bb24c64ec7189eb21bee.tar.gz
vyos-1x-2e436854d91e3adb7ac1bb24c64ec7189eb21bee.zip
sysctl-forwarding: T752: Add disable forwarding for ipv4
Diffstat (limited to 'smoketest/scripts')
-rw-r--r--smoketest/scripts/cli/base_interfaces_test.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/base_interfaces_test.py b/smoketest/scripts/cli/base_interfaces_test.py
index 047c19dd0..d94a5d962 100644
--- a/smoketest/scripts/cli/base_interfaces_test.py
+++ b/smoketest/scripts/cli/base_interfaces_test.py
@@ -241,6 +241,7 @@ class BasicInterfaceTest:
# Options
self.session.set(path + ['ip', 'arp-cache-timeout', arp_tmo])
self.session.set(path + ['ip', 'disable-arp-filter'])
+ self.session.set(path + ['ip', 'disable-forwarding'])
self.session.set(path + ['ip', 'enable-arp-accept'])
self.session.set(path + ['ip', 'enable-arp-announce'])
self.session.set(path + ['ip', 'enable-arp-ignore'])
@@ -266,6 +267,9 @@ class BasicInterfaceTest:
tmp = read_file(f'/proc/sys/net/ipv4/conf/{interface}/arp_ignore')
self.assertEqual('1', tmp)
+ tmp = read_file(f'/proc/sys/net/ipv4/conf/{interface}/forwarding')
+ self.assertEqual('0', tmp)
+
tmp = read_file(f'/proc/sys/net/ipv4/conf/{interface}/proxy_arp')
self.assertEqual('1', tmp)