fix bug when adding router to external network
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Wed, 10 Apr 2013 13:07:45 +0000 (09:07 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Wed, 10 Apr 2013 13:07:45 +0000 (09:07 -0400)
plstackapi/openstack/driver.py

index 965c612..8b475de 100644 (file)
@@ -85,7 +85,8 @@ class OpenStackDriver:
             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