public interface SubnetApi
Modifier and Type | Method and Description |
---|---|
Subnet |
create(Subnet.CreateSubnet subnet)
Create a subnet within a specified network
|
com.google.common.collect.FluentIterable<Subnet> |
createBulk(List<Subnet.CreateSubnet> subnets)
Create multiple subnets
|
boolean |
delete(String id)
Delete a subnet
|
Subnet |
get(String id)
Returns the specific Subnet.
|
PagedIterable<Subnet> |
list()
Returns the list of all subnets currently defined in Neutron for the current tenant.
|
Subnets |
list(PaginationOptions options) |
Subnet |
update(String id,
Subnet.UpdateSubnet subnet)
Update a subnet
|
@Named(value="subnet:list") PagedIterable<Subnet> list()
@Named(value="subnet:list") Subnets list(PaginationOptions options)
@Named(value="subnet:get") @Nullable Subnet get(String id)
id
- the id of the subnet to return@Named(value="subnet:create") Subnet create(Subnet.CreateSubnet subnet)
subnet
- the subnet to be created@Named(value="subnet:createBulk") com.google.common.collect.FluentIterable<Subnet> createBulk(List<Subnet.CreateSubnet> subnets)
subnets
- the bulk of subnets to create@Named(value="subnet:update") Subnet update(String id, Subnet.UpdateSubnet subnet)
id
- the id of the subnet to update@Named(value="subnet:delete") boolean delete(String id)
id
- the id of the subnet to deleteCopyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.