git://git.onelab.eu
/
plstackapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix bug when adding router to external network
[plstackapi.git]
/
plstackapi
/
openstack
/
driver.py
diff --git
a/plstackapi/openstack/driver.py
b/plstackapi/openstack/driver.py
index
965c612
..
8b475de
100644
(file)
--- a/
plstackapi/openstack/driver.py
+++ b/
plstackapi/openstack/driver.py
@@
-85,7
+85,8
@@
class OpenStackDriver:
nets = self.shell.quantum.list_networks()['networks']
for net in nets:
if net['router:external'] == True:
nets = self.shell.quantum.list_networks()['networks']
for net in nets:
if net['router:external'] == True:
- self.shell.quantum.add_gateway_router(router, net)
+ self.shell.quantum.add_gateway_router(router['id'],
+ {'network_id': net['id']})
return router
return router