summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--python/vyos/configinterface.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/python/vyos/configinterface.py b/python/vyos/configinterface.py
index 8ff93c02f..0f25c4a89 100644
--- a/python/vyos/configinterface.py
+++ b/python/vyos/configinterface.py
@@ -42,6 +42,7 @@ def set_mac_address(intf, addr):
validate_mac_address(addr)
os.system('ip link set {} address {}'.format(intf, addr))
+ pass
def set_description(intf, desc):
"""
@@ -50,6 +51,7 @@ def set_description(intf, desc):
with open('/sys/class/net/' + intf + '/ifalias', 'w') as f:
f.write(desc)
+ pass
def set_arp_cache_timeout(intf, tmoMS):
"""
@@ -58,6 +60,8 @@ def set_arp_cache_timeout(intf, tmoMS):
with open('/proc/sys/net/ipv4/neigh/' + intf + '/base_reachable_time_ms', 'w') as f:
f.write(tmoMS)
+ pass
+
def set_multicast_querier(intf, enable):
"""
Sets whether the bridge actively runs a multicast querier or not. When a
@@ -74,6 +78,8 @@ def set_multicast_querier(intf, enable):
else:
raise ValueError("malformed configuration string on interface {}: enable={}".format(intf, enable))
+ pass
+
def set_link_detect(intf, enable):
"""
0 - Allow packets to be received for the address on this interface
@@ -103,3 +109,5 @@ def set_link_detect(intf, enable):
f.write('1')
if os.path.isfile('/usr/bin/vtysh'):
os.system('/usr/bin/vtysh -c "configure terminal" -c "interface {}" -c "no link-detect"'.format(intf))
+
+ pass