fix bug
diff --git a/plstackapi/openstack/driver.py b/plstackapi/openstack/driver.py
index 30bb569..965c612 100644
--- a/plstackapi/openstack/driver.py
+++ b/plstackapi/openstack/driver.py
@@ -82,7 +82,7 @@
else:
router = self.shell.quantum.create_router({'router': {'name': name}})
if set_gateway:
- nets = self.shell.quantum.list_networks()
+ nets = self.shell.quantum.list_networks()['networks']
for net in nets:
if net['router:external'] == True:
self.shell.quantum.add_gateway_router(router, net)