From 75239f4f28b6b75fbc4d8b0f63c4a9193513989d Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 30 Jan 2018 13:59:51 -0500 Subject: [PATCH] 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/sharp_vty.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sharpd/sharp_vty.c b/sharpd/sharp_vty.c index efbe989721..786191e6a1 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" -- 2.39.5