华为乾坤-创建LANWAN互联BGP对等体信息:请求示例

时间:2025-02-17 11:36:47

请求示例

HTTP的示例
POST /controller/campus/v1/lanwan/interconnection/route/bgp HTTP/1.1
Host: 192.168.1.125:18002
Content-Type: application/json
Accept: application/json
Accept-Language: en-US
X-AC CES S-TOKEN: x-yyyyyy
{
	"linkId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e",
	"peerInfo" : {
		"coreAs" : 65002,
		"corePeerIp" : "192.168.10.1",
		"gatewayAs" : 100,
		"gatewayPeerIp" : "192.168.10.1",
		"keepaliveTime" : 60,
		"holdTime" : 180,
		"authMode" : "KEYCHAIN",
		"md5Pwd" : "Abc123",
		"keyChainName" : "keyChainName",
		"bfdEnable" : false,
		"bfdInformation" : {
			"minTxInterval" : 1000,
			"minRxInterval" : 1000,
			"detectMultiplier" : 3
		}
	},
	"coreBgpAdvancedInfo" : {
		"deviceId" : "b473136d-17ff-4f4f-9fa9-a4c0e1e87e42",
		"familyGlobalInfo" : {
			"externalPreferences" : 30,
			"defaultRouteRedistribution" : false,
			"routeRedistribute" : ["Static","Direct"],
			"aggregationRoute" : ["192.168.10.0/24"],
			"compareDifAsMed" : false,
			"maxLoadBalanceNum" : 1
		},
		"exportRoutePolicy" : [
			{
				"nodeMatchmode" : "PERMIT",
				"matchCondition" : {
					"ipPrefixList" : [
						{
							"ipAddress" : "192.168.10.0",
							"maskLength" : 24,
							"maskUpperLimit" : 24,
							"maskLowerLimit" : 24
						}
					],
					"communityFilters" : [
						{
							"name" : "teamName",
							"communityNodes" : [
								{
									"matchMode" : "permit",
									"communityMembers" : ["1","2"]
								}
							],
							"wholeMatch" : true
						}
					]
				},
				"applyAction" : {
					"applyCommunity" : {
						"communityNumbers" : [
							 100
						],
						"communityNumberList" : [
							 "100"
						]
					},
					"applyAsPath" : {
						"asNumbers" : [
							 100
						]
					},
					"applyMetric" : {
						"cost" : 60
					},
					"preferredValue" : 100,
					"localPreference" : 100,
					"nodeIndex" : 20060
				}
			}
		],
		"importRoutePolicy" : [
			{
				"nodeMatchmode" : "PERMIT",
				"matchCondition" : {
					"ipPrefixList" : [
						{
							"ipAddress" : "192.168.10.0",
							"maskLength" : 24,
							"maskUpperLimit" : 24,
							"maskLowerLimit" : 24
						}
					],
					"communityFilters" : [
						{
							"name" : "teamName",
							"communityNodes" : [
								{
									"matchMode" : "permit",
									"communityMembers" : ["1","2"]
								}
							],
							"wholeMatch" : true
						}
					]
				},
				"applyAction" : {
					"applyCommunity" : {
						"communityNumbers" : [
							 100
						],
						"communityNumberList" : [
							 "100"
						]
					},
					"applyAsPath" : {
						"asNumbers" : [
							 100
						]
					},
					"applyMetric" : {
						"cost" : 60
					},
					"preferredValue" : 100,
					"localPreference" : 100,
					"nodeIndex" : 20060
				}
			}
		],
		"allowAsLoop" : 1,
		"ebgpMaxHop" : 1,
		"peerIgnore" : false,
		"advertiseCommunity" : false
	},
	"gatewayBgpAdvancedInfo" : {
		"deviceId" : "b473136d-17ff-4f4f-9fa9-a4c0e1e87e42",
		"familyGlobalInfo" : {
			"externalPreferences" : 30,
			"defaultRouteRedistribution" : false,
			"routeRedistribute" : ["Static","Direct"],
			"aggregationRoute" : ["192.168.10.0/24"],
			"compareDifAsMed" : false,
			"maxLoadBalanceNum" : 1
		},
		"exportRoutePolicy" : [
			{
				"nodeMatchmode" : "PERMIT",
				"matchCondition" : {
					"ipPrefixList" : [
						{
							"ipAddress" : "192.168.10.0",
							"maskLength" : 24,
							"maskUpperLimit" : 24,
							"maskLowerLimit" : 24
						}
					],
					"communityFilters" : [
						{
							"name" : "teamName",
							"communityNodes" : [
								{
									"matchMode" : "permit",
									"communityMembers" : ["1","2"]
								}
							],
							"wholeMatch" : true
						}
					]
				},
				"applyAction" : {
					"applyCommunity" : {
						"communityNumbers" : [
							 100
						],
						"communityNumberList" : [
							 "100"
						]
					},
					"applyAsPath" : {
						"asNumbers" : [
							 100
						]
					},
					"applyMetric" : {
						"cost" : 60
					},
					"preferredValue" : 100,
					"localPreference" : 100,
					"nodeIndex" : 20060
				}
			}
		],
		"importRoutePolicy" : [
			{
				"nodeMatchmode" : "PERMIT",
				"matchCondition" : {
					"ipPrefixList" : [
						{
							"ipAddress" : "192.168.10.0",
							"maskLength" : 24,
							"maskUpperLimit" : 24,
							"maskLowerLimit" : 24
						}
					],
					"communityFilters" : [
						{
							"name" : "teamName",
							"communityNodes" : [
								{
									"matchMode" : "permit",
									"communityMembers" : ["1","2"]
								}
							],
							"wholeMatch" : true
						}
					]
				},
				"applyAction" : {
					"applyCommunity" : {
						"communityNumbers" : [
							 100
						],
						"communityNumberList" : [
							 "100"
						]
					},
					"applyAsPath" : {
						"asNumbers" : [
							 100
						]
					},
					"applyMetric" : {
						"cost" : 60
					},
					"preferredValue" : 100,
					"localPreference" : 100,
					"nodeIndex" : 20060
				}
			}
		],
		"allowAsLoop" : 1,
		"ebgpMaxHop" : 1,
		"peerIgnore" : false,
		"advertiseCommunity" : false
	},
	"coreBgpPeers" : [
		{
			"coreAs" : 65002,
			"corePeerIp" : "192.168.10.1",
			"gatewayAs" : 100,
			"gatewayPeerIp" : "192.168.10.1",
			"keepaliveTime" : 60,
			"holdTime" : 180,
			"authMode" : "KEYCHAIN",
			"md5Pwd" : "Abc123",
			"keyChainName" : "keyChainName",
			"bfdEnable" : false,
			"bfdInformation" : {
				"minTxInterval" : 1000,
				"minRxInterval" : 1000,
				"detectMultiplier" : 3
			},
			"deviceId" : "b473136d-17ff-4f4f-9fa9-a4c0e1e87e42",
			"familyGlobalInfo" : {
				"externalPreferences" : 30,
				"defaultRouteRedistribution" : false,
				"routeRedistribute" : ["Static","Direct"],
				"aggregationRoute" : ["192.168.10.0/24"],
				"compareDifAsMed" : false,
				"maxLoadBalanceNum" : 1
			},
			"exportRoutePolicy" : [
				{
					"nodeMatchmode" : "PERMIT",
					"matchCondition" : {
						"ipPrefixList" : [
							{
								"ipAddress" : "192.168.10.0",
								"maskLength" : 24,
								"maskUpperLimit" : 24,
								"maskLowerLimit" : 24
							}
						],
						"communityFilters" : [
							{
								"name" : "teamName",
								"communityNodes" : [
									{
										"matchMode" : "permit",
										"communityMembers" : ["1","2"]
									}
								],
								"wholeMatch" : true
							}
						]
					},
					"applyAction" : {
						"applyCommunity" : {
							"communityNumbers" : [
								 100
							],
							"communityNumberList" : [
								 "100"
							]
						},
						"applyAsPath" : {
							"asNumbers" : [
								 100
							]
						},
						"applyMetric" : {
							"cost" : 60
						},
						"preferredValue" : 100,
						"localPreference" : 100,
						"nodeIndex" : 20060
					}
				}
			],
			"importRoutePolicy" : [
				{
					"nodeMatchmode" : "PERMIT",
					"matchCondition" : {
						"ipPrefixList" : [
							{
								"ipAddress" : "192.168.10.0",
								"maskLength" : 24,
								"maskUpperLimit" : 24,
								"maskLowerLimit" : 24
							}
						],
						"communityFilters" : [
							{
								"name" : "teamName",
								"communityNodes" : [
									{
										"matchMode" : "permit",
										"communityMembers" : ["1","2"]
									}
								],
								"wholeMatch" : true
							}
						]
					},
					"applyAction" : {
						"applyCommunity" : {
							"communityNumbers" : [
								 100
							],
							"communityNumberList" : [
								 "100"
							]
						},
						"applyAsPath" : {
							"asNumbers" : [
								 100
							]
						},
						"applyMetric" : {
							"cost" : 60
						},
						"preferredValue" : 100,
						"localPreference" : 100,
						"nodeIndex" : 20060
					}
				}
			],
			"allowAsLoop" : 1,
			"ebgpMaxHop" : 1,
			"peerIgnore" : false,
			"advertiseCommunity" : false
		}
	],
	"gatewayBgpPeers" : [
		{
			"coreAs" : 65002,
			"corePeerIp" : "192.168.10.1",
			"gatewayAs" : 100,
			"gatewayPeerIp" : "192.168.10.1",
			"keepaliveTime" : 60,
			"holdTime" : 180,
			"authMode" : "KEYCHAIN",
			"md5Pwd" : "Abc123",
			"keyChainName" : "keyChainName",
			"bfdEnable" : false,
			"bfdInformation" : {
				"minTxInterval" : 1000,
				"minRxInterval" : 1000,
				"detectMultiplier" : 3
			},
			"deviceId" : "b473136d-17ff-4f4f-9fa9-a4c0e1e87e42",
			"familyGlobalInfo" : {
				"externalPreferences" : 30,
				"defaultRouteRedistribution" : false,
				"routeRedistribute" : ["Static","Direct"],
				"aggregationRoute" : ["192.168.10.0/24"],
				"compareDifAsMed" : false,
				"maxLoadBalanceNum" : 1
			},
			"exportRoutePolicy" : [
				{
					"nodeMatchmode" : "PERMIT",
					"matchCondition" : {
						"ipPrefixList" : [
							{
								"ipAddress" : "192.168.10.0",
								"maskLength" : 24,
								"maskUpperLimit" : 24,
								"maskLowerLimit" : 24
							}
						],
						"communityFilters" : [
							{
								"name" : "teamName",
								"communityNodes" : [
									{
										"matchMode" : "permit",
										"communityMembers" : ["1","2"]
									}
								],
								"wholeMatch" : true
							}
						]
					},
					"applyAction" : {
						"applyCommunity" : {
							"communityNumbers" : [
								 100
							],
							"communityNumberList" : [
								 "100"
							]
						},
						"applyAsPath" : {
							"asNumbers" : [
								 100
							]
						},
						"applyMetric" : {
							"cost" : 60
						},
						"preferredValue" : 100,
						"localPreference" : 100,
						"nodeIndex" : 20060
					}
				}
			],
			"importRoutePolicy" : [
				{
					"nodeMatchmode" : "PERMIT",
					"matchCondition" : {
						"ipPrefixList" : [
							{
								"ipAddress" : "192.168.10.0",
								"maskLength" : 24,
								"maskUpperLimit" : 24,
								"maskLowerLimit" : 24
							}
						],
						"communityFilters" : [
							{
								"name" : "teamName",
								"communityNodes" : [
									{
										"matchMode" : "permit",
										"communityMembers" : ["1","2"]
									}
								],
								"wholeMatch" : true
							}
						]
					},
					"applyAction" : {
						"applyCommunity" : {
							"communityNumbers" : [
								 100
							],
							"communityNumberList" : [
								 "100"
							]
						},
						"applyAsPath" : {
							"asNumbers" : [
								 100
							]
						},
						"applyMetric" : {
							"cost" : 60
						},
						"preferredValue" : 100,
						"localPreference" : 100,
						"nodeIndex" : 20060
					}
				}
			],
			"allowAsLoop" : 1,
			"ebgpMaxHop" : 1,
			"peerIgnore" : false,
			"advertiseCommunity" : false
		}
	]
}
support.huaweicloud.com/qiankuncmn-qiankuncs/toctopics/zh-cn_topic_0000001988433830.html