From d2f5903b846cf9ee1e2675f0d5db657f34f5d5c8 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 12 Apr 2019 10:25:11 -0400 Subject: [PATCH] zebra: Add hidden 'show frr' command Signed-off-by: Donald Sharp --- zebra/zebra_vty.c | 64 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index fe2e8a34e1..8cde07a109 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -2852,6 +2852,69 @@ static int config_write_forwarding(struct vty *vty) return 0; } +DEFUN_HIDDEN (show_frr, + show_frr_cmd, + "show frr", + SHOW_STR + "FRR\n") +{ + vty_out(vty, "........ .. . .. . ..... ...77:................................................\n"); + vty_out(vty, ".............................7777:..............................................\n"); + vty_out(vty, ".............................777777,............................................\n"); + vty_out(vty, "... .........................77777777,..........................................\n"); + vty_out(vty, "............................=7777777777:........................................\n"); + vty_out(vty, "........................:7777777777777777,......................................\n"); + vty_out(vty, ".................... ~7777777777777?~,..........................................\n"); + vty_out(vty, "...................I7777777777+.................................................\n"); + vty_out(vty, "................,777777777?............ .......................................\n"); + vty_out(vty, "..............:77777777?..........~?77777.......................................\n"); + vty_out(vty, ".............77777777~........=7777777777.......................................\n"); + vty_out(vty, ".......... +7777777,.......?7777777777777.......................................\n"); + vty_out(vty, "..........7777777~......:7777777777777777......77?,.............................\n"); + vty_out(vty, "........:777777?......+777777777777777777......777777I,.........................\n"); + vty_out(vty, ".......?777777,.....+77777777777777777777......777777777?.......................\n"); + vty_out(vty, "......?777777......7777777777777777777777......,?777777777?.....................\n"); + vty_out(vty, ".....?77777?.....=7777777777777777777I~............,I7777777~...................\n"); + vty_out(vty, "....+77777+.....I77777777777777777:...................+777777I..................\n"); + vty_out(vty, "...~77777+.....7777777777777777=........................?777777...... .......\n"); + vty_out(vty, "...77777I.....I77777777777777~.........:?................,777777.....I777.......\n"); + vty_out(vty, "..777777.....I7777777777777I .......?7777..................777777.....777?......\n"); + vty_out(vty, ".~77777,....=7777777777777:......,7777777..................,77777+....+777......\n"); + vty_out(vty, ".77777I.....7777777777777,......777777777.......ONNNN.......=77777.....777~.....\n"); + vty_out(vty, ",77777.....I777777777777,.....:7777777777......DNNNNNN.......77777+ ...7777.....\n"); + vty_out(vty, "I7777I.....777777777777=.....~77777777777......NNNNNNN~......=7777I....=777.....\n"); + vty_out(vty, "77777:....=777777777777.....,777777777777......$NNNNND ......:77777....:777.....\n"); + vty_out(vty, "77777. ...777777777777~.....7777777777777........7DZ,........:77777.....777.....\n"); + vty_out(vty, "????? . ..777777777777.....,7777777777777....................:77777I....777.....\n"); + vty_out(vty, "....... ..777777777777.....+7777777777777....................=7777777+...?7.....\n"); + vty_out(vty, "..........77777777777I.....I7777777777777....................7777777777:........\n"); + vty_out(vty, "..........77777777777I.....?7777777777777...................~777777777777.......\n"); + vty_out(vty, "..........777777777777.....~7777777777777..................,77777777777777+.....\n"); + vty_out(vty, "..........777777777777......7777777777777..................77777777777777777,...\n"); + vty_out(vty, "..... ....?77777777777I.....~777777777777................,777777.....,:+77777I..\n"); + vty_out(vty, "........ .:777777777777,.....?77777777777...............?777777..............,:=\n"); + vty_out(vty, ".......... 7777777777777..... ?7777777777.............=7777777.....~777I........\n"); + vty_out(vty, "...........:777777777777I......~777777777...........I7777777~.....+777I.........\n"); + vty_out(vty, "..... ......7777777777777I.......I7777777.......+777777777I......7777I..........\n"); + vty_out(vty, ".............77777777777777........?77777......777777777?......=7777=...........\n"); + vty_out(vty, ".............,77777777777777+.........~77......777777I,......:77777.............\n"); + vty_out(vty, "..............~777777777777777~................777777......:77777=..............\n"); + vty_out(vty, "...............:7777777777777777?..............:777777,.....=77=................\n"); + vty_out(vty, "................,777777777777777777?,...........,777777:.....,..................\n"); + vty_out(vty, "........... ......I777777777777777777777I.........777777~.......................\n"); + vty_out(vty, "...................,777777777777777777777..........777777+......................\n"); + vty_out(vty, ".....................+7777777777777777777...........777777?.....................\n"); + vty_out(vty, ".......................=77777777777777777............777777I....................\n"); + vty_out(vty, ".........................:777777777777777.............I77777I...................\n"); + vty_out(vty, "............................~777777777777..............+777777..................\n"); + vty_out(vty, "................................~77777777...............=777777.................\n"); + vty_out(vty, ".....................................:=?I................~777777................\n"); + vty_out(vty, "..........................................................:777777,..............\n"); + vty_out(vty, ".... ... ... . . .... ....... ....... ....................:777777..............\n"); + + return CMD_SUCCESS; +} + /* IP node for static routes. */ static struct cmd_node ip_node = {IP_NODE, "", 1}; static struct cmd_node protocol_node = {PROTOCOL_NODE, "", 1}; @@ -2930,6 +2993,7 @@ void zebra_vty_init(void) /* Commands for VRF */ install_element(VIEW_NODE, &show_ipv6_mroute_vrf_all_cmd); + install_element(VIEW_NODE, &show_frr_cmd); install_element(VIEW_NODE, &show_evpn_global_cmd); install_element(VIEW_NODE, &show_evpn_vni_cmd); install_element(VIEW_NODE, &show_evpn_vni_detail_cmd); -- 2.39.5