Commit 9308614f by Guba Sándor

netdriver: fixing interface pull up and port_delete

parent 34197891
......@@ -230,6 +230,9 @@ def port_delete(network):
ipv6_filter(network, port_number, delete=True)
arp_filter(network, port_number, delete=True)
enable_dhcp_client(network, port_number, delete=True)
else:
mac_filter(network, port_number, delete=True)
# Explicit deny all other traffic
disable_all_not_allowed_trafic(network, port_number, delete=True)
# Delete port
......@@ -241,7 +244,7 @@ def port_delete(network):
def pull_up_interface(network):
command = ['sudo', 'ip', 'link', 'set', 'up', network]
command = ['sudo', 'ip', 'link', 'set', 'up', network.name]
return_val = subprocess.call(command)
logging.info('IP command: %s executed.', command)
return return_val
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment