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
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
6fbd63b8
authored
Jun 06, 2014
by
Guba Sándor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netcelery: added native_ovs configration variable
parent
0182954b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
netcelery.py
+7
-4
No files found.
netcelery.py
View file @
6fbd63b8
...
@@ -24,6 +24,13 @@ def to_bool(value):
...
@@ -24,6 +24,13 @@ def to_bool(value):
return
value
.
lower
()
in
(
"true"
,
"yes"
,
"y"
,
"t"
)
return
value
.
lower
()
in
(
"true"
,
"yes"
,
"y"
,
"t"
)
lib_connection
=
None
lib_connection
=
None
native_ovs
=
False
if
to_bool
(
getenv
(
'LIBVIRT_KEEPALIVE'
,
"False"
)):
import
libvirt
lib_connection
=
libvirt
.
open
(
getenv
(
'LIBVIRT_URI'
))
if
to_bool
(
getenv
(
'NATIVE_OVS'
,
"False"
)):
native_ovs
=
True
celery
=
Celery
(
'netcelery'
,
celery
=
Celery
(
'netcelery'
,
broker
=
AMQP_URI
,
broker
=
AMQP_URI
,
...
@@ -38,7 +45,3 @@ celery.conf.update(
...
@@ -38,7 +45,3 @@ celery.conf.update(
'netdriver'
,
type
=
'direct'
),
routing_key
=
"netdriver"
),
'netdriver'
,
type
=
'direct'
),
routing_key
=
"netdriver"
),
)
)
)
)
if
to_bool
(
getenv
(
'LIBVIRT_KEEPALIVE'
,
"False"
)):
import
libvirt
lib_connection
=
libvirt
.
open
(
getenv
(
'LIBVIRT_URI'
))
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