mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
CLOUDSTACK-9075 - Uses the same vlan since it should have been already released
- After the first test is done, the clean up will delete the whole VPC, also releasing the VLAN that was in use.
This commit is contained in:
parent
a17fa48de1
commit
6d9a3d82f9
@ -2417,9 +2417,10 @@ Configurable, StateListener<State, VirtualMachine.Event, VirtualMachine> {
|
||||
for (final Nic routerNic : routerNics) {
|
||||
final Network network = _networkModel.getNetwork(routerNic.getNetworkId());
|
||||
// Send network usage command for public nic in VPC VR
|
||||
// Send network usage command for isolated guest nic of non VPC VR
|
||||
if (network != null && (forVpc && network.getTrafficType() == TrafficType.Public || !forVpc && network.getTrafficType() == TrafficType.Guest
|
||||
&& network.getGuestType() == Network.GuestType.Isolated)) {
|
||||
// Send network usage command for isolated guest nic of non VPC
|
||||
// VR
|
||||
if (forVpc && network.getTrafficType() == TrafficType.Public || !forVpc && network.getTrafficType() == TrafficType.Guest
|
||||
&& network.getGuestType() == Network.GuestType.Isolated) {
|
||||
final NetworkUsageCommand usageCmd = new NetworkUsageCommand(privateIP, router.getHostName(), forVpc, routerNic.getIPv4Address());
|
||||
final String routerType = router.getType().toString();
|
||||
final UserStatisticsVO previousStats = _userStatsDao.findBy(router.getAccountId(), router.getDataCenterId(), network.getId(),
|
||||
|
||||
@ -956,7 +956,7 @@ def main(argv):
|
||||
logging.debug("Configuring iptables rules")
|
||||
nf = CsNetfilters()
|
||||
nf.compare(config.get_fw())
|
||||
|
||||
|
||||
red = CsRedundant(config)
|
||||
red.set()
|
||||
|
||||
|
||||
@ -237,7 +237,7 @@ class TestPrivateGwACL(cloudstackTestCase):
|
||||
acl = self.createACL(vpc)
|
||||
self.createACLItem(acl.id)
|
||||
self.createNetwork(vpc)
|
||||
privateGw = self.createPvtGw(vpc, "10.0.3.99", acl.id, vlan_1)
|
||||
privateGw = self.createPvtGw(vpc, "10.0.3.99", "10.0.3.100", acl.id, vlan_1)
|
||||
self.replacePvtGwACL(acl.id, privateGw.id)
|
||||
|
||||
@attr(tags=["advanced"], required_hardware="true")
|
||||
@ -280,7 +280,7 @@ class TestPrivateGwACL(cloudstackTestCase):
|
||||
self.fail("No Physical Networks found!")
|
||||
|
||||
vlans = physical_networks[0].vlan.split('-')
|
||||
vlan_1 = int(vlans[0]) + 1
|
||||
vlan_1 = int(vlans[0])
|
||||
|
||||
network_1 = self.createNetwork(vpc_1, gateway = '10.0.1.1')
|
||||
network_2 = self.createNetwork(vpc_2, gateway = '10.0.2.1')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user