华为乾坤-修改指定的节点:请求示例

时间:2025-02-17 11:38:23

请求示例

HTTP的示例
PUT /restconf/v2/data/huawei-ac-nes-device:nes/ne/00000000-0000-0000-0000-000000000000/huawei-nce-e-route-policy:route-policy/policy1/nodes/1 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: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_0000001853525940.html