|
@@ -342,8 +342,7 @@ class CloudComputeServiceTestCase(ProviderTestBase):
|
|
|
with helpers.cleanup_action(lambda: cleanup_router(router,
|
|
with helpers.cleanup_action(lambda: cleanup_router(router,
|
|
|
gateway)):
|
|
gateway)):
|
|
|
router.attach_subnet(subnet)
|
|
router.attach_subnet(subnet)
|
|
|
- gateway = (self.provider.networking.gateways
|
|
|
|
|
- .get_or_create_inet_gateway(net, name))
|
|
|
|
|
|
|
+ gateway = net.gateways.get_or_create_inet_gateway(name)
|
|
|
router.attach_gateway(gateway)
|
|
router.attach_gateway(gateway)
|
|
|
# check whether adding an elastic ip works
|
|
# check whether adding an elastic ip works
|
|
|
fip = gateway.floating_ips.create()
|
|
fip = gateway.floating_ips.create()
|