diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-10-17 17:17:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-17 17:17:43 +0200 |
commit | 60109764cc18ae50802313716ce9197c9bd36e15 (patch) | |
tree | bde6678bf0d361207af70e4f3864d3b6a4eb868a /smoketest/scripts/cli | |
parent | fcf90cd860ba806c9a06526b5e1d88ca18d6f575 (diff) | |
parent | 2e436854d91e3adb7ac1bb24c64ec7189eb21bee (diff) | |
download | vyos-1x-60109764cc18ae50802313716ce9197c9bd36e15.tar.gz vyos-1x-60109764cc18ae50802313716ce9197c9bd36e15.zip |
Merge pull request #576 from sever-sever/T752
sysctl-forwarding: T752: Add disable forwarding for ipv4
Diffstat (limited to 'smoketest/scripts/cli')
-rw-r--r-- | smoketest/scripts/cli/base_interfaces_test.py | 4 |
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) |