Add vppctl as a simple cli interface to vpp
This patch provides a pretty simple hack on top of vpe_api_test to give users a cli interface to vpp. Example: sudo vppctl show api client sudo vppctl show int It has the advantage that users can use bash shell scripting and history with it. Change-Id: I621dd8e29269e14a83b4887f20adcfbe5f946b99 Signed-off-by: Ed Warnicke <eaw@cisco.com>
This commit is contained in:
11
build-data/packages/vppctl.mk
Normal file
11
build-data/packages/vppctl.mk
Normal file
@ -0,0 +1,11 @@
|
||||
vppctl_configure_depend = \
|
||||
vppinfra-install \
|
||||
dpdk-install \
|
||||
svm-install \
|
||||
vlib-api-install \
|
||||
vlib-install \
|
||||
vnet-install \
|
||||
vpp-install \
|
||||
vpp-api-test-install
|
||||
|
||||
|
@ -16,7 +16,7 @@ vpp_arch = native
|
||||
vpp_native_tools = vppapigen
|
||||
|
||||
vpp_root_packages = vpp vlib vlib-api vnet svm dpdk vpp-api-test \
|
||||
vpp-japi
|
||||
vpp-japi vppctl
|
||||
|
||||
vpp_configure_args_vpp = --with-dpdk
|
||||
vnet_configure_args_vpp = --with-dpdk
|
||||
|
2
vppctl/Makefile.am
Normal file
2
vppctl/Makefile.am
Normal file
@ -0,0 +1,2 @@
|
||||
|
||||
dist_bin_SCRIPTS = vppctl
|
4
vppctl/configure.ac
Normal file
4
vppctl/configure.ac
Normal file
@ -0,0 +1,4 @@
|
||||
AC_INIT([vppctl], [1.0])
|
||||
AM_INIT_AUTOMAKE([foreign -Wall -Werror])
|
||||
AC_CONFIG_FILES([Makefile])
|
||||
AC_OUTPUT
|
2
vppctl/vppctl
Executable file
2
vppctl/vppctl
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
echo exec ${@} | vpe_api_test | sed 's/vat# //g'
|
Reference in New Issue
Block a user