/* $XORP: xorp/etc/templates/rip.cmds,v 1.4 2004/06/06 02:12:25 hodson Exp $ */

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

show rip peers {
     %command: "rip_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_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_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_show_stats $2 $4 $5 $6" %help: HELP;
     %module: rip;
     %tag: HELP "Show RIP statistics on specified address";
}

show rip statistics all {
     %command: "rip_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_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_show_stats -b $2" %help: HELP;
     %module: rip;
     %tag: HELP "Show RIP status for all addresses";
}

