summaryrefslogtreecommitdiffstats
path: root/sharpd/sharp_vty.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-01-30 19:59:51 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-02-09 02:31:37 +0100
commit75239f4f28b6b75fbc4d8b0f63c4a9193513989d (patch)
treeb6e5900ce8d80673bb28bc5b149db536006eb9db /sharpd/sharp_vty.c
parentsharpd: Add some infrastructure to allow test of ZEBRA_VRF_LABEL (diff)
downloadfrr-75239f4f28b6b75fbc4d8b0f63c4a9193513989d.tar.xz
frr-75239f4f28b6b75fbc4d8b0f63c4a9193513989d.zip
sharpd: Consolidate commands under 'sharp' keyword
The commands if not careful needed a way to isolate themselves from each other and 'real' system commands so let's put them under the sharp keyword. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'sharpd/sharp_vty.c')
-rw-r--r--sharpd/sharp_vty.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sharpd/sharp_vty.c b/sharpd/sharp_vty.c
index efbe98972..786191e6a 100644
--- a/sharpd/sharp_vty.c
+++ b/sharpd/sharp_vty.c
@@ -41,7 +41,8 @@ extern uint32_t removed_routes;
DEFPY (install_routes,
install_routes_cmd,
- "install routes A.B.C.D$start nexthop A.B.C.D$nexthop (1-1000000)$routes",
+ "sharp install routes A.B.C.D$start nexthop A.B.C.D$nexthop (1-1000000)$routes",
+ "Sharp routing Protocol\n"
"install some routes\n"
"Routes to install\n"
"Address to start /32 generation at\n"
@@ -80,7 +81,8 @@ DEFPY (install_routes,
DEFPY(vrf_label,
vrf_label_cmd,
- "label vrf NAME$name label (0-100000)$label",
+ "sharp label vrf NAME$name label (0-100000)$label",
+ "Sharp Routing Protocol\n"
"Give a vrf a label\n"
VRF_CMD_HELP_STR
"The label to use\n"
@@ -104,7 +106,8 @@ DEFPY(vrf_label,
DEFPY (remove_routes,
remove_routes_cmd,
- "remove routes A.B.C.D$start (1-1000000)$routes",
+ "sharp remove routes A.B.C.D$start (1-1000000)$routes",
+ "Sharp Routing Protocol\n"
"Remove some routes\n"
"Routes to remove\n"
"Starting spot\n"