华为乾坤-创建LANWAN互联OSPF邻居信息:请求示例

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

请求示例

HTTP的示例
POST /controller/campus/v1/lanwan/interconnection/route/ospf 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",
	"neighborInfo" : {
		"areaId" : 10,
		"areaType" : "normal",
		"helloTimer" : 1,
		"timerPoll" : 1,
		"timerDead" : 1,
		"timerRetransmit" : 1,
		"authenticationInfo" : {
			"authMode" : "cryptographic",
			"algorithm" : "hmac-sha256",
			"key" : 1,
			"pwd" : "abc"
		},
		"coreInterfaceInfo" : {
			"interfaceName" : "vlanif20",
			"subnetId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e",
			"cost" : 1,
			"drPriority" : 1,
			"mtuEnable" : false,
			"networkType" : "broadcast"
		},
		"gatewayInterfaceInfo" : {
			"interfaceName" : "vlanif20",
			"subnetId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e",
			"cost" : 1,
			"drPriority" : 1,
			"mtuEnable" : false,
			"networkType" : "broadcast"
		}
	},
	"coreProcessId" : 10,
	"gatewayProcessId" : 10,
	"gatewayRouterId" : "192.168.1.1",
	"coreOspfIntfs" : [
		{
			"processId" : 10,
			"routerId" : "192.168.1.1",
			"configSource" : "LANWAN",
			"OspfIntfInfo" : {
				"interfaceName" : "vlanif20",
				"subnetId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e",
				"cost" : 1,
				"drPriority" : 1,
				"mtuEnable" : false,
				"networkType" : "broadcast",
				"authMode" : "cryptographic",
				"algorithm" : "hmac-sha256",
				"key" : 1,
				"pwd" : "abc",
				"linkId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e",
				"linkName" : "ConnectLink",
				"areaId" : 10,
				"helloTimer" : 1,
				"areaType" : "normal",
				"timerPoll" : 1,
				"timerRetransmit" : 1,
				"timerDead" : 1
			}
		}
	],
	"gatewayOspfIntfs" : [
		{
			"processId" : 10,
			"routerId" : "192.168.1.1",
			"configSource" : "LANWAN",
			"OspfIntfInfo" : {
				"interfaceName" : "vlanif20",
				"subnetId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e",
				"cost" : 1,
				"drPriority" : 1,
				"mtuEnable" : false,
				"networkType" : "broadcast",
				"authMode" : "cryptographic",
				"algorithm" : "hmac-sha256",
				"key" : 1,
				"pwd" : "abc",
				"linkId" : "fbb684c8-0d37-496f-bafa-4b06d5151e2e",
				"linkName" : "ConnectLink",
				"areaId" : 10,
				"helloTimer" : 1,
				"areaType" : "normal",
				"timerPoll" : 1,
				"timerRetransmit" : 1,
				"timerDead" : 1
			}
		}
	]
}
support.huaweicloud.com/qiankuncmn-qiankuncs/toctopics/zh-cn_topic_0000002024753821.html