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