Skip to content

Commit 3f0dcc7

Browse files
sudisonDaanHoogland
authored andcommitted
CLOUDSTACK-5505: if vpc public network with snat enabled, then will triger this issue
(cherry picked from commit 5e80e5d)
1 parent 16afdc0 commit 3f0dcc7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎server/src/com/cloud/network/router/VpcVirtualNetworkApplianceManagerImpl.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ private void createVpcAssociatePublicIPCommands(final VirtualRouter router, fina
442442
String macAddress = vlanMacAddress.get(BroadcastDomainType.getValue(BroadcastDomainType.fromString(ipAddr.getVlanTag())));
443443

444444
IpAddressTO ip =
445-
new IpAddressTO(ipAddr.getAccountId(), ipAddr.getAddress().addr(), add, false, ipAddr.isSourceNat(), ipAddr.getVlanTag(), ipAddr.getGateway(),
445+
new IpAddressTO(ipAddr.getAccountId(), ipAddr.getAddress().addr(), add, false, ipAddr.isSourceNat(), BroadcastDomainType.fromString(ipAddr.getVlanTag()).toString(), ipAddr.getGateway(),
446446
ipAddr.getNetmask(), macAddress, networkRate, ipAddr.isOneToOneNat());
447447

448448
ip.setTrafficType(network.getTrafficType());

0 commit comments

Comments
 (0)