Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
vmdriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
daaaf32f
authored
Sep 06, 2013
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding celery decorators
parent
72d2eab3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
netdriver.py
+4
-2
No files found.
netdriver.py
100755 → 100644
View file @
daaaf32f
#!/usr/bin/env python
import
subprocess
import
logging
from
netcelery
import
celery
def
ovs_command_execute
(
command
):
'''Execute OpenVSwitch commands
...
...
@@ -24,11 +24,13 @@ def ofctl_command_execute(command):
return
return_val
@celery.task
def
create
(
network_list
):
for
network
in
network_list
:
port_create
(
network
)
@celery.task
def
delete
(
network_list
):
for
network
in
network_list
:
port_delete
(
network
)
...
...
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