.. _clicmd_src_vnet_dev: =============================================================== Dev cli reference =============================================================== device attach ------------------------------------------------------------------------- .. code-block:: console device attach <device-id> [driver <name>] [args <dev-args>] Declaration: ``device_attach_cmd`` `src/vnet/dev/cli.c line 48 <https://github.com/FDio/vpp/blob/master//src/vnet/dev/cli.c#L48>`_ Implementation: ``device_attach_cmd_fn`` device create-interface ------------------------------------------------------------------------- .. code-block:: console device create-interface <device-id> [port <port-id>] [args <iface-args>] Declaration: ``device_create_if_cmd`` `src/vnet/dev/cli.c line 178 <https://github.com/FDio/vpp/blob/master//src/vnet/dev/cli.c#L178>`_ Implementation: ``device_create_if_cmd_fn`` device create-secondary-interface ------------------------------------------------------------------------- .. code-block:: console device create-secondary-interface [<interface-name> | sw-if-index <n>] id <n> [args <sec-if-args>] Declaration: ``device_create_sec_if_cmd`` `src/vnet/dev/cli.c line 264 <https://github.com/FDio/vpp/blob/master//src/vnet/dev/cli.c#L264>`_ Implementation: ``device_create_sec_if_cmd_fn`` device detach ------------------------------------------------------------------------- .. code-block:: console device detach <device-id> Declaration: ``device_detach_cmd`` `src/vnet/dev/cli.c line 84 <https://github.com/FDio/vpp/blob/master//src/vnet/dev/cli.c#L84>`_ Implementation: ``device_detach_cmd_fn`` device remove-interface ------------------------------------------------------------------------- .. code-block:: console device remove-interface [<interface-name> | sw-if-index <n>] Declaration: ``device_remove_if_cmd`` `src/vnet/dev/cli.c line 218 <https://github.com/FDio/vpp/blob/master//src/vnet/dev/cli.c#L218>`_ Implementation: ``device_remove_if_cmd_fn`` device remove-secondary-interface ------------------------------------------------------------------------- .. code-block:: console device remove-secondary-interface [<interface-name> | sw-if-index <n>] Declaration: ``device_remove_sec_if_cmd`` `src/vnet/dev/cli.c line 305 <https://github.com/FDio/vpp/blob/master//src/vnet/dev/cli.c#L305>`_ Implementation: ``device_remove_sec_if_cmd_fn`` device reset ------------------------------------------------------------------------- .. code-block:: console device reset <device-id> Declaration: ``device_reset_cmd`` `src/vnet/dev/cli.c line 111 <https://github.com/FDio/vpp/blob/master//src/vnet/dev/cli.c#L111>`_ Implementation: ``device_reset_cmd_fn`` show device ------------------------------------------------------------------------- .. code-block:: console show device [counters] Declaration: ``show_devices_cmd`` `src/vnet/dev/cli.c line 363 <https://github.com/FDio/vpp/blob/master//src/vnet/dev/cli.c#L363>`_ Implementation: ``show_devices_cmd_fn`` show device counters ------------------------------------------------------------------------- .. code-block:: console show device counters [all] Declaration: ``show_device_counters_cmd`` `src/vnet/dev/cli.c line 415 <https://github.com/FDio/vpp/blob/master//src/vnet/dev/cli.c#L415>`_ Implementation: ``show_device_counters_cmd_fn``