Commit c360bed0 by tarokkk

adding pull_up_interface method

parent 185a9cc9
...@@ -200,6 +200,13 @@ def port_delete(network): ...@@ -200,6 +200,13 @@ def port_delete(network):
del_port_from_bridge(network.name) del_port_from_bridge(network.name)
def pull_up_interface(network):
command = ['sudo', 'ip', 'link', 'set', 'up', network]
return_val = subprocess.call(command)
logging.info('IP command: %s executed.', command)
return return_val
def get_fport_for_network(network): def get_fport_for_network(network):
'''Returns the OpenFlow port number for a given network '''Returns the OpenFlow port number for a given network
cmd: ovs-vsctl get Interface vm-88 ofport cmd: ovs-vsctl get Interface vm-88 ofport
......
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