Skip to content

Commit 6b8e0ba

Browse files
committed
if vpc public network with snat enabled, then will triger this issue;
1 parent 5ff1ece commit 6b8e0ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

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

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

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

0 commit comments

Comments
 (0)