Package org.openstack4j.api.networking
Interface TrunkService
-
- All Superinterfaces:
RestService
- All Known Implementing Classes:
TrunkServiceImpl
public interface TrunkService extends RestService
OpenStack Network Trunk operations- Author:
- Kashyap Jha
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TrunkaddTrunkSubport(String trunkId, TrunkSubport subPort)Adds a subport to the specified TrunkTrunkcreate(Trunk trunk)Creates a trunkActionResponsedelete(String trunkId)Delete a trunkTrunkget(String trunkId)Get a trunk by IDList<? extends Trunk>list()Lists all trunksList<NeutronTrunkSubport>listTrunkSubports(String trunkId)List the subports associated with the trunkTrunkremoveTrunkSubport(String trunkId, String portId)Removes subport from the specified trunkTrunkupdate(Trunk trunk)Updates a trunk object
-
-
-
Method Detail
-
create
Trunk create(Trunk trunk)
Creates a trunk- Parameters:
trunk- the trunk to create- Returns:
- the created trunk object
-
delete
ActionResponse delete(String trunkId)
Delete a trunk- Parameters:
trunkId- ID of the trunk- Returns:
- action response
-
get
Trunk get(String trunkId)
Get a trunk by ID- Parameters:
trunkId- the trunk ID- Returns:
- the trunk object
-
update
Trunk update(Trunk trunk)
Updates a trunk object- Parameters:
trunk- the trunk object to update- Returns:
- the updated trunk object
-
listTrunkSubports
List<NeutronTrunkSubport> listTrunkSubports(String trunkId)
List the subports associated with the trunk- Parameters:
trunkId- trunk ID- Returns:
- a list of subports
-
addTrunkSubport
Trunk addTrunkSubport(String trunkId, TrunkSubport subPort)
Adds a subport to the specified Trunk- Parameters:
trunkId- ID of the trunksubPort- subport object to add- Returns:
- the updated trunk object
-
-