]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: Add hidden 'show frr' command
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 12 Apr 2019 14:25:11 +0000 (10:25 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 12 Apr 2019 14:27:52 +0000 (10:27 -0400)
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/zebra_vty.c

index fe2e8a34e11a13ebf52a0797e3f5085f3da1e35e..8cde07a1096b109cac9e8300d23dee554fd438c1 100644 (file)
@@ -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);