华为乾坤-修改指定的路由策略:请求示例

时间:2025-05-12 15:32:42

请求示例

HTTP的示例
PUT /restconf/v2/data/huawei-ac-nes-device:nes/ne/00000000-0000-0000-0000-000000000000/huawei-nce-e-route-policy:route-policy/policy1 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
restconf-transaction-id: "00000000-0000-0000-0000-000000000000"
{
	"huawei-nce-e-route-policy:route-policy" : [
		{
			"config-status" : "configured-database-success",
			"last-committed-time" : "2022-01-01 00:00:00",
			"related-pkg-version" : "1.0.1",
			"edit-state" : "RUNNING",
			"name" : "policy1",
			"nodes" : [
				{
					"sequence" : 1,
					"match-mode" : "permit",
					"condition" : {
						"match-tag" : 1,
						"match-ipv4-type" : "ipv4-prefix",
						"match-ipv4-prefix" : "prefix1",
						"match-ipv6-type" : "ipv6-prefix",
						"match-ipv6-prefix" : "prefix1",
						"community-filter" : [
							{
								"community-filter-name" : "communityFilterName1"
							}
						],
						"ext-community-filter" : [
							{
								"ext-community-filter-name" : "extCommunityFilterName1"
							}
						]
					},
					"action" : {
						"apply-tag" : 10,
						"apply-cost" : 10,
						"apply-local-preference" : 10,
						"apply-ext-community-color" : "100",
						"apply-community" : {
							"operation" : "replace",
							"set-community-type" : "inline",
							"communities" : [
								 "1:1"
							]
						},
						"apply-ext-community" : {
							"operation" : "replace",
							"ext-community-member" : [
								{
									"value" : "1:1"
								}
							]
						}
					}
				}
			]
		}
	]
}
support.huaweicloud.com/qiankuncmn-qiankuncs/toctopics/zh-cn_topic_0000001853525952.html