Search in sources :

Example 1 with StartupBigSwitchBcfCommand

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

the class BigSwitchBcfElement method createHostVOForDirectConnectAgent.

@Override
public HostVO createHostVOForDirectConnectAgent(HostVO host, StartupCommand[] startup, ServerResource resource, Map<String, String> details, List<String> hostTags) {
    if (!(startup[0] instanceof StartupBigSwitchBcfCommand)) {
        return null;
    }
    BigSwitchBcfResource bcfResource = (BigSwitchBcfResource) resource;
    bcfUtilsInit();
    if (_bcfUtils.getTopology() != null) {
        bcfResource.setTopology(_bcfUtils.getTopology());
    }
    host.setType(Host.Type.L2Networking);
    return host;
}
Also used : StartupBigSwitchBcfCommand(com.cloud.agent.api.StartupBigSwitchBcfCommand) BigSwitchBcfResource(com.cloud.network.resource.BigSwitchBcfResource)

Example 2 with StartupBigSwitchBcfCommand

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

the class BigSwitchBcfResource method initialize.

@Override
public StartupCommand[] initialize() {
    StartupBigSwitchBcfCommand sc = new StartupBigSwitchBcfCommand();
    sc.setGuid(_guid);
    sc.setName(_name);
    sc.setDataCenter(_zoneId);
    sc.setPod("");
    sc.setPrivateIpAddress("");
    sc.setStorageIpAddress("");
    sc.setVersion("");
    return new StartupCommand[] { sc };
}
Also used : StartupCommand(com.cloud.agent.api.StartupCommand) StartupBigSwitchBcfCommand(com.cloud.agent.api.StartupBigSwitchBcfCommand)

Aggregations

StartupBigSwitchBcfCommand (com.cloud.agent.api.StartupBigSwitchBcfCommand)2 StartupCommand (com.cloud.agent.api.StartupCommand)1 BigSwitchBcfResource (com.cloud.network.resource.BigSwitchBcfResource)1