@Beta
public interface RouterApi
Modifier and Type | Method and Description |
---|---|
RouterInterface |
addInterfaceForPort(String routerId,
String portId)
Add a interface to a router to connect to the specified port
|
RouterInterface |
addInterfaceForSubnet(String routerId,
String subnetId)
Add a interface to a router to connect to the specified subnet
|
Router |
create(Router.CreateRouter router)
Create a new router
|
boolean |
delete(String id)
Deletes the specified router
|
Router |
get(String id)
Returns a Routers collection that should contain a single router with the id requested.
|
PagedIterable<Router> |
list()
Returns the list of all routers currently defined in Neutron for the current tenant.
|
Routers |
list(PaginationOptions options) |
boolean |
removeInterfaceForPort(String routerId,
String portId)
Remove the interface where the specified port is connected to
|
boolean |
removeInterfaceForSubnet(String routerId,
String subnetId)
Remove the interface where the specified subnet is connected to
|
Router |
update(String id,
Router.UpdateRouter router)
Update a router
|
@Named(value="router:list") PagedIterable<Router> list()
@Named(value="router:list") Routers list(PaginationOptions options)
@Named(value="router:get") @Nullable Router get(String id)
id
- the id of the router to return@Named(value="router:create") Router create(Router.CreateRouter router)
router
- Options for creating a router@Named(value="router:update") @Nullable Router update(String id, Router.UpdateRouter router)
id
- the id of the router to updaterouter
- Contains only the attributes to update@Named(value="router:delete") boolean delete(String id)
id
- the id of the router to delete@Named(value="router:addInterfaceForSubnet") @Nullable RouterInterface addInterfaceForSubnet(String routerId, String subnetId)
routerId
- the id of the router to create the interface atsubnetId
- the id of the subnet to connect with the interface@Named(value="router:addInterfaceForPort") @Nullable RouterInterface addInterfaceForPort(String routerId, String portId)
routerId
- the id of the router to create the interface atportId
- the id of the port to connect with the interface@Named(value="router:removeInterfaceForSubnet") boolean removeInterfaceForSubnet(String routerId, String subnetId)
routerId
- the id of the router to remove the interface fromsubnetId
- the id of the subnet to disconnect from the interface@Named(value="router:removeInterfaceForPort") boolean removeInterfaceForPort(String routerId, String portId)
routerId
- the id of the router to remove the interface fromportId
- the id of the port to disconnect from the interfaceCopyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.