Search in sources :

Example 1 with SetupVRCommand

use of com.cloud.agent.api.SetupVRCommand in project cosmic by MissionCriticalCloud.

the class CommandSetupHelper method createVRConfigCommands.

public void createVRConfigCommands(final Vpc vpc, final DomainRouterVO router, final Commands cmds) {
    final SetupVRCommand cmd = new SetupVRCommand(vpc);
    cmd.setAccessDetail(NetworkElementCommand.ROUTER_IP, _routerControlHelper.getRouterControlIp(router.getId()));
    cmd.setAccessDetail(NetworkElementCommand.ROUTER_NAME, router.getInstanceName());
    final Zone zone = zoneRepository.findOne(router.getDataCenterId());
    cmd.setAccessDetail(NetworkElementCommand.ZONE_NETWORK_TYPE, zone.getNetworkType().toString());
    cmds.addCommand(cmd);
}
Also used : Zone(com.cloud.db.model.Zone) SetupVRCommand(com.cloud.agent.api.SetupVRCommand)

Aggregations

SetupVRCommand (com.cloud.agent.api.SetupVRCommand)1 Zone (com.cloud.db.model.Zone)1