华为乾坤-批量修改IPv4静态路由:请求示例

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

请求示例

HTTP的示例
PATCH /restconf/v2/data/huawei-ac-nes-device:nes/ne/00000000-0000-0000-0000-000000000000/huawei-nce-e-static-routing-ipv4:static-routing-ipv4 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-static-routing-ipv4:static-routing-ipv4" : {
		"destination-prefix" : "10.1.1.0/24",
		"vpn-instance" : "vpn1",
		"next-hop-type" : "Ip",
		"next-hop-addresses" : [
			{
				"address" : "10.1.1.1",
				"preference" : 10,
				"track-setting" : "nqa",
				"nqa" : "test",
				"bfd-enable" : true
			}
		],
		"next-hop-interfaces" : [
			{
				"interface" : "GE0/0/1",
				"preference" : 10,
				"dhcp-enable" : true,
				"track-setting" : "nqa",
				"nqa" : "test"
			}
		],
		"next-hop-interface-addresses" : [
			{
				"address" : "10.1.1.1",
				"interface" : "GE0/0/1",
				"preference" : 10,
				"track-setting" : "nqa",
				"nqa" : "test",
				"bfd-enable" : true
			}
		]
	}
}
support.huaweicloud.com/qiankuncmn-qiankuncs/toctopics/zh-cn_topic_0000001853525984.html