Skip to content

Commit dd67cfc

Browse files
author
Anthony Xu
committed
Revert "CLOUDSTACK-737"
This reverts commit d7201df. Conflicts: server/src/com/cloud/network/NetworkManagerImpl.java server/src/com/cloud/resource/ResourceManagerImpl.java
1 parent 0a6c6bb commit dd67cfc

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

server/src/com/cloud/network/NetworkManagerImpl.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1854,6 +1854,7 @@ public Network createGuestNetwork(long networkOfferingId, String name, String di
18541854

18551855
} else if (zone.getNetworkType() == NetworkType.Advanced) {
18561856
if (zone.isSecurityGroupEnabled()) {
1857+
<<<<<<< HEAD
18571858
<<<<<<< HEAD
18581859
if (ipv6) {
18591860
throw new InvalidParameterValueException("IPv6 is not supported with security group!");
@@ -1871,11 +1872,18 @@ public Network createGuestNetwork(long networkOfferingId, String name, String di
18711872
=======
18721873
// Only Account specific Isolated network with sourceNat service disabled are allowed in security group
18731874
// enabled zone
1875+
=======
1876+
// Only Account specific Isolated network with sourceNat service disabled are allowed in security group
1877+
// enabled zone
1878+
>>>>>>> parent of d7201df... CLOUDSTACK-737
18741879
boolean allowCreation = (ntwkOff.getGuestType() == GuestType.Isolated
18751880
&& !_networkModel.areServicesSupportedByNetworkOffering(ntwkOff.getId(), Service.SourceNat));
18761881
if (!allowCreation) {
18771882
throw new InvalidParameterValueException("Only Account specific Isolated network with sourceNat " +
18781883
"service disabled are allowed in security group enabled zone");
1884+
<<<<<<< HEAD
1885+
>>>>>>> parent of d7201df... CLOUDSTACK-737
1886+
=======
18791887
>>>>>>> parent of d7201df... CLOUDSTACK-737
18801888
}
18811889
}

server/src/com/cloud/resource/ResourceManagerImpl.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,10 +421,15 @@ public List<? extends Cluster> discoverCluster(AddClusterCmd cmd)
421421
Hypervisor.HypervisorType hypervisorType = Hypervisor.HypervisorType
422422
.getType(cmd.getHypervisor());
423423
if (hypervisorType == null) {
424+
<<<<<<< HEAD
424425
s_logger.error("Unable to resolve " + cmd.getHypervisor()
425426
+ " to a valid supported hypervisor type");
426427
throw new InvalidParameterValueException("Unable to resolve "
427428
+ cmd.getHypervisor() + " to a supported ");
429+
=======
430+
s_logger.error("Unable to resolve " + cmd.getHypervisor() + " to a valid supported hypervisor type");
431+
throw new InvalidParameterValueException("Unable to resolve " + cmd.getHypervisor() + " to a supported ");
432+
>>>>>>> parent of d7201df... CLOUDSTACK-737
428433
}
429434

430435
Cluster.ClusterType clusterType = null;

0 commit comments

Comments
 (0)