Search in sources :

Example 6 with NiciraNvpTag

use of com.cloud.network.nicira.NiciraNvpTag in project cloudstack by apache.

the class NiciraNvpUtilities method createLogicalSwitchPort.

public LogicalSwitchPort createLogicalSwitchPort(final CreateLogicalSwitchPortCommand command) {
    final String attachmentUuid = command.getAttachmentUuid();
    // Tags set to scope cs_account and account name
    final List<NiciraNvpTag> tags = new ArrayList<NiciraNvpTag>();
    tags.add(new NiciraNvpTag("cs_account", command.getOwnerName()));
    final LogicalSwitchPort logicalSwitchPort = new LogicalSwitchPort(attachmentUuid, tags, true);
    return logicalSwitchPort;
}
Also used : NiciraNvpTag(com.cloud.network.nicira.NiciraNvpTag) ArrayList(java.util.ArrayList) LogicalSwitchPort(com.cloud.network.nicira.LogicalSwitchPort)

Aggregations

NiciraNvpTag (com.cloud.network.nicira.NiciraNvpTag)6 ArrayList (java.util.ArrayList)6 NiciraNvpApi (com.cloud.network.nicira.NiciraNvpApi)5 NiciraNvpApiException (com.cloud.network.nicira.NiciraNvpApiException)5 LogicalSwitchPort (com.cloud.network.nicira.LogicalSwitchPort)4 CommandRetryUtility (com.cloud.network.utils.CommandRetryUtility)4 LogicalRouterPort (com.cloud.network.nicira.LogicalRouterPort)2 LogicalSwitch (com.cloud.network.nicira.LogicalSwitch)2 PatchAttachment (com.cloud.network.nicira.PatchAttachment)2 NiciraNvpUtilities (com.cloud.network.resource.NiciraNvpUtilities)2 ConfigureSharedNetworkUuidAnswer (com.cloud.agent.api.ConfigureSharedNetworkUuidAnswer)1 ConfigureSharedNetworkVlanIdAnswer (com.cloud.agent.api.ConfigureSharedNetworkVlanIdAnswer)1 CreateLogicalRouterAnswer (com.cloud.agent.api.CreateLogicalRouterAnswer)1 CreateLogicalSwitchAnswer (com.cloud.agent.api.CreateLogicalSwitchAnswer)1 UpdateLogicalSwitchPortAnswer (com.cloud.agent.api.UpdateLogicalSwitchPortAnswer)1 L2GatewayAttachment (com.cloud.network.nicira.L2GatewayAttachment)1 L3GatewayAttachment (com.cloud.network.nicira.L3GatewayAttachment)1 LogicalRouter (com.cloud.network.nicira.LogicalRouter)1 Match (com.cloud.network.nicira.Match)1 RouterNextHop (com.cloud.network.nicira.RouterNextHop)1