public class TrunkServiceImpl extends BaseNetworkingServices implements TrunkService
BaseOpenStackService.Invocation<R>| Constructor and Description |
|---|
TrunkServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Trunk |
addTrunkSubport(String trunkId,
TrunkSubport subPort)
Adds a subport to the specified Trunk
|
Trunk |
create(Trunk trunk)
Creates a trunk
|
ActionResponse |
delete(String trunkId)
Delete a trunk
|
Trunk |
get(String trunkId)
Get a trunk by ID
|
List<? extends Trunk> |
list()
Lists all trunks
|
List<NeutronTrunkSubport> |
listTrunkSubports(String trunkId)
List the subports associated with the trunk
|
Trunk |
removeTrunkSubport(String trunkId,
String portId)
Removes subport from the specified trunk
|
Trunk |
update(Trunk trunk)
Updates a trunk object
|
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uripublic List<? extends Trunk> list()
list in interface TrunkServicepublic Trunk create(Trunk trunk)
create in interface TrunkServicetrunk - the trunk to createpublic Trunk get(String trunkId)
get in interface TrunkServicetrunkId - the trunk IDpublic ActionResponse delete(String trunkId)
delete in interface TrunkServicetrunkId - ID of the trunkpublic Trunk update(Trunk trunk)
update in interface TrunkServicetrunk - the trunk object to updatepublic Trunk addTrunkSubport(String trunkId, TrunkSubport subPort)
addTrunkSubport in interface TrunkServicetrunkId - ID of the trunksubPort - subport object to addpublic Trunk removeTrunkSubport(String trunkId, String portId)
removeTrunkSubport in interface TrunkServicetrunkId - trunk IDportId - the ID of the subport to removepublic List<NeutronTrunkSubport> listTrunkSubports(String trunkId)
listTrunkSubports in interface TrunkServicetrunkId - trunk IDCopyright © 2020. All rights reserved.