|
40 | 40 | import javax.inject.Inject; |
41 | 41 | import javax.naming.ConfigurationException; |
42 | 42 |
|
| 43 | +import org.apache.log4j.Logger; |
| 44 | + |
43 | 45 | import org.apache.cloudstack.acl.ControlledEntity.ACLType; |
44 | 46 | import org.apache.cloudstack.acl.SecurityChecker.AccessType; |
45 | 47 | import org.apache.cloudstack.api.command.admin.network.DedicateGuestVlanRangeCmd; |
|
53 | 55 | import org.apache.cloudstack.engine.orchestration.service.NetworkOrchestrationService; |
54 | 56 | import org.apache.cloudstack.framework.config.dao.ConfigurationDao; |
55 | 57 | import org.apache.cloudstack.network.element.InternalLoadBalancerElementService; |
56 | | -import org.apache.log4j.Logger; |
57 | 58 |
|
58 | 59 | import com.cloud.api.ApiDBUtils; |
59 | 60 | import com.cloud.configuration.Config; |
@@ -1237,7 +1238,10 @@ && areServicesSupportedByNetworkOffering(ntwkOff.getId(), Service.SourceNat))) { |
1237 | 1238 |
|
1238 | 1239 | // Vlan is created in 1 cases - works in Advance zone only: |
1239 | 1240 | // 1) GuestType is Shared |
1240 | | - boolean createVlan = (startIP != null && endIP != null && zone.getNetworkType() == NetworkType.Advanced && (ntwkOff.getGuestType() == Network.GuestType.Shared)); |
| 1241 | + boolean createVlan = (startIP != null && endIP != null && zone.getNetworkType() == NetworkType.Advanced |
| 1242 | + && ((ntwkOff.getGuestType() == Network.GuestType.Shared) |
| 1243 | + || (ntwkOff.getGuestType() == GuestType.Isolated && |
| 1244 | + !areServicesSupportedByNetworkOffering(ntwkOff.getId(), Service.SourceNat)))); |
1241 | 1245 |
|
1242 | 1246 | if (!createVlan) { |
1243 | 1247 | // Only support advance shared network in IPv6, which means createVlan is a must |
@@ -4005,7 +4009,8 @@ public List<NetworkGuru> getNetworkGurus() { |
4005 | 4009 |
|
4006 | 4010 | @Inject |
4007 | 4011 | public void setNetworkGurus(List<NetworkGuru> networkGurus) { |
4008 | | - this._networkGurus = networkGurus; |
| 4012 | + _networkGurus = networkGurus; |
| 4013 | + |
4009 | 4014 | } |
4010 | 4015 |
|
4011 | 4016 | } |
0 commit comments