Skip to content

Commit 227c156

Browse files
vxlan: do not create duplicated network for private gateway (apache#9232)
1 parent 8b02624 commit 227c156

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/network-elements/vxlan/src/main/java/com/cloud/network/guru/VxlanGuestNetworkGuru.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ protected boolean canHandle(NetworkOffering offering, final NetworkType networkT
5959
// This guru handles only Guest Isolated network that supports Source nat service
6060
if (networkType == NetworkType.Advanced && isMyTrafficType(offering.getTrafficType()) &&
6161
(offering.getGuestType() == Network.GuestType.Isolated || offering.getGuestType() == Network.GuestType.L2) &&
62-
isMyIsolationMethod(physicalNetwork)) {
62+
isMyIsolationMethod(physicalNetwork) && !offering.isSystemOnly()) {
6363
return true;
6464
} else {
6565
s_logger.trace("We only take care of Guest networks of type " + GuestType.Isolated + " or " + GuestType.L2 + " in zone of type " + NetworkType.Advanced);

0 commit comments

Comments
 (0)