summaryrefslogtreecommitdiff
path: root/python/vyos/ifconfig/interface.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/vyos/ifconfig/interface.py')
-rw-r--r--python/vyos/ifconfig/interface.py6
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