Package com.vmware.nsx_policy.model
Class PolicyInterfaceOspfConfig.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.PolicyInterfaceOspfConfig.Builder
-
- Enclosing class:
- PolicyInterfaceOspfConfig
public static final class PolicyInterfaceOspfConfig.Builder extends java.lang.Object
Builder class forPolicyInterfaceOspfConfig
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofPolicyInterfaceOspfConfig
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyInterfaceOspfConfig
build()
PolicyInterfaceOspfConfig.Builder
setBfdPath(java.lang.String bfdPath)
This filed is valid only if enable_bfd is set to TRUE.PolicyInterfaceOspfConfig.Builder
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.PolicyInterfaceOspfConfig.Builder
setEnableBfd(java.lang.Boolean enableBfd)
Enable/Disable OSPF to register for BFD event.PolicyInterfaceOspfConfig.Builder
setEnabled(java.lang.Boolean enabled)
enable/disable OSPF on the interface.PolicyInterfaceOspfConfig.Builder
setHelloInterval(java.lang.Long helloInterval)
Specifies the interval between the hello packets that OSPF sends on this interface.PolicyInterfaceOspfConfig.Builder
setNetworkType(java.lang.String networkType)
Possible values are:PolicyInterfaceOspfConfig.NETWORK_TYPE_BROADCAST
PolicyInterfaceOspfConfig.NETWORK_TYPE_P2P
Configure OSPF networkt type, default is BROADCAST network typePolicyInterfaceOspfConfig.Builder
setOspfArea(java.lang.String ospfArea)
Attache Tier0 Interface to specified OSPF Area.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofPolicyInterfaceOspfConfig
.
-
-
Method Detail
-
setBfdPath
public PolicyInterfaceOspfConfig.Builder 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.
-
setDeadInterval
public PolicyInterfaceOspfConfig.Builder 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.
-
setEnableBfd
public PolicyInterfaceOspfConfig.Builder 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.
-
setEnabled
public PolicyInterfaceOspfConfig.Builder 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.
-
setHelloInterval
public PolicyInterfaceOspfConfig.Builder 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.
-
setNetworkType
public PolicyInterfaceOspfConfig.Builder setNetworkType(java.lang.String networkType)
Possible values are: Configure OSPF networkt type, default is BROADCAST network type- Parameters:
networkType
- New value for the property.
-
setOspfArea
public PolicyInterfaceOspfConfig.Builder setOspfArea(java.lang.String ospfArea)
Attache Tier0 Interface to specified OSPF Area. all peers.- Parameters:
ospfArea
- New value for the property.
-
build
public PolicyInterfaceOspfConfig build()
-
-