华为乾坤-修改交换机端口配置:响应示例

时间:2025-05-12 15:31:14

响应示例

返回状态码为200:修改成功,返回配置后的端口配置信息,结构体参见PutResponseDto。

HTTP/1.1 200 OK
Date: Sun,11 May 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
	"errcode" : "0",
	"errmsg" : "",
	"success" : [
		{
			"status" : true,
			"description" : "LSW interface",
			"linkType" : "trunk",
			"defaultVlan" : 1,
			"allowPassVlan" : "1,3-10",
			"untaggedVlan" : "11,12-16",
			"taggedVlan" : "1,3-10",
			"arpSnoopingEnable" : false,
			"dhcpSnooping" : false,
			"dhcpSnoopingTrusted" : false,
			"ndSnooping" : false,
			"ndSnoopingTrusted" : false,
			"portIsolation" : false,
			"stp" : true,
			"stpEdgedport" : "normal",
			"bpduFilter" : "normal",
			"enableRelay" : false,
			"enableMadDetection" : false,
			"domainId" : 16,
			"naMsgCheck" : false,
			"nsMsgCheck" : false,
			"rsMsgCheck" : false,
			"ipsgCheck" : false,
			"daiCheck" : false,
			"collectDynamicMac" : false,
			"restoreIpSubnetVlanDefault" : false,
			"ipSubnetVlanEnable" : false,
			"linkUpDownTrapEnable" : true,
			"mdnsSnoopingEnable" : false,
			"dnsSnoopingEnable" : false,
			"loopbackDetectEnabled" : false,
			"loopbackDetectAction" : "shutdown",
			"loopbackDetectVlans" : "1,3-8",
			"loopbackDetectRecoveryTime" : 16,
			"trust" : "dscp",
			"loadBalance" : "src-dst-ip",
			"lacpPriorityValue" : 32768,
			"portSecurityEnable" : false,
			"portSecurityMaxinum" : 1,
			"stickyEnable" : false,
			"manualUpStream" : true,
			"outboundTrafficPolicy" : "aaa",
			"inboundTrafficPolicy" : "bbb",
			"voiceVlanEnable" : false,
			"voiceVlanId" : 2,
			"voiceVlanMode" : "tag",
			"isolate" : false,
			"arpExpireTime" : 1200,
			"portSecurityAction" : "protect",
			"portSecurityAgingTime" : 1440,
			"portSecurityAgingType" : "absolute",
			"name" : "GigabitEthernet0/0/1",
			"autoNegotiationEnable" : false,
			"speed" : "1Gbps",
			"duplex" : "full",
			"stormControl" : false,
			"stormControlModel" : "packet",
			"stormControlMaxRate" : 3000,
			"stormControlMinRate" : 1,
			"stormControlInterval" : 5,
			"stormControlAction" : "block",
			"stormControlLog" : false,
			"stormControlTrap" : false,
			"poe" : true,
			"timeTemplateId" : "b90f8190-e12f-4323-95f3-4018309209c4",
			"transApPower" : true,
			"poweronLegacyLevel" : "normal",
			"poweronDelayTime" : 5,
			"lldp" : true,
			"appDpiEnable" : false,
			"appTrafficStatisticsEnable" : false,
			"cdp" : false,
			"congestionMgrEnable" : true,
			"pnpStartSwitchEnable" : false,
			"opticalPortLldpEnable" : false,
			"electricalPortName" : "MultiGE0/0/6",
			"congestionMgrList" : [
				{
					"id" : 0,
					"scheduleMode" : "PQ",
					"weight" : 100
				}
			],
			"trafficShapingEnable" : true,
			"queueShapingList" : [
				{
					"id" : 0,
					"cir" : 100,
					"pir" : 100,
					"cbs" : 4000,
					"pbs" : 8000
				}
			],
			"interfaceShapingList" : [
				{
					"direction" : "inbound",
					"cir" : 100,
					"cbs" : 4000
				}
			],
			"portEnableDelayTime" : 1800
		}
	],
	"fail" : [
		{
			"errcode" : "0",
			"errmsg" : "",
			"data" : {
				"status" : true,
				"description" : "LSW interface",
				"linkType" : "trunk",
				"defaultVlan" : 1,
				"allowPassVlan" : "1,3-10",
				"untaggedVlan" : "11,12-16",
				"taggedVlan" : "1,3-10",
				"arpSnoopingEnable" : false,
				"dhcpSnooping" : false,
				"dhcpSnoopingTrusted" : false,
				"ndSnooping" : false,
				"ndSnoopingTrusted" : false,
				"portIsolation" : false,
				"stp" : true,
				"stpEdgedport" : "normal",
				"bpduFilter" : "normal",
				"enableRelay" : false,
				"enableMadDetection" : false,
				"domainId" : 16,
				"naMsgCheck" : false,
				"nsMsgCheck" : false,
				"rsMsgCheck" : false,
				"ipsgCheck" : false,
				"daiCheck" : false,
				"collectDynamicMac" : false,
				"restoreIpSubnetVlanDefault" : false,
				"ipSubnetVlanEnable" : false,
				"linkUpDownTrapEnable" : true,
				"mdnsSnoopingEnable" : false,
				"dnsSnoopingEnable" : false,
				"loopbackDetectEnabled" : false,
				"loopbackDetectAction" : "shutdown",
				"loopbackDetectVlans" : "1,3-8",
				"loopbackDetectRecoveryTime" : 16,
				"trust" : "dscp",
				"loadBalance" : "src-dst-ip",
				"lacpPriorityValue" : 32768,
				"portSecurityEnable" : false,
				"portSecurityMaxinum" : 1,
				"stickyEnable" : false,
				"manualUpStream" : true,
				"outboundTrafficPolicy" : "aaa",
				"inboundTrafficPolicy" : "bbb",
				"voiceVlanEnable" : false,
				"voiceVlanId" : 2,
				"voiceVlanMode" : "tag",
				"isolate" : false,
				"arpExpireTime" : 1200,
				"portSecurityAction" : "protect",
				"portSecurityAgingTime" : 1440,
				"portSecurityAgingType" : "absolute",
				"name" : "GigabitEthernet0/0/1",
				"autoNegotiationEnable" : false,
				"speed" : "1Gbps",
				"duplex" : "full",
				"stormControl" : false,
				"stormControlModel" : "packet",
				"stormControlMaxRate" : 3000,
				"stormControlMinRate" : 1,
				"stormControlInterval" : 5,
				"stormControlAction" : "block",
				"stormControlLog" : false,
				"stormControlTrap" : false,
				"poe" : true,
				"timeTemplateId" : "b90f8190-e12f-4323-95f3-4018309209c4",
				"transApPower" : true,
				"poweronLegacyLevel" : "normal",
				"poweronDelayTime" : 5,
				"lldp" : true,
				"appDpiEnable" : false,
				"appTrafficStatisticsEnable" : false,
				"cdp" : false,
				"congestionMgrEnable" : true,
				"pnpStartSwitchEnable" : false,
				"opticalPortLldpEnable" : false,
				"electricalPortName" : "MultiGE0/0/6",
				"congestionMgrList" : [
					{
						"id" : 0,
						"scheduleMode" : "PQ",
						"weight" : 100
					}
				],
				"trafficShapingEnable" : true,
				"queueShapingList" : [
					{
						"id" : 0,
						"cir" : 100,
						"pir" : 100,
						"cbs" : 4000,
						"pbs" : 8000
					}
				],
				"interfaceShapingList" : [
					{
						"direction" : "inbound",
						"cir" : 100,
						"cbs" : 4000
					}
				],
				"portEnableDelayTime" : 1800
			}
		}
	]
}
support.huaweicloud.com/qiankuncmn-qiankuncs/toctopics/zh-cn_topic_0000001852160484.html