Skip to content

Commit 27046cb

Browse files
committed
Remove banner related changes
1 parent ca2207d commit 27046cb

File tree

6 files changed

+194
-443
lines changed

6 files changed

+194
-443
lines changed

server/src/main/java/com/cloud/network/element/VirtualRouterElement.java

Lines changed: 12 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@
2424

2525
import javax.inject.Inject;
2626

27-
import com.cloud.network.dao.NetworkVO;
28-
import com.cloud.network.vpc.VpcVO;
29-
import com.cloud.network.vpc.dao.VpcDao;
3027
import org.apache.commons.collections.CollectionUtils;
3128
import org.springframework.beans.factory.annotation.Autowired;
3229
import org.springframework.beans.factory.annotation.Qualifier;
@@ -121,15 +118,13 @@
121118
import com.cloud.vm.dao.UserVmDao;
122119

123120
public class VirtualRouterElement extends AdapterBase implements VirtualRouterElementService, DhcpServiceProvider, UserDataServiceProvider, SourceNatServiceProvider,
124-
StaticNatServiceProvider, FirewallServiceProvider, LoadBalancingServiceProvider, PortForwardingServiceProvider, RemoteAccessVPNServiceProvider, IpDeployer,
125-
NetworkMigrationResponder, AggregatedCommandExecutor, RedundantResource, DnsServiceProvider{
121+
StaticNatServiceProvider, FirewallServiceProvider, LoadBalancingServiceProvider, PortForwardingServiceProvider, RemoteAccessVPNServiceProvider, IpDeployer,
122+
NetworkMigrationResponder, AggregatedCommandExecutor, RedundantResource, DnsServiceProvider{
126123
protected static final Map<Service, Map<Capability, String>> capabilities = setCapabilities();
127124

128125
@Inject
129126
NetworkDao _networksDao;
130127
@Inject
131-
VpcDao _vpcDao;
132-
@Inject
133128
NetworkModel _networkMdl;
134129
@Inject
135130
LoadBalancingRulesManager _lbMgr;
@@ -231,11 +226,11 @@ public boolean implement(final Network network, final NetworkOffering offering,
231226

232227
final RouterDeploymentDefinition routerDeploymentDefinition =
233228
routerDeploymentDefinitionBuilder.create()
234-
.setGuestNetwork(network)
235-
.setDeployDestination(dest)
236-
.setAccountOwner(_accountMgr.getAccount(network.getAccountId()))
237-
.setParams(params)
238-
.build();
229+
.setGuestNetwork(network)
230+
.setDeployDestination(dest)
231+
.setAccountOwner(_accountMgr.getAccount(network.getAccountId()))
232+
.setParams(params)
233+
.build();
239234

240235
final List<DomainRouterVO> routers = routerDeploymentDefinition.deployVirtualRouter();
241236

@@ -495,7 +490,7 @@ public static String getHAProxyStickinessCapability() {
495490
false,
496491
"When this option is specified, haproxy will match on the cookie prefix (or URL parameter prefix). "
497492
+ "The appsession value is the data following this prefix. Example : appsession ASPSESSIONID len 64 timeout 3h prefix This will match the cookie ASPSESSIONIDXXXX=XXXXX, the appsession value will be XXXX=XXXXX.",
498-
true);
493+
true);
499494
method.addParam("mode", false, "This option allows to change the URL parser mode. 2 modes are currently supported : - path-parameters "
500495
+ ": The parser looks for the appsession in the path parameters part (each parameter is separated by a semi-colon), "
501496
+ "which is convenient for JSESSIONID for example.This is the default mode if the option is not set. - query-string :"
@@ -901,7 +896,7 @@ public boolean isReady(final PhysicalNetworkServiceProvider provider) {
901896

902897
@Override
903898
public boolean shutdownProviderInstances(final PhysicalNetworkServiceProvider provider, final ReservationContext context) throws ConcurrentOperationException,
904-
ResourceUnavailableException {
899+
ResourceUnavailableException {
905900
final VirtualRouterProviderVO element = _vrProviderDao.findByNspIdAndType(provider.getId(), getVirtualRouterProvider());
906901
if (element == null) {
907902
return true;
@@ -939,15 +934,15 @@ public VirtualRouterProvider getCreatedElement(final long id) {
939934

940935
@Override
941936
public boolean release(final Network network, final NicProfile nic, final VirtualMachineProfile vm, final ReservationContext context) throws ConcurrentOperationException,
942-
ResourceUnavailableException {
937+
ResourceUnavailableException {
943938
return true;
944939
}
945940

946941

947942
@Override
948943
public boolean configDhcpSupportForSubnet(final Network network, final NicProfile nic, final VirtualMachineProfile vm, final DeployDestination dest,
949944
final ReservationContext context) throws ConcurrentOperationException, InsufficientCapacityException, ResourceUnavailableException {
950-
return configureDhcpSupport(network, nic, vm, dest, Service.Dhcp);
945+
return configureDhcpSupport(network, nic, vm, dest, Service.Dhcp);
951946
}
952947

953948
@Override
@@ -1088,7 +1083,7 @@ protected boolean applyDhcpEntries (final Network network, final NicProfile nic,
10881083

10891084
@Override
10901085
public boolean addPasswordAndUserdata(final Network network, final NicProfile nic, final VirtualMachineProfile vm, final DeployDestination dest,
1091-
final ReservationContext context) throws ConcurrentOperationException, InsufficientCapacityException, ResourceUnavailableException {
1086+
final ReservationContext context) throws ConcurrentOperationException, InsufficientCapacityException, ResourceUnavailableException {
10921087
boolean result = true;
10931088
if (canHandle(network, Service.UserData)) {
10941089
if (vm.getType() != VirtualMachine.Type.User) {
@@ -1374,7 +1369,6 @@ public void configureResource(Network network) {
13741369
router.setUpdateState(VirtualRouter.UpdateState.UPDATE_NEEDED);
13751370
_routerDao.persist(router);
13761371
}
1377-
setRestartRequiredForNetwork(network, true);
13781372
}
13791373

13801374
@Override
@@ -1396,17 +1390,5 @@ private void updateToFailedState(Network network){
13961390
router.setUpdateState(VirtualRouter.UpdateState.UPDATE_FAILED);
13971391
_routerDao.persist(router);
13981392
}
1399-
setRestartRequiredForNetwork(network, true);
1400-
}
1401-
1402-
private void setRestartRequiredForNetwork(Network network, boolean restartRequired) {
1403-
NetworkVO networkVo = _networksDao.findById(network.getId());
1404-
networkVo.setRestartRequired(restartRequired);
1405-
if (networkVo.getVpcId() == null) {
1406-
VpcVO vpc = _vpcDao.findById(networkVo.getVpcId());
1407-
vpc.setRestartRequired(restartRequired);
1408-
_vpcDao.persist(vpc);
1409-
}
1410-
_networksDao.persist(networkVo);
14111393
}
14121394
}

0 commit comments

Comments
 (0)