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

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

请求示例

HTTP的示例
PUT /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" : [
		{
			"config-status" : "configured-database-success",
			"last-committed-time" : "2022-01-01 00:00:00",
			"related-pkg-version" : "1.0.1",
			"edit-state" : "RUNNING",
			"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_0000001899845329.html