Package com.vmware.nsx_policy.model
Class PolicyInterfaceOspfConfig
- java.lang.Object
-
- com.vmware.nsx_policy.model.PolicyInterfaceOspfConfig
-
- All Implemented Interfaces:
com.vmware.vapi.bindings.StaticStructure
,com.vmware.vapi.bindings.Structure
,java.io.Serializable
public final class PolicyInterfaceOspfConfig extends java.lang.Object implements java.io.Serializable, com.vmware.vapi.bindings.StaticStructure
OSPF Interface configuration.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PolicyInterfaceOspfConfig.Builder
Builder class forPolicyInterfaceOspfConfig
.
-
Field Summary
Fields Modifier and Type Field Description protected com.vmware.vapi.data.StructValue
__dynamicStructureFields
static java.lang.String
NETWORK_TYPE_BROADCAST
static java.lang.String
NETWORK_TYPE_P2P
-
Constructor Summary
Constructors Modifier Constructor Description PolicyInterfaceOspfConfig()
Default constructor.protected
PolicyInterfaceOspfConfig(com.vmware.vapi.data.StructValue __dynamicStructureFields)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends com.vmware.vapi.bindings.Structure>
T_convertTo(java.lang.Class<T> clazz)
java.lang.String
_getCanonicalName()
static java.lang.String
_getCanonicalTypeName()
Returns the canonical type name.static com.vmware.vapi.bindings.type.StructType
_getClassType()
WARNING: Internal method, subject to change in future versions.com.vmware.vapi.data.StructValue
_getDataValue()
com.vmware.vapi.data.DataValue
_getDynamicField(java.lang.String fieldName)
java.util.Set<java.lang.String>
_getDynamicFieldNames()
com.vmware.vapi.bindings.type.StructType
_getType()
boolean
_hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz)
static PolicyInterfaceOspfConfig
_newInstance(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Returns new instance of this binding class and injects the provided data value.
WARNING: The returned object is not fully initialized.static PolicyInterfaceOspfConfig
_newInstance2(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Serves as a versioning mechanism.void
_setDynamicField(java.lang.String fieldName, com.vmware.vapi.data.DataValue fieldValue)
protected void
_updateDataValue(com.vmware.vapi.data.StructValue structValue)
void
_validate()
boolean
equals(java.lang.Object obj)
java.lang.String
getBfdPath()
This filed is valid only if enable_bfd is set to TRUE.java.lang.Long
getDeadInterval()
Specifies the number of seconds that router must wait before it declares a OSPF neighbor router down because it has not received OSPF hello packet.java.lang.Boolean
getEnableBfd()
Enable/Disable OSPF to register for BFD event.java.lang.Boolean
getEnabled()
enable/disable OSPF on the interface.java.lang.Long
getHelloInterval()
Specifies the interval between the hello packets that OSPF sends on this interface.java.lang.String
getNetworkType()
Possible values are:NETWORK_TYPE_BROADCAST
NETWORK_TYPE_P2P
Configure OSPF networkt type, default is BROADCAST network typejava.lang.String
getOspfArea()
Attache Tier0 Interface to specified OSPF Area.int
hashCode()
void
setBfdPath(java.lang.String bfdPath)
This filed is valid only if enable_bfd is set to TRUE.void
setDeadInterval(java.lang.Long deadInterval)
Specifies the number of seconds that router must wait before it declares a OSPF neighbor router down because it has not received OSPF hello packet.void
setEnableBfd(java.lang.Boolean enableBfd)
Enable/Disable OSPF to register for BFD event.void
setEnabled(java.lang.Boolean enabled)
enable/disable OSPF on the interface.void
setHelloInterval(java.lang.Long helloInterval)
Specifies the interval between the hello packets that OSPF sends on this interface.void
setNetworkType(java.lang.String networkType)
Possible values are:NETWORK_TYPE_BROADCAST
NETWORK_TYPE_P2P
Configure OSPF networkt type, default is BROADCAST network typevoid
setOspfArea(java.lang.String ospfArea)
Attache Tier0 Interface to specified OSPF Area.java.lang.String
toString()
-
-
-
Field Detail
-
NETWORK_TYPE_BROADCAST
public static final java.lang.String NETWORK_TYPE_BROADCAST
- See Also:
- Constant Field Values
-
NETWORK_TYPE_P2P
public static final java.lang.String NETWORK_TYPE_P2P
- See Also:
- Constant Field Values
-
__dynamicStructureFields
protected com.vmware.vapi.data.StructValue __dynamicStructureFields
-
-
Method Detail
-
getBfdPath
public java.lang.String getBfdPath()
This filed is valid only if enable_bfd is set to TRUE. If enable_bfd flag is set to TRUE, this profile will be applied to all OSPF peers in this interface. If this field is empty, bfd_path will refer to Tier-0 global BFD profile.- Returns:
- The current value of the property.
-
setBfdPath
public void setBfdPath(java.lang.String bfdPath)
This filed is valid only if enable_bfd is set to TRUE. If enable_bfd flag is set to TRUE, this profile will be applied to all OSPF peers in this interface. If this field is empty, bfd_path will refer to Tier-0 global BFD profile.- Parameters:
bfdPath
- New value for the property.
-
getDeadInterval
public java.lang.Long getDeadInterval()
Specifies the number of seconds that router must wait before it declares a OSPF neighbor router down because it has not received OSPF hello packet. OSPF dead interval should be minimum 3 times greater than the hello interval format: int32- Returns:
- The current value of the property.
-
setDeadInterval
public void setDeadInterval(java.lang.Long deadInterval)
Specifies the number of seconds that router must wait before it declares a OSPF neighbor router down because it has not received OSPF hello packet. OSPF dead interval should be minimum 3 times greater than the hello interval format: int32- Parameters:
deadInterval
- New value for the property.
-
getEnableBfd
public java.lang.Boolean getEnableBfd()
Enable/Disable OSPF to register for BFD event. Use FALSE to disable BFD.- Returns:
- The current value of the property.
-
setEnableBfd
public void setEnableBfd(java.lang.Boolean enableBfd)
Enable/Disable OSPF to register for BFD event. Use FALSE to disable BFD.- Parameters:
enableBfd
- New value for the property.
-
getEnabled
public java.lang.Boolean getEnabled()
enable/disable OSPF on the interface. If enabled flag not specified, defailt is enable OSPF.- Returns:
- The current value of the property.
-
setEnabled
public void setEnabled(java.lang.Boolean enabled)
enable/disable OSPF on the interface. If enabled flag not specified, defailt is enable OSPF.- Parameters:
enabled
- New value for the property.
-
getHelloInterval
public java.lang.Long getHelloInterval()
Specifies the interval between the hello packets that OSPF sends on this interface. OSPF hello interval should be less than the dead interval format: int32- Returns:
- The current value of the property.
-
setHelloInterval
public void setHelloInterval(java.lang.Long helloInterval)
Specifies the interval between the hello packets that OSPF sends on this interface. OSPF hello interval should be less than the dead interval format: int32- Parameters:
helloInterval
- New value for the property.
-
getNetworkType
public java.lang.String getNetworkType()
Possible values are: Configure OSPF networkt type, default is BROADCAST network type- Returns:
- The current value of the property.
-
setNetworkType
public void setNetworkType(java.lang.String networkType)
Possible values are: Configure OSPF networkt type, default is BROADCAST network type- Parameters:
networkType
- New value for the property.
-
getOspfArea
public java.lang.String getOspfArea()
Attache Tier0 Interface to specified OSPF Area. all peers.- Returns:
- The current value of the property.
-
setOspfArea
public void setOspfArea(java.lang.String ospfArea)
Attache Tier0 Interface to specified OSPF Area. all peers.- Parameters:
ospfArea
- New value for the property.
-
_getType
public com.vmware.vapi.bindings.type.StructType _getType()
- Specified by:
_getType
in interfacecom.vmware.vapi.bindings.StaticStructure
-
_getDataValue
public com.vmware.vapi.data.StructValue _getDataValue()
- Specified by:
_getDataValue
in interfacecom.vmware.vapi.bindings.Structure
-
_updateDataValue
protected void _updateDataValue(com.vmware.vapi.data.StructValue structValue)
-
_validate
public void _validate()
- Specified by:
_validate
in interfacecom.vmware.vapi.bindings.StaticStructure
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Specified by:
toString
in interfacecom.vmware.vapi.bindings.StaticStructure
- Overrides:
toString
in classjava.lang.Object
-
_hasTypeNameOf
public boolean _hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz)
- Specified by:
_hasTypeNameOf
in interfacecom.vmware.vapi.bindings.Structure
-
_convertTo
public <T extends com.vmware.vapi.bindings.Structure> T _convertTo(java.lang.Class<T> clazz)
- Specified by:
_convertTo
in interfacecom.vmware.vapi.bindings.Structure
-
_setDynamicField
public void _setDynamicField(java.lang.String fieldName, com.vmware.vapi.data.DataValue fieldValue)
- Specified by:
_setDynamicField
in interfacecom.vmware.vapi.bindings.StaticStructure
-
_getDynamicField
public com.vmware.vapi.data.DataValue _getDynamicField(java.lang.String fieldName)
- Specified by:
_getDynamicField
in interfacecom.vmware.vapi.bindings.StaticStructure
-
_getDynamicFieldNames
public java.util.Set<java.lang.String> _getDynamicFieldNames()
- Specified by:
_getDynamicFieldNames
in interfacecom.vmware.vapi.bindings.StaticStructure
-
_getClassType
public static com.vmware.vapi.bindings.type.StructType _getClassType()
WARNING: Internal method, subject to change in future versions.- Returns:
StructType
instance representing the static bindings type for thisStructure
.
-
_getCanonicalName
public java.lang.String _getCanonicalName()
- Specified by:
_getCanonicalName
in interfacecom.vmware.vapi.bindings.Structure
-
_getCanonicalTypeName
public static java.lang.String _getCanonicalTypeName()
Returns the canonical type name. See_getCanonicalName()
.- Returns:
- canonical type name
-
_newInstance
public static PolicyInterfaceOspfConfig _newInstance(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Returns new instance of this binding class and injects the provided data value.
WARNING: The returned object is not fully initialized.- Parameters:
structValue
- the source of the data contained in the binding object. Could contain more data than fields of this class can describe i.e. newer version of the binding object. Could be null.- Returns:
- the static bindings
StructType
-
_newInstance2
public static PolicyInterfaceOspfConfig _newInstance2(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Serves as a versioning mechanism.
-
-