diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-08-19 23:44:41 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-08-19 23:45:55 +0200 |
commit | 4bd223a00ee35ff92aff4cb19d08c1c6c9190e10 (patch) | |
tree | 8e67e590dcc9d1709626435d751435e567f9f8b9 /python/vyos/configinterface.py | |
parent | 80ee4d8c545879d2422e7027ad5245bee484ee3c (diff) | |
download | vyos-1x-4bd223a00ee35ff92aff4cb19d08c1c6c9190e10.tar.gz vyos-1x-4bd223a00ee35ff92aff4cb19d08c1c6c9190e10.zip |
Python: configinterface: remove debug print() statements
Diffstat (limited to 'python/vyos/configinterface.py')
-rw-r--r-- | python/vyos/configinterface.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/python/vyos/configinterface.py b/python/vyos/configinterface.py index 843d1c739..188d5b9e2 100644 --- a/python/vyos/configinterface.py +++ b/python/vyos/configinterface.py @@ -123,11 +123,9 @@ def add_interface_address(intf, addr): os.system('/opt/vyatta/sbin/vyatta-dhcpv6-client.pl --start -ifname "{}"'.format(intf)) elif vyos.validate.is_ipv4(addr): if not vyos.validate.is_intf_addr_assigned(intf, addr): - print("Assigning {} to {}".format(addr, intf)) os.system('sudo ip -4 addr add "{}" broadcast + dev "{}"'.format(addr, intf)) elif vyos.validate.is_ipv6(addr): if not vyos.validate.is_intf_addr_assigned(intf, addr): - print("Assigning {} to {}".format(addr, intf)) os.system('sudo ip -6 addr add "{}" dev "{}"'.format(addr, intf)) else: raise ConfigError('{} is not a valid interface address'.format(addr)) |