Commit 352c12c1 by tarokkk

adding ovs-executer

parent 9df57d8f
#!/usr/bin/env python #!/usr/bin/env python
from subprocess import call
import logging
class NWDriver: class NWDriver:
...@@ -7,7 +10,9 @@ class NWDriver: ...@@ -7,7 +10,9 @@ class NWDriver:
pass pass
def ovs_command_execute(self, command): def ovs_command_execute(self, command):
pass return_val = call(['sudo', 'ovs-vsctl', command])
logging.info('OVS command: %s executed.', command)
return return_val
def nw_create(self, vm): def nw_create(self, vm):
pass pass
......
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