X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fdevices%2Fvirtio%2Fcli.c;h=86639e486c9649a720b1672705d1e51ebc33900a;hb=3940de36728b768574a3e998389bb90d55f690d1;hp=10b545edb5ec40a00300f419a2e8289b95d65147;hpb=b725ebb3f47302c416e41c7be3f5a8bb3c9fe547;p=vpp.git diff --git a/src/vnet/devices/virtio/cli.c b/src/vnet/devices/virtio/cli.c index 10b545edb5e..86639e486c9 100644 --- a/src/vnet/devices/virtio/cli.c +++ b/src/vnet/devices/virtio/cli.c @@ -96,7 +96,7 @@ virtio_pci_delete_command_fn (vlib_main_t * vm, unformat_input_t * input, return clib_error_return (0, "please specify interface name or sw_if_index"); - hw = vnet_get_sup_hw_interface (vnm, sw_if_index); + hw = vnet_get_sup_hw_interface_api_visible_or_null (vnm, sw_if_index); if (hw == NULL || virtio_device_class.index != hw->dev_class_index) return clib_error_return (0, "not a virtio interface");