ALIYUN::VPC::BgpPeer

更新时间:
复制为 MD 格式

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功能。

取值:

  • true:开启。

  • false:不开启。

BgpGroupId

String

BGP组的ID。

BfdMultiHop

Integer

BFD 跳数。

取值范围:1~255

选择开启 BFD 功能时,需要配置此参数。 输入 BFD 跳数,即数据从源端到目标端传输时经过的最大设备数量。您可以根据真实的物理链路因素配置不同的跳数。

说明

当您在多云环境或光纤直连组网中使用 BFD,中间无任何桥接设备时,则需要将 BFD 的默认跳数从 255 改成 1

IpVersion

String

IP 版本。

取值:

  • IPv4(默认值):IPv4 版本。

  • IPv6:IPv6 版本,只有当创建 BGP 组的 VBR 开通 IPv6 功能时,支持 IPv6 版本。

返回值

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"
        ]
      }
    }
  }
}