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

Failed to Delete Virtual Switch

  • November 24, 2021
  • 1 reply
  • 7517 views

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

 

    1 reply

    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.