Skip to main content
simonleung
New Member
November 24, 2021
Question

Failed to Delete Virtual Switch

I want to delete virtual switch on FortiWiFi 60F(FortiOS v6.4.6) but found the error message as follows. Could you give me any solutions?

 

FortiWiFi-60F # config sys virtual-switch

FortiWiFi-60F (virtual-switch) # delete test
intf test is used
command_cli_delete:6541 delete table entry test unset oper error ret=-23
Command fail. Return code -23

 

3 replies

alif
Staff
Staff
November 24, 2021

Hello @simonleung,

 

Thank you for contacting Fortinet community.

 

Please remove the interfaces first that are defined under the 'test' interface.

 

config sys virtual-switch

edit test

config port

delete <name>

end

 

Once all interfaces have been removed, please delete the test interface now.

delete test

end

simonleung
New Member
November 25, 2021

I have already removed the interfaces under virtual switch test, but still could not remove test

FortiWiFi-60F # config sys virtual-switch

FortiWiFi-60F (virtual-switch) # edit test

FortiWiFi-60F (test) # config port

FortiWiFi-60F (port) # show

FortiWiFi-60F (port) # end

FortiWiFi-60F (test) # end

FortiWiFi-60F # config sys virtual-switch

FortiWiFi-60F (virtual-switch) # delete test
intf test is used
command_cli_delete:6541 delete table entry test unset oper error ret=-23
Command fail. Return code -23

 

Toshi_Esumi
SuperUser
SuperUser
November 25, 2021

The "test" interface must be used at somewhere. Just do "show | grep -f test" at the top command hierarchy in CLI to find out where it's used.

Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT