Package com.vmware.nsx_policy.model
Class BgpNeighborLocalAsConfig.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.BgpNeighborLocalAsConfig.Builder
-
- Enclosing class:
- BgpNeighborLocalAsConfig
public static final class BgpNeighborLocalAsConfig.Builder extends java.lang.ObjectBuilder class forBgpNeighborLocalAsConfig.
-
-
Constructor Summary
Constructors Constructor Description Builder()Constructor with parameters for the required properties ofBgpNeighborLocalAsConfig.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BgpNeighborLocalAsConfigbuild()BgpNeighborLocalAsConfig.BuildersetAsPathModifierType(java.lang.String asPathModifierType)Possible values are:BgpNeighborLocalAsConfig.AS_PATH_MODIFIER_TYPE_PREPENDBgpNeighborLocalAsConfig.AS_PATH_MODIFIER_TYPE_PREPEND_REPLACE_ASOptional parameter.BgpNeighborLocalAsConfig.BuildersetLocalAsNum(java.lang.String localAsNum)
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofBgpNeighborLocalAsConfig.
-
-
Method Detail
-
setAsPathModifierType
public BgpNeighborLocalAsConfig.Builder setAsPathModifierType(java.lang.String asPathModifierType)
Possible values are: Optional parameter. If this property is not set, by default BGP prepends neighbor's local_as_num value to the AS_PATH for BOTH outgoing and incoming route advertisements from the peer neighbor. By setting one of the following value, user can modify the default prepend action on the AS_PATH in both inbound and outbound direction. NO_PREPEND: If type is NO_PREPEND, then the local router will NOT prepend the incoming advertisement from that peer with neighbor's local_as_num, so the AS path advertised will now prepend only the BGP local-as of the router. NO_PREPEND_REPLACE_AS - If type is \"NO_PREPEND_REPLACE_AS\", then the local routes will be advertised with the neighbor's local-as instead of the BGP's local-as to peer router.- Parameters:
asPathModifierType- New value for the property.
-
setLocalAsNum
public BgpNeighborLocalAsConfig.Builder setLocalAsNum(java.lang.String localAsNum)
- Parameters:
localAsNum- New value for the property.
-
build
public BgpNeighborLocalAsConfig build()
-
-