Search in sources :

Example 1 with StartupOpenDaylightControllerCommand

use of org.apache.cloudstack.network.opendaylight.agent.commands.StartupOpenDaylightControllerCommand in project cloudstack by apache.

the class OpenDaylightControllerResource method initialize.

@Override
public StartupCommand[] initialize() {
    StartupOpenDaylightControllerCommand sc = new StartupOpenDaylightControllerCommand();
    sc.setGuid((String) configuration.get("guid"));
    sc.setName(getName());
    sc.setDataCenter((String) configuration.get("zoneId"));
    sc.setPod("");
    sc.setPrivateIpAddress("");
    sc.setStorageIpAddress("");
    sc.setVersion(OpenDaylightControllerResource.class.getPackage().getImplementationVersion());
    return new StartupCommand[] { sc };
}
Also used : StartupOpenDaylightControllerCommand(org.apache.cloudstack.network.opendaylight.agent.commands.StartupOpenDaylightControllerCommand) StartupCommand(com.cloud.agent.api.StartupCommand)

Aggregations

StartupCommand (com.cloud.agent.api.StartupCommand)1 StartupOpenDaylightControllerCommand (org.apache.cloudstack.network.opendaylight.agent.commands.StartupOpenDaylightControllerCommand)1