public final class DefaultTenantNetwork extends Object implements TenantNetwork
TenantNetwork.State, TenantNetwork.Type| Constructor and Description |
|---|
DefaultTenantNetwork(TenantNetworkId id,
String name,
boolean adminStateUp,
TenantNetwork.State state,
boolean shared,
TenantId tenantId,
boolean routerExternal,
TenantNetwork.Type type,
PhysicalNetwork physicalNetwork,
SegmentationId segmentationId)
Creates a neutronNetwork element attributed to the specified provider.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
adminStateUp()
Returns the administrative state of the tenantNetwork,which is up(true)
or down(false).
|
boolean |
equals(Object obj) |
int |
hashCode() |
TenantNetworkId |
id()
Returns the tenantNetwork identifier.
|
String |
name()
Returns the tenantNetwork name.
|
PhysicalNetwork |
physicalNetwork()
Returns the tenantNetwork physical network.
|
boolean |
routerExternal()
Returns the routerExternal.Indicates whether this network is externally
accessible.
|
SegmentationId |
segmentationId()
Returns the tenantNetwork segmentation id.
|
boolean |
shared()
Indicates whether this tenantNetwork is shared across all tenants.
|
TenantNetwork.State |
state()
Returns the tenantNetwork state.
|
TenantId |
tenantId()
Returns the UUID of the tenant that will own the tenantNetwork.
|
String |
toString() |
TenantNetwork.Type |
type()
Returns the tenantNetwork Type.
|
public DefaultTenantNetwork(TenantNetworkId id, String name, boolean adminStateUp, TenantNetwork.State state, boolean shared, TenantId tenantId, boolean routerExternal, TenantNetwork.Type type, PhysicalNetwork physicalNetwork, SegmentationId segmentationId)
id - network identifiername - the network nameadminStateUp - administrative state of the networkstate - the network stateshared - indicates whether this network is shared across all
tenants, By default, only administrative user can change this
valuetenantId - tenant identifierrouterExternal - network routerExternaltype - the network typephysicalNetwork - physicalNetwork identifiersegmentationId - segmentation identifierpublic TenantNetworkId id()
TenantNetworkid in interface TenantNetworkpublic String name()
TenantNetworkname in interface TenantNetworkpublic boolean adminStateUp()
TenantNetworkadminStateUp in interface TenantNetworkpublic TenantNetwork.State state()
TenantNetworkstate in interface TenantNetworkpublic boolean shared()
TenantNetworkshared in interface TenantNetworkpublic TenantId tenantId()
TenantNetworktenantId in interface TenantNetworkpublic boolean routerExternal()
TenantNetworkrouterExternal in interface TenantNetworkpublic TenantNetwork.Type type()
TenantNetworktype in interface TenantNetworkpublic PhysicalNetwork physicalNetwork()
TenantNetworkphysicalNetwork in interface TenantNetworkpublic SegmentationId segmentationId()
TenantNetworksegmentationId in interface TenantNetwork