Search in sources :

Example 6 with DeleteIpAliasCommand

use of com.cloud.agent.api.routing.DeleteIpAliasCommand in project cloudstack by apache.

the class VirtualRoutingResourceTest method generateDeleteIpAliasCommand.

protected DeleteIpAliasCommand generateDeleteIpAliasCommand() {
    final List<IpAliasTO> aliases = new ArrayList<>();
    aliases.add(new IpAliasTO("169.254.3.10", "255.255.255.0", "1"));
    aliases.add(new IpAliasTO("169.254.3.11", "255.255.255.0", "2"));
    aliases.add(new IpAliasTO("169.254.3.12", "255.255.255.0", "3"));
    final DeleteIpAliasCommand cmd = new DeleteIpAliasCommand("169.254.10.1", aliases, aliases);
    cmd.setAccessDetail(NetworkElementCommand.ROUTER_NAME, ROUTERNAME);
    return cmd;
}
Also used : DeleteIpAliasCommand(com.cloud.agent.api.routing.DeleteIpAliasCommand) ArrayList(java.util.ArrayList) IpAliasTO(com.cloud.agent.api.routing.IpAliasTO)

Aggregations

DeleteIpAliasCommand (com.cloud.agent.api.routing.DeleteIpAliasCommand)6 IpAliasTO (com.cloud.agent.api.routing.IpAliasTO)3 ArrayList (java.util.ArrayList)2 Answer (com.cloud.agent.api.Answer)1 CheckRouterAnswer (com.cloud.agent.api.CheckRouterAnswer)1 CheckRouterCommand (com.cloud.agent.api.CheckRouterCommand)1 CheckS2SVpnConnectionsAnswer (com.cloud.agent.api.CheckS2SVpnConnectionsAnswer)1 CheckS2SVpnConnectionsCommand (com.cloud.agent.api.CheckS2SVpnConnectionsCommand)1 GetDomRVersionAnswer (com.cloud.agent.api.GetDomRVersionAnswer)1 GetDomRVersionCmd (com.cloud.agent.api.GetDomRVersionCmd)1 GetVmConfigAnswer (com.cloud.agent.api.GetVmConfigAnswer)1 NetworkUsageAnswer (com.cloud.agent.api.NetworkUsageAnswer)1 NetworkUsageCommand (com.cloud.agent.api.NetworkUsageCommand)1 PingTestCommand (com.cloud.agent.api.PingTestCommand)1 PlugNicAnswer (com.cloud.agent.api.PlugNicAnswer)1 PlugNicCommand (com.cloud.agent.api.PlugNicCommand)1 StartCommand (com.cloud.agent.api.StartCommand)1 UnPlugNicAnswer (com.cloud.agent.api.UnPlugNicAnswer)1 UnPlugNicCommand (com.cloud.agent.api.UnPlugNicCommand)1 UnsupportedAnswer (com.cloud.agent.api.UnsupportedAnswer)1