ALIYUN::VPC::BgpNetwork類型用於宣告BGP網路。
文法
{
"Type": "ALIYUN::VPC::BgpNetwork",
"Properties": {
"VpcId": String,
"DstCidrBlock": String,
"RouterId": String
}
}屬性
屬性名稱 | 類型 | 必須 | 允許更新 | 描述 | 約束 |
DstCidrBlock | String | 是 | 否 | 需要和本機資料中心(IDC)互連的VPC或交換器的網段。 | 無 |
RouterId | String | 是 | 否 | 路由器介面關聯的路由器ID。 | 無 |
VpcId | String | 否 | 否 | 專用網路ID。 | 無 |
傳回值
Fn::GetAtt
DstCidrBlock:需要和本地IDC互連的VPC或交換器的網段。
RouterId:路由器介面關聯的路由器ID。
樣本
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
DstCidrBlock:
Description: 'The CIDR block of the virtual private cloud (VPC) or vSwitch that
you want to connect
to a data center.'
Type: String
RouterId:
Description: The ID of the vRouter associated with the router interface.
Type: String
Resources:
BgpNetwork:
Properties:
DstCidrBlock:
Ref: DstCidrBlock
RouterId:
Ref: RouterId
Type: ALIYUN::VPC::BgpNetwork
Outputs:
DstCidrBlock:
Description: 'The CIDR block of the virtual private cloud (VPC) or vSwitch that
you want to connect
to a data center.'
Value:
Fn::GetAtt:
- BgpNetwork
- DstCidrBlock
RouterId:
Description: The ID of the vRouter associated with the router interface.
Value:
Fn::GetAtt:
- BgpNetwork
- RouterId{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"DstCidrBlock": {
"Type": "String",
"Description": "The CIDR block of the virtual private cloud (VPC) or vSwitch that you want to connect\nto a data center."
},
"RouterId": {
"Type": "String",
"Description": "The ID of the vRouter associated with the router interface."
}
},
"Resources": {
"BgpNetwork": {
"Type": "ALIYUN::VPC::BgpNetwork",
"Properties": {
"DstCidrBlock": {
"Ref": "DstCidrBlock"
},
"RouterId": {
"Ref": "RouterId"
}
}
}
},
"Outputs": {
"DstCidrBlock": {
"Description": "The CIDR block of the virtual private cloud (VPC) or vSwitch that you want to connect\nto a data center.",
"Value": {
"Fn::GetAtt": [
"BgpNetwork",
"DstCidrBlock"
]
}
},
"RouterId": {
"Description": "The ID of the vRouter associated with the router interface.",
"Value": {
"Fn::GetAtt": [
"BgpNetwork",
"RouterId"
]
}
}
}
}