Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
vmdriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c360bed0
authored
Aug 12, 2013
by
tarokkk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding pull_up_interface method
parent
185a9cc9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
networkdriver.py
+7
-0
No files found.
networkdriver.py
View file @
c360bed0
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment