Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
f-interop-contributors
agent
Commits
ccaec5d0
Commit
ccaec5d0
authored
Jan 12, 2017
by
Federico Sismondi
Browse files
small fix
parent
5a8bccf7
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/bootstrap_agents.py
View file @
ccaec5d0
...
...
@@ -3,7 +3,7 @@ import os
import
json
import
pika
logging
.
basicConfig
(
format
=
'%(levelname)s:%(message)s'
,
level
=
logging
.
WARNIN
G
)
logging
.
basicConfig
(
format
=
'%(levelname)s:%(message)s'
,
level
=
logging
.
DEBU
G
)
queue_name
=
'unittest_packet_router'
# rewrite default values with ENV variables
...
...
@@ -14,6 +14,7 @@ AMQP_VHOST = str(os.environ['AMQP_VHOST'])
AMQP_EXCHANGE
=
str
(
os
.
environ
[
'AMQP_EXCHANGE'
])
print
(
'Env vars for AMQP connection succesfully imported'
)
print
(
json
.
dumps
(
{
'server'
:
AMQP_SERVER
,
...
...
@@ -54,4 +55,10 @@ d["ipv6_host"] = ":2"
channel
.
basic_publish
(
exchange
=
'default'
,
routing_key
=
'control.tun.toAgent.agent2'
,
mandatory
=
True
,
body
=
json
.
dumps
(
d
))
d
[
"ipv6_host"
]
=
":3"
channel
.
basic_publish
(
exchange
=
'default'
,
routing_key
=
'control.tun.toAgent.agent_TT'
,
mandatory
=
True
,
body
=
json
.
dumps
(
d
))
\ No newline at end of file
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