BgpGroupProps
Properties for defining a BgpGroup.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-vpc-bgpgroup
Initializer
import com.aliyun.ros.cdk.vpc.BgpGroupProps;
BgpGroupProps.builder()
.peerAsn(java.lang.Number)
.peerAsn(IResolvable)
.routerId(java.lang.String)
.routerId(IResolvable)
// .authKey(java.lang.String)
// .authKey(IResolvable)
// .description(java.lang.String)
// .description(IResolvable)
// .ipVersion(java.lang.String)
// .ipVersion(IResolvable)
// .isFakeAsn(java.lang.Boolean)
// .isFakeAsn(IResolvable)
// .localAsn(java.lang.Number)
// .localAsn(IResolvable)
// .name(java.lang.String)
// .name(IResolvable)
// .routeQuota(java.lang.Number)
// .routeQuota(IResolvable)
.build();
Properties
| Name | Type | Description |
|---|---|---|
peerAsn | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property peerAsn: The AS number of the BGP peer. |
routerId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property routerId: The ID of the VBR. |
authKey | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property authKey: The authentication key of the BGP group. |
description | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property description: The description of the BGP group. |
ipVersion | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property ipVersion: The IP version. |
isFakeAsn | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property isFakeAsn: Specifies whether to use a fake ASN. |
localAsn | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property localAsn: The custom ASN on the cloud side. |
name | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property name: The name of the BGP group. |
routeQuota | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property routeQuota: The upper limit of the BGP neighbor's route entries. |
peerAsnRequired
public java.lang.Object getPeerAsn();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property peerAsn: The AS number of the BGP peer.
routerIdRequired
public java.lang.Object getRouterId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property routerId: The ID of the VBR.
authKeyOptional
public java.lang.Object getAuthKey();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property authKey: The authentication key of the BGP group.
descriptionOptional
public java.lang.Object getDescription();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property description: The description of the BGP group.
The description must be 2 to 256 characters in length. It must start with a letter but cannot start with http:// or https://.
ipVersionOptional
public java.lang.Object getIpVersion();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property ipVersion: The IP version.
Valid values:
- IPv4: This is the default value.
- IPv6: IPv6 is supported only if the VBR for which you want to create the BGP group has IPv6 enabled.
isFakeAsnOptional
public java.lang.Object getIsFakeAsn();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property isFakeAsn: Specifies whether to use a fake ASN.
Valid values:
- false (default)
- true
A router that runs BGP typically belongs to only one AS. If you need to replace an existing AS with a new AS and you cannot immediately modify BGP configurations, you can use fake ASNs to ensure service continuity.
localAsnOptional
public java.lang.Object getLocalAsn();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property localAsn: The custom ASN on the cloud side.
Valid values:
- 45104
- 64512~65534
- 4200000000~4294967294
65025 is reserved by the cloud platform. By default, the system uses 45104 as LocalAsn. If you use custom LocalAsn in multi-line access scenarios, loops in BGP may occur.
nameOptional
public java.lang.Object getName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property name: The name of the BGP group.
The name must be 2 to 128 characters in length and can contain digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter but cannot start with http:// or https://.
routeQuotaOptional
public java.lang.Object getRouteQuota();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property routeQuota: The upper limit of the BGP neighbor's route entries.
Unit: entries, default value: 110.