From 2a2e3e8cded406ce209b94f565b16e5a766ec97e Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 4 Aug 2019 22:33:20 +0200 Subject: [bridge] T1156: add missing 'pass' statements --- python/vyos/configinterface.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'python') 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 -- cgit v1.2.3