|
20 | 20 | import java.util.List; |
21 | 21 | import java.util.Map; |
22 | 22 |
|
23 | | -import com.cloud.agent.api.to.NicTO; |
24 | 23 | import com.cloud.async.executor.AssignToLoadBalancerExecutor; |
25 | 24 | import com.cloud.async.executor.LoadBalancerParam; |
26 | 25 | import com.cloud.dc.DataCenterVO; |
27 | 26 | import com.cloud.dc.HostPodVO; |
28 | 27 | import com.cloud.dc.VlanVO; |
29 | | -import com.cloud.deploy.DeployDestination; |
30 | | -import com.cloud.deploy.DeploymentPlan; |
31 | 28 | import com.cloud.exception.ConcurrentOperationException; |
32 | | -import com.cloud.exception.InsufficientAddressCapacityException; |
33 | 29 | import com.cloud.exception.InsufficientCapacityException; |
34 | | -import com.cloud.exception.InsufficientVirtualNetworkCapcityException; |
35 | 30 | import com.cloud.exception.ResourceAllocationException; |
36 | 31 | import com.cloud.hypervisor.Hypervisor.HypervisorType; |
37 | 32 | import com.cloud.network.FirewallRuleVO; |
38 | 33 | import com.cloud.network.IPAddressVO; |
39 | | -import com.cloud.network.NetworkConfiguration; |
40 | | -import com.cloud.network.NetworkConfigurationVO; |
41 | | -import com.cloud.offerings.NetworkOfferingVO; |
42 | 34 | import com.cloud.service.ServiceOfferingVO; |
43 | 35 | import com.cloud.user.AccountVO; |
44 | | -import com.cloud.utils.Pair; |
45 | 36 | import com.cloud.utils.component.Manager; |
46 | 37 | import com.cloud.vm.DomainRouter; |
47 | 38 | import com.cloud.vm.DomainRouterVO; |
48 | | -import com.cloud.vm.NicProfile; |
49 | | -import com.cloud.vm.NicVO; |
50 | 39 | import com.cloud.vm.UserVmVO; |
51 | | -import com.cloud.vm.VMInstanceVO; |
52 | | -import com.cloud.vm.VirtualMachineProfile; |
53 | 40 |
|
54 | 41 | /** |
55 | 42 | * NetworkManager manages the network for the different end users. |
@@ -120,6 +107,9 @@ public interface DomainRouterManager extends Manager { |
120 | 107 |
|
121 | 108 | boolean getRouterStatistics(long vmId, Map<String, long[]> netStats, Map<String, long[]> diskStats); |
122 | 109 |
|
| 110 | + DomainRouterVO findByPublicIpAddress(String publicIpAddress); |
| 111 | + DomainRouterVO findByAccountAndDataCenter(long accountId, long dataCenterId); |
| 112 | + |
123 | 113 | boolean rebootRouter(long routerId, long eventId); |
124 | 114 | /** |
125 | 115 | * @param hostId get all of the virtual machine routers on a host. |
@@ -225,19 +215,5 @@ public interface DomainRouterManager extends Manager { |
225 | 215 | */ |
226 | 216 | List<IPAddressVO> listPublicIpAddressesInVirtualNetwork(long accountId, long dcId, Boolean sourceNat); |
227 | 217 |
|
228 | | - NetworkConfigurationVO setupNetworkConfiguration(AccountVO owner, NetworkOfferingVO offering, DeploymentPlan plan); |
229 | | - NetworkConfigurationVO setupNetworkConfiguration(AccountVO owner, NetworkOfferingVO offering, NetworkConfiguration predefined, DeploymentPlan plan); |
230 | | - List<NetworkConfigurationVO> setupNetworkConfigurations(AccountVO owner, List<NetworkOfferingVO> offerings, DeploymentPlan plan); |
231 | | - |
232 | | - List<NetworkOfferingVO> getSystemAccountNetworkOfferings(String... offeringNames); |
233 | | - |
234 | | - List<NicProfile> allocate(VirtualMachineProfile vm, List<Pair<NetworkConfigurationVO, NicProfile>> networks) throws InsufficientCapacityException; |
235 | | - |
236 | | - NicTO[] prepare(VirtualMachineProfile profile, DeployDestination dest) throws InsufficientAddressCapacityException, InsufficientVirtualNetworkCapcityException; |
237 | | - void release(VirtualMachineProfile vmProfile); |
238 | | - |
239 | | - <K extends VMInstanceVO> void create(K vm); |
240 | | - |
241 | | - <K extends VMInstanceVO> List<NicVO> getNics(K vm); |
242 | 218 | boolean upgradeRouter(long routerId, long serviceOfferingId); |
243 | 219 | } |
0 commit comments