public class RouterServiceImpl extends BaseNetworkingServices implements RouterService
BaseOpenStackService.Invocation<R>| Constructor and Description |
|---|
RouterServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
RouterInterface |
attachInterface(String routerId,
AttachInterfaceType type,
String portOrSubnetId)
Attaches a Subnet or Port to the specified router
|
Router |
create(Router router)
Creates a Router
|
Router |
create(String name,
boolean adminStateUp)
Creates a basic router with minimal params
|
ActionResponse |
delete(String routerId)
Deletes the specified Router by ID
|
RouterInterface |
detachInterface(String routerId,
String subnetId,
String portId)
Removes an internal router interface, which detaches a subnet from the router.
|
Router |
get(String routerId)
Gets a Router by ID
|
List<? extends Router> |
list()
This operation returns a list of routers to which the tenant has access.
|
Router |
toggleAdminStateUp(String routerId,
boolean adminStateUp)
Toggles the Administrative state by Router ID
|
Router |
update(Router router)
Updates a Router.
|
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uripublic List<? extends Router> list()
list in interface RouterServicepublic Router get(String routerId)
get in interface RouterServicerouterId - the router identifierpublic ActionResponse delete(String routerId)
delete in interface RouterServicerouterId - the router identifier to deletepublic Router create(String name, boolean adminStateUp)
create in interface RouterServicename - the name of the routeradminStateUp - the initial administrative statepublic Router create(Router router)
create in interface RouterServicerouter - the router to createpublic Router update(Router router)
router. See IdEntity.setId(String)update in interface RouterServicerouter - the router to updatepublic Router toggleAdminStateUp(String routerId, boolean adminStateUp)
RouterServicetoggleAdminStateUp in interface RouterServicerouterId - the router identifieradminStateUp - true to enable the administrative state uppublic RouterInterface attachInterface(String routerId, AttachInterfaceType type, String portOrSubnetId)
RouterServiceattachInterface in interface RouterServicerouterId - the router identifiertype - the type of portOrSubnetId identifierportOrSubnetId - the port or subnet identifierpublic RouterInterface detachInterface(String routerId, String subnetId, String portId)
RouterServicedetachInterface in interface RouterServicerouterId - the router identifiersubnetId - the subnet identifierportId - the port identifierCopyright © 2017. All rights reserved.