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);
}
Aggregations