public interface RouterService extends RestService
| 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.
|
List<? extends Router> list()
Router get(String routerId)
routerId - the router identifierActionResponse delete(String routerId)
routerId - the router identifier to deleteRouter create(String name, boolean adminStateUp)
name - the name of the routeradminStateUp - the initial administrative stateRouter create(Router router)
router - the router to createRouter update(Router router)
router. See IdEntity.setId(String)router - the router to updateRouter toggleAdminStateUp(String routerId, boolean adminStateUp)
routerId - the router identifieradminStateUp - true to enable the administrative state upRouterInterface attachInterface(String routerId, AttachInterfaceType type, String portOrSubnetId)
routerId - the router identifiertype - the type of portOrSubnetId identifierportOrSubnetId - the port or subnet identifierRouterInterface detachInterface(String routerId, String subnetId, String portId)
routerId - the router identifiersubnetId - the subnet identifierportId - the port identifierClientResponseException - if one of the specified identifiers does not existCopyright © 2017. All rights reserved.