Preview Tool

Cisco Bug: CSCvv54753 - Not possible implement "switchport port-security maximum <> vlan" command using Restconf/Netconf

Last Modified

Oct 16, 2020

Products (1)

  • Cisco Catalyst 9300 Series Switches

Known Affected Releases


Description (partial)

At this moment, due to Cisco-IOS-XE-switch.yang model it is not possible to implement "switchport port-security maximum <> vlan" command using Restconf or Netconf.

https:// {host}}:{{port}}/restconf/data/Cisco-IOS-XE-native:native/interface/GigabitEthernet=1%2F0%2F2 

	"Cisco-IOS-XE-native:GigabitEthernet": {
		"switchport": {
			"Cisco-IOS-XE-switch:port-security-cfg": {},
			"Cisco-IOS-XE-switch:port-security-conf": {
				"port-security": {

					"maxcount": {
                        "max-addresses": 78, 
                        "vlan": "" 

  "errors": {
    "error": [
        "error-message": "inconsistent value: Device refused one or more commands", <<<<<<<< 
        "error-path": "/Cisco-IOS-XE-native:native/interface/GigabitEthernet=\"1/0/2\"",
        "error-tag": "invalid-value",
        "error-type": "application"

Implementing "switchport port-security maximum <> vlan" command under interface using Restconf/Netconf.
Bug details contain sensitive information and therefore require a account to be viewed.

Bug Details Include

  • Full Description (including symptoms, conditions and workarounds)
  • Status
  • Severity
  • Known Fixed Releases
  • Related Community Discussions
  • Number of Related Support Cases
Bug information is viewable for customers and partners who have a service contract. Registered users can view up to 200 bugs per month without a service contract.