Fix Neutron VPNaaS Test

VPNService requires Router is connected to external gateway.
In this commit, we connected the test router to external network.

Change-Id: Ib87583219efd8efd959c9c7edb813c3a70e7d20c
Closes-Bug:1259282
This commit is contained in:
Nachi Ueno 2013-12-10 13:26:33 -08:00
parent 1e6001f8a4
commit 41ecf5b3d5
1 changed files with 3 additions and 1 deletions

View File

@ -40,7 +40,9 @@ class VPNaaSJSON(base.BaseNetworkTest):
super(VPNaaSJSON, cls).setUpClass()
cls.network = cls.create_network()
cls.subnet = cls.create_subnet(cls.network)
cls.router = cls.create_router(data_utils.rand_name("router-"))
cls.router = cls.create_router(
data_utils.rand_name("router-"),
external_network_id=cls.network_cfg.public_network_id)
cls.create_router_interface(cls.router['id'], cls.subnet['id'])
cls.vpnservice = cls.create_vpnservice(cls.subnet['id'],
cls.router['id'])