/* $XORP: xorp/etc/templates/rip.cmds,v 1.5 2008/06/06 12:05:29 bms Exp $ */

show rip {
     %command: "" %help: HELP;
     %module: rip;
     %tag: HELP "Display information about RIP";
}

show rip peers {
     %command: "rip/tools/show_peer_stats -1 $2" %help: HELP;
     %module: rip;
     %tag: HELP "Show all RIP peers each on a single line";
}

show rip peer statistics $(protocols.rip.interface.*) $(protocols.rip.interface.*.vif.*) $(protocols.rip.interface.*.vif.*.address.*) {
     %command: "rip/tools/show_peer_stats $2 $5 $6 $7" %help: HELP;
     %module: rip;
     %tag: HELP "Show RIP statistics for peers on specified address";
}

show rip peer statistics all {
     %command: "rip/tools/show_peer_stats $2" %help: HELP;
     %module: rip;
     %tag: HELP "Show RIP statistics for all peers";
}

show rip statistics $(protocols.rip.interface.*) $(protocols.rip.interface.*.vif.*) $(protocols.rip.interface.*.vif.*.address.*) {
     %command: "rip/tools/show_stats $2 $4 $5 $6" %help: HELP;
     %module: rip;
     %tag: HELP "Show RIP statistics on specified address";
}

show rip statistics all {
     %command: "rip/tools/show_stats $2" %help: HELP;
     %module: rip;
     %tag: HELP "Show RIP statistics for all addresses";
}

show rip status $(protocols.rip.interface.*) $(protocols.rip.interface.*.vif.*) $(protocols.rip.interface.*.vif.*.address.*) {
     %command: "rip/tools/show_stats -b $2 $4 $5 $6" %help: HELP;
     %module: rip;
     %tag: HELP "Show RIP status on specified address";
}

show rip status all {
     %command: "rip/tools/show_stats -b $2" %help: HELP;
     %module: rip;
     %tag: HELP "Show RIP status for all addresses";
}

