diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-03-25 19:41:54 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-03-28 11:28:55 +0100 |
commit | adc09e4ecaf91bc93b3994eac4f2f2ac2786a1c7 (patch) | |
tree | 4830099c3d06c695f9e81bb86762433544a7df95 /python/vyos/ifconfig/interface.py | |
parent | 7f9ce3017ff4bc99c66e4d5ddfd6a9904ca8542c (diff) | |
download | vyos-1x-adc09e4ecaf91bc93b3994eac4f2f2ac2786a1c7.tar.gz vyos-1x-adc09e4ecaf91bc93b3994eac4f2f2ac2786a1c7.zip |
ipv6: T1831: use integers over bool in interface configuration
Diffstat (limited to 'python/vyos/ifconfig/interface.py')
-rw-r--r-- | python/vyos/ifconfig/interface.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/vyos/ifconfig/interface.py b/python/vyos/ifconfig/interface.py index ae0b652b0..da6b54e69 100644 --- a/python/vyos/ifconfig/interface.py +++ b/python/vyos/ifconfig/interface.py @@ -116,11 +116,11 @@ class Interface(DHCP): 'location': '/proc/sys/net/ipv4/conf/{ifname}/arp_ignore', }, 'ipv6_forwarding': { - 'validate': assert_boolean, + 'validate': lambda fwd: assert_range(fwd,0,2), 'location': '/proc/sys/net/ipv6/conf/{ifname}/forwarding', }, 'ipv6_dad_transmits': { - 'validate': assert_boolean, + 'validate': assert_positive, 'location': '/proc/sys/net/ipv6/conf/{ifname}/dad_transmits', }, 'proxy_arp': { @@ -409,7 +409,7 @@ class Interface(DHCP): """ return self.set_interface('ipv6_forwarding', forwarding) - def set_dad_messages(self, dad): + def set_ipv6_dad_messages(self, dad): """ The amount of Duplicate Address Detection probes to send. Default: 1 |