ALIYUN::VPC::BgpPeer类型用于向指定的BGP组中添加BGP邻居。
语法
{
"Type": "ALIYUN::VPC::BgpPeer",
"Properties": {
"PeerIpAddress": String,
"EnableBfd": Boolean,
"BgpGroupId": String,
"BfdMultiHop": Integer,
"IpVersion": String
}
}属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
PeerIpAddress | String | 否 | 是 | BGP邻居的IP地址。 | 无 |
EnableBfd | Boolean | 否 | 是 | 是否开启BFD功能。 | 取值:
|
BgpGroupId | String | 是 | 否 | BGP组的ID。 | 无 |
BfdMultiHop | Integer | 否 | 否 | BFD 跳数。 | 取值范围:1~255。 选择开启 BFD 功能时,需要配置此参数。 输入 BFD 跳数,即数据从源端到目标端传输时经过的最大设备数量。您可以根据真实的物理链路因素配置不同的跳数。 说明 当您在多云环境或光纤直连组网中使用 BFD,中间无任何桥接设备时,则需要将 BFD 的默认跳数从 255 改成 1。 |
IpVersion | String | 否 | 否 | IP 版本。 | 取值:
|
返回值
Fn::GetAtt
BgpPeerId:BGP邻居的ID。
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
BgpGroupId:
Type: String
Description: The ID of the BGP group.
Resources:
BgpPeer:
Type: ALIYUN::VPC::BgpPeer
Properties:
PeerIpAddress: 192.168.1.1
EnableBfd: false
BgpGroupId:
Ref: BgpGroupId
Outputs:
BgpPeerId:
Description: The ID of the BGP peer.
Value:
Fn::GetAtt:
- BgpPeer
- BgpPeerId{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"BgpGroupId": {
"Type": "String",
"Description": "The ID of the BGP group."
}
},
"Resources": {
"BgpPeer": {
"Type": "ALIYUN::VPC::BgpPeer",
"Properties": {
"PeerIpAddress": "192.168.1.1",
"EnableBfd": false,
"BgpGroupId": {
"Ref": "BgpGroupId"
}
}
}
},
"Outputs": {
"BgpPeerId": {
"Description": "The ID of the BGP peer.",
"Value": {
"Fn::GetAtt": [
"BgpPeer",
"BgpPeerId"
]
}
}
}
}该文章对您有帮助吗?