summaryrefslogtreecommitdiffstats
path: root/vppctl
diff options
context:
space:
mode:
authorEd Warnicke <eaw@cisco.com>2015-12-15 15:08:54 -0800
committerEd Warnicke <eaw@cisco.com>2015-12-16 05:50:11 -0700
commitc72cbf80d0674a745fef2effb3c2f6dbcf5bf98e (patch)
tree2f2ac255769a964d87a8da3fb151fa639ee6cc6d /vppctl
parent7210e9470eeeb0ff1a259db1f448011da3774d8c (diff)
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>
Diffstat (limited to 'vppctl')
-rw-r--r--vppctl/Makefile.am2
-rw-r--r--vppctl/configure.ac4
-rwxr-xr-xvppctl/vppctl2
3 files changed, 8 insertions, 0 deletions
diff --git a/vppctl/Makefile.am b/vppctl/Makefile.am
new file mode 100644
index 00000000000..d556cb2aa5c
--- /dev/null
+++ b/vppctl/Makefile.am
@@ -0,0 +1,2 @@
+
+dist_bin_SCRIPTS = vppctl
diff --git a/vppctl/configure.ac b/vppctl/configure.ac
new file mode 100644
index 00000000000..0421019452a
--- /dev/null
+++ b/vppctl/configure.ac
@@ -0,0 +1,4 @@
+AC_INIT([vppctl], [1.0])
+AM_INIT_AUTOMAKE([foreign -Wall -Werror])
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT
diff --git a/vppctl/vppctl b/vppctl/vppctl
new file mode 100755
index 00000000000..b789493f2be
--- /dev/null
+++ b/vppctl/vppctl
@@ -0,0 +1,2 @@
+#!/bin/bash
+echo exec ${@} | vpe_api_test | sed 's/vat# //g'