diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-08-04 22:33:20 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-08-04 22:33:20 +0200 |
commit | 2a2e3e8cded406ce209b94f565b16e5a766ec97e (patch) | |
tree | 9c20a677a32966eebc2834845fd3537545bbdde7 /python/vyos | |
parent | 8545b650f0cc1e7319744c3da57d5a74472246dc (diff) | |
download | vyos-1x-2a2e3e8cded406ce209b94f565b16e5a766ec97e.tar.gz vyos-1x-2a2e3e8cded406ce209b94f565b16e5a766ec97e.zip |
[bridge] T1156: add missing 'pass' statements
Diffstat (limited to 'python/vyos')
-rw-r--r-- | python/vyos/configinterface.py | 8 |
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 |