Package com.vmware.nsx_policy.model
Class SegmentAdvancedConfig.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.SegmentAdvancedConfig.Builder
-
- Enclosing class:
- SegmentAdvancedConfig
public static final class SegmentAdvancedConfig.Builder extends java.lang.Object
Builder class forSegmentAdvancedConfig
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofSegmentAdvancedConfig
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SegmentAdvancedConfig
build()
SegmentAdvancedConfig.Builder
setAddressPoolPaths(java.util.List<java.lang.String> addressPoolPaths)
Policy path to IP address pools.SegmentAdvancedConfig.Builder
setConnectivity(java.lang.String connectivity)
Possible values are:SegmentAdvancedConfig.CONNECTIVITY_ON
SegmentAdvancedConfig.CONNECTIVITY_OFF
Connectivity configuration to manually connect (ON) or disconnect (OFF) Tier-0/Tier1 segment from corresponding gateway.SegmentAdvancedConfig.Builder
setHybrid(java.lang.Boolean hybrid)
When set to true, all the ports created on this segment will behave in a hybrid fashion.SegmentAdvancedConfig.Builder
setInterRouter(java.lang.Boolean interRouter)
When set to true, any port attached to this logical switch will not be visible through VC/ESX UISegmentAdvancedConfig.Builder
setLocalEgress(java.lang.Boolean localEgress)
This property is used to enable proximity routing with local egress.SegmentAdvancedConfig.Builder
setLocalEgressRoutingPolicies(java.util.List<LocalEgressRoutingEntry> localEgressRoutingPolicies)
An ordered list of routing policies to forward traffic to the next hop.SegmentAdvancedConfig.Builder
setMulticast(java.lang.Boolean multicast)
Enable multicast on the downlink LRP created to connect the segment to Tier0/Tier1 gateway.SegmentAdvancedConfig.Builder
setNdraProfilePath(java.lang.String ndraProfilePath)
This profile is applie dto the downlink logical router port created while attaching this semgnet to tier-0 or tier-1.SegmentAdvancedConfig.Builder
setNodeLocalSwitch(java.lang.Boolean nodeLocalSwitch)
A behaviour required for Firewall As A Service (FaaS) where the segment BUM traffic is confined within the edge node that this segment belongs to.SegmentAdvancedConfig.Builder
setOriginId(java.lang.String originId)
ID populated by NSX when NSX on DVPG is used to indicate the source DVPG.SegmentAdvancedConfig.Builder
setOriginType(java.lang.String originType)
Possible values are:SegmentAdvancedConfig.ORIGIN_TYPE_VCENTER
The type of source from where the DVPortgroup is discoveredSegmentAdvancedConfig.Builder
setUplinkTeamingPolicyName(java.lang.String uplinkTeamingPolicyName)
The name of the switching uplink teaming policy for the Segment.SegmentAdvancedConfig.Builder
setUrpfMode(java.lang.String urpfMode)
Possible values are:SegmentAdvancedConfig.URPF_MODE_NONE
SegmentAdvancedConfig.URPF_MODE_STRICT
This URPF mode is applied to the downlink logical router port created while attaching this segment to tier-0 or tier-1.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofSegmentAdvancedConfig
.
-
-
Method Detail
-
setConnectivity
public SegmentAdvancedConfig.Builder setConnectivity(java.lang.String connectivity)
Possible values are: Connectivity configuration to manually connect (ON) or disconnect (OFF) Tier-0/Tier1 segment from corresponding gateway. This property does not apply to VLAN backed segments. VLAN backed segments with connectivity OFF does not affect its layer-2 connectivity.- Parameters:
connectivity
- New value for the property.
-
setAddressPoolPaths
public SegmentAdvancedConfig.Builder setAddressPoolPaths(java.util.List<java.lang.String> addressPoolPaths)
Policy path to IP address pools.- Parameters:
addressPoolPaths
- New value for the property.
-
setHybrid
public SegmentAdvancedConfig.Builder setHybrid(java.lang.Boolean hybrid)
When set to true, all the ports created on this segment will behave in a hybrid fashion. The hybrid port indicates to NSX that the VM intends to operate in underlay mode, but retains the ability to forward egress traffic to the NSX overlay network. This property is only applicable for segment created with transport zone type OVERLAY_STANDARD. This property cannot be modified after segment is created.- Parameters:
hybrid
- New value for the property.
-
setInterRouter
public SegmentAdvancedConfig.Builder setInterRouter(java.lang.Boolean interRouter)
When set to true, any port attached to this logical switch will not be visible through VC/ESX UI- Parameters:
interRouter
- New value for the property.
-
setLocalEgress
public SegmentAdvancedConfig.Builder setLocalEgress(java.lang.Boolean localEgress)
This property is used to enable proximity routing with local egress. When set to true, logical router interface (downlink) connecting Segment to Tier0/Tier1 gateway is configured with prefix-length 32.- Parameters:
localEgress
- New value for the property.
-
setLocalEgressRoutingPolicies
public SegmentAdvancedConfig.Builder setLocalEgressRoutingPolicies(java.util.List<LocalEgressRoutingEntry> localEgressRoutingPolicies)
An ordered list of routing policies to forward traffic to the next hop.- Parameters:
localEgressRoutingPolicies
- New value for the property.
-
setMulticast
public SegmentAdvancedConfig.Builder setMulticast(java.lang.Boolean multicast)
Enable multicast on the downlink LRP created to connect the segment to Tier0/Tier1 gateway.- Parameters:
multicast
- New value for the property.
-
setNdraProfilePath
public SegmentAdvancedConfig.Builder setNdraProfilePath(java.lang.String ndraProfilePath)
This profile is applie dto the downlink logical router port created while attaching this semgnet to tier-0 or tier-1. If this field is empty, NDRA profile of the router is applied to the newly created port.- Parameters:
ndraProfilePath
- New value for the property.
-
setNodeLocalSwitch
public SegmentAdvancedConfig.Builder setNodeLocalSwitch(java.lang.Boolean nodeLocalSwitch)
A behaviour required for Firewall As A Service (FaaS) where the segment BUM traffic is confined within the edge node that this segment belongs to.- Parameters:
nodeLocalSwitch
- New value for the property.
-
setOriginId
public SegmentAdvancedConfig.Builder setOriginId(java.lang.String originId)
ID populated by NSX when NSX on DVPG is used to indicate the source DVPG. Currently, only DVPortgroups are identified as Discovered Segments. The origin_id is the identifier of DVPortgroup from the source vCenter server.- Parameters:
originId
- New value for the property.
-
setOriginType
public SegmentAdvancedConfig.Builder setOriginType(java.lang.String originType)
Possible values are: The type of source from where the DVPortgroup is discovered- Parameters:
originType
- New value for the property.
-
setUplinkTeamingPolicyName
public SegmentAdvancedConfig.Builder setUplinkTeamingPolicyName(java.lang.String uplinkTeamingPolicyName)
The name of the switching uplink teaming policy for the Segment. This name corresponds to one of the switching uplink teaming policy names listed in TransportZone associated with the Segment. See transport_zone_path property above for more details. When this property is not specified, the segment will not have a teaming policy associated with it and the host switch's default teaming policy will be used by MP.- Parameters:
uplinkTeamingPolicyName
- New value for the property.
-
setUrpfMode
public SegmentAdvancedConfig.Builder setUrpfMode(java.lang.String urpfMode)
Possible values are: This URPF mode is applied to the downlink logical router port created while attaching this segment to tier-0 or tier-1.- Parameters:
urpfMode
- New value for the property.
-
build
public SegmentAdvancedConfig build()
-
-