Package com.morpheusdata.model
Class NetworkPoolType
java.lang.Object
com.morpheusdata.model.MorpheusModel
com.morpheusdata.model.NetworkPoolType
Each implementation of IPAM Typically define a pool type for human readable reference. This enables the user to correctly
select the pool of the appropriate type. It is also possible for some
IPAMProvider
implementations to provide
multiple types (for example IPV6 vs. IPV4).- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
A Unique Code string for easier programmatic reference and API Use.protected Boolean
Defines whether or not a Pool can be created from the UI (Currently not supported by theIPAMProvider
implementation).protected String
An optional description can be provided if absolutely necessary.protected Boolean
protected Boolean
protected String
Human Readable name of the Pool Type.protected Boolean
Fields inherited from class com.morpheusdata.model.MorpheusModel
config, id
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCode()
Fetches the unique code pertaining to this particular network pool type.Gets creatable flag from this particular pool type.Gets the description of the network pool type if it is necessary for further clarification.Defines whether or not this pool type represents an IPv6 pool vs an IPv4getName()
Gets the human readable name of the Pool Type that will be displayed in the Morpheus UI for reference.Used if the Pool range supports CIDR only as opposed to a start and end ip range.void
Used for assigning a unique code for the NetworkPoolType.void
setCreatable
(Boolean creatable) Sets creatable flag from this particular pool type.void
setDescription
(String description) Sets the description text of the current pool type.void
setHostRecordEditable
(Boolean hostRecordEditable) void
setIpv6Pool
(Boolean ipv6Pool) void
Allows one to set the human readable name of the Pool Type that will be displayed in the Morpheus UI for reference.void
setRangeSupportsCidr
(Boolean rangeSupportsCidr) Used if the Pool range supports CIDR only as opposed to a start and end ip range.Methods inherited from class com.morpheusdata.model.MorpheusModel
getConfig, getConfigMap, getConfigProperty, getDirtyProperties, getDirtyPropertyValues, getId, getProperties, isDirty, markClean, markDirty, markDirty, setConfig, setConfigMap, setConfigProperty, setId
-
Field Details
-
code
A Unique Code string for easier programmatic reference and API Use. Should be unique globally -
name
Human Readable name of the Pool Type. (can be overridden with i18n schemas). -
description
An optional description can be provided if absolutely necessary. -
creatable
Defines whether or not a Pool can be created from the UI (Currently not supported by theIPAMProvider
implementation). -
rangeSupportsCidr
-
hostRecordEditable
-
ipv6Pool
-
-
Constructor Details
-
NetworkPoolType
public NetworkPoolType()
-
-
Method Details
-
getCode
Fetches the unique code pertaining to this particular network pool type. Morpheus uses codes for easier reference instead of simply using database ids as these can change from appliance to appliance where as the code is static and unique.- Returns:
- The unique string code representation of the pool type
-
setCode
Used for assigning a unique code for the NetworkPoolType. These should be globally unique and are typically provided via the relevantIPAMProvider
.- Parameters:
code
- a Unique code representation of a pool type. (i.e. 'infoblox').
-
getName
Gets the human readable name of the Pool Type that will be displayed in the Morpheus UI for reference. This should ideally be unique but is not mandatory.- Returns:
- name
-
setName
Allows one to set the human readable name of the Pool Type that will be displayed in the Morpheus UI for reference.- Parameters:
name
- A human readable name representing the provided network type.
-
getDescription
Gets the description of the network pool type if it is necessary for further clarification. In most cases this is not necessary and can be left blank since the pool type name should be descriptive enough.- Returns:
- A description of the current pool type is returned.
-
setDescription
Sets the description text of the current pool type. This description information can be used- Parameters:
description
- description
-
getCreatable
Gets creatable flag from this particular pool type. It informs the UI whether or not this pool type can be created from the UI. This is currently not supported by third partyIPAMProvider
implementations.- Returns:
- whether or not this pool type can be created directly from the Morpheus UI
-
setCreatable
Sets creatable flag from this particular pool type. It informs the UI whether or not this pool type can be created from the UI. This is currently not supported by third partyIPAMProvider
implementations.- Parameters:
creatable
- whether or not this pool type can be created directly from the Morpheus UI
-
getRangeSupportsCidr
Used if the Pool range supports CIDR only as opposed to a start and end ip range. This is primarily used for NSX-T TODO: Possibly not really needed- Returns:
- whether or not the range supports the CIDR definition
-
setRangeSupportsCidr
Used if the Pool range supports CIDR only as opposed to a start and end ip range. This is primarily used for NSX-T TODO: Possibly not really needed- Parameters:
rangeSupportsCidr
- the cidr flag
-
getHostRecordEditable
-
setHostRecordEditable
-
getIpv6Pool
Defines whether or not this pool type represents an IPv6 pool vs an IPv4 -
setIpv6Pool
-