Subnet.Mode| Constructor and Description |
|---|
DefaultSubnet(SubnetId id,
String subnetName,
TenantNetworkId networkId,
TenantId tenantId,
org.onlab.packet.IpAddress.Version ipVersion,
org.onlab.packet.IpPrefix cidr,
org.onlab.packet.IpAddress gatewayIp,
boolean dhcpEnabled,
boolean shared,
Set<HostRoute> hostRoutes,
Subnet.Mode ipV6AddressMode,
Subnet.Mode ipV6RaMode,
Set<AllocationPool> allocationPoolsIt)
Creates a subnet object.
|
| Modifier and Type | Method and Description |
|---|---|
Iterable<AllocationPool> |
allocationPools()
Returns a collection of allocation_pools.
|
org.onlab.packet.IpPrefix |
cidr()
Returns the cidr.
|
boolean |
dhcpEnabled()
Returns true if DHCP is enabled and return false if DHCP is disabled.
|
boolean |
equals(Object obj) |
org.onlab.packet.IpAddress |
gatewayIp()
Returns the gateway IP address.
|
int |
hashCode() |
Iterable<HostRoute> |
hostRoutes()
Returns a collection of hostRoutes.
|
SubnetId |
id()
Returns the subnet identifier.
|
Subnet.Mode |
ipV6AddressMode()
Returns the ipV6AddressMode.
|
Subnet.Mode |
ipV6RaMode()
Returns the ipV6RaMode.A valid value is dhcpv6-stateful,
dhcpv6-stateless, or slaac.
|
org.onlab.packet.IpAddress.Version |
ipVersion()
Returns the IP version, which is 4 or 6.
|
TenantNetworkId |
networkId()
Returns the network identifier.
|
boolean |
shared()
Indicates whether this tenantNetwork is shared across all tenants.
|
String |
subnetName()
Returns the name of the subnet.
|
TenantId |
tenantId()
Returns tenant identifier.
|
String |
toString() |
public DefaultSubnet(SubnetId id, String subnetName, TenantNetworkId networkId, TenantId tenantId, org.onlab.packet.IpAddress.Version ipVersion, org.onlab.packet.IpPrefix cidr, org.onlab.packet.IpAddress gatewayIp, boolean dhcpEnabled, boolean shared, Set<HostRoute> hostRoutes, Subnet.Mode ipV6AddressMode, Subnet.Mode ipV6RaMode, Set<AllocationPool> allocationPoolsIt)
id - subnet identifiersubnetName - the name of subnetnetworkId - network identifiertenantId - tenant identifieripVersion - Version of ipv4 or ipv6cidr - the cidrgatewayIp - gateway ipdhcpEnabled - dhcp enabled or notshared - indicates whether this network is shared across all
tenants, By default, only administrative user can change this
valuehostRoutes - a collection of host routesipV6AddressMode - ipV6AddressModeipV6RaMode - ipV6RaModeallocationPoolsIt - a collection of allocationPoolspublic String subnetName()
SubnetsubnetName in interface Subnetpublic TenantNetworkId networkId()
Subnetpublic TenantId tenantId()
Subnetpublic org.onlab.packet.IpAddress.Version ipVersion()
Subnetpublic org.onlab.packet.IpPrefix cidr()
Subnetpublic org.onlab.packet.IpAddress gatewayIp()
Subnetpublic boolean dhcpEnabled()
SubnetdhcpEnabled in interface Subnetpublic boolean shared()
Subnetpublic Iterable<HostRoute> hostRoutes()
SubnethostRoutes in interface Subnetpublic Subnet.Mode ipV6AddressMode()
SubnetipV6AddressMode in interface Subnetpublic Subnet.Mode ipV6RaMode()
SubnetipV6RaMode in interface Subnetpublic Iterable<AllocationPool> allocationPools()
SubnetallocationPools in interface Subnet