Search in sources :

Example 6 with AbstractConfigItemFacade

use of com.cloud.agent.resource.virtualnetwork.facade.AbstractConfigItemFacade in project cloudstack by apache.

the class VirtualRoutingResource method generateCommandCfg.

private List<ConfigItem> generateCommandCfg(NetworkElementCommand cmd) {
    /*
         * [TODO] Still have to migrate LoadBalancerConfigCommand and BumpUpPriorityCommand
         * [FIXME] Have a look at SetSourceNatConfigItem
         */
    s_logger.debug("Transforming " + cmd.getClass().getCanonicalName() + " to ConfigItems");
    final AbstractConfigItemFacade configItemFacade = AbstractConfigItemFacade.getInstance(cmd.getClass());
    return configItemFacade.generateConfig(cmd);
}
Also used : AbstractConfigItemFacade(com.cloud.agent.resource.virtualnetwork.facade.AbstractConfigItemFacade)

Aggregations

AbstractConfigItemFacade (com.cloud.agent.resource.virtualnetwork.facade.AbstractConfigItemFacade)6 Test (org.junit.Test)5 DeleteIpAliasCommand (com.cloud.agent.api.routing.DeleteIpAliasCommand)1 DnsMasqConfigCommand (com.cloud.agent.api.routing.DnsMasqConfigCommand)1 IpAssocVpcCommand (com.cloud.agent.api.routing.IpAssocVpcCommand)1 LoadBalancerConfigCommand (com.cloud.agent.api.routing.LoadBalancerConfigCommand)1 SetPortForwardingRulesVpcCommand (com.cloud.agent.api.routing.SetPortForwardingRulesVpcCommand)1 DhcpConfig (com.cloud.agent.resource.virtualnetwork.model.DhcpConfig)1 DhcpConfigEntry (com.cloud.agent.resource.virtualnetwork.model.DhcpConfigEntry)1 ForwardingRule (com.cloud.agent.resource.virtualnetwork.model.ForwardingRule)1 ForwardingRules (com.cloud.agent.resource.virtualnetwork.model.ForwardingRules)1 IpAddress (com.cloud.agent.resource.virtualnetwork.model.IpAddress)1 IpAddressAlias (com.cloud.agent.resource.virtualnetwork.model.IpAddressAlias)1 IpAliases (com.cloud.agent.resource.virtualnetwork.model.IpAliases)1 IpAssociation (com.cloud.agent.resource.virtualnetwork.model.IpAssociation)1 LoadBalancerRule (com.cloud.agent.resource.virtualnetwork.model.LoadBalancerRule)1 LoadBalancerRules (com.cloud.agent.resource.virtualnetwork.model.LoadBalancerRules)1