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, uri
public List<? extends Router> list()
list
in interface RouterService
public Router get(String routerId)
get
in interface RouterService
routerId
- the router identifierpublic ActionResponse delete(String routerId)
delete
in interface RouterService
routerId
- the router identifier to deletepublic Router create(String name, boolean adminStateUp)
create
in interface RouterService
name
- the name of the routeradminStateUp
- the initial administrative statepublic Router create(Router router)
create
in interface RouterService
router
- the router to createpublic Router update(Router router)
router
. See IdEntity.setId(String)
update
in interface RouterService
router
- the router to updatepublic Router toggleAdminStateUp(String routerId, boolean adminStateUp)
RouterService
toggleAdminStateUp
in interface RouterService
routerId
- the router identifieradminStateUp
- true to enable the administrative state uppublic RouterInterface attachInterface(String routerId, AttachInterfaceType type, String portOrSubnetId)
RouterService
attachInterface
in interface RouterService
routerId
- the router identifiertype
- the type of portOrSubnetId
identifierportOrSubnetId
- the port or subnet identifierpublic RouterInterface detachInterface(String routerId, String subnetId, String portId)
RouterService
detachInterface
in interface RouterService
routerId
- the router identifiersubnetId
- the subnet identifierportId
- the port identifierCopyright © 2017. All rights reserved.