git://git.onelab.eu
/
plstackapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6136709
)
skip invalid routers
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Tue, 9 Jul 2013 11:15:17 +0000
(07:15 -0400)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Tue, 9 Jul 2013 11:15:17 +0000
(07:15 -0400)
planetstack/openstack/driver.py
patch
|
blob
|
history
diff --git
a/planetstack/openstack/driver.py
b/planetstack/openstack/driver.py
index
c01fede
..
15ea3f5
100644
(file)
--- a/
planetstack/openstack/driver.py
+++ b/
planetstack/openstack/driver.py
@@
-264,7
+264,7
@@
class OpenStackDriver:
gw_port = port
router_id = gw_port['device_id']
router = self.shell.quantum.show_router(router_id)['router']
- if router:
+ if router
and router.get('external_gateway_info')
:
ext_net = router['external_gateway_info']['network_id']
for port in ports:
if port['device_id'] == router_id and port['network_id'] == ext_net: