#!/pkg/bin/ksh
###
### March 2004, Simon Osborne
###
### Copyright (c) 2004-2009 by cisco Systems, Inc.
### All rights reserved.
###
### If the 'all' AFI parameter was specified in a show command, this process
### is run to execute the separate ipv4 and ipv6 requests.
###
### The first parameters given will be -X and the 'any' AFI tag. This AFI tag
### must be converted into the respective tags for ipv4 and ipv6 before the
### show commands are called. All other args are passed through unchanged.
### A -m flag is prepended to the arg string to indicate that data for both
### AFIs was requested by the user. This is used by the show process to 
### indicate when a header must be printed detailing the AFI (and potentially
### SAFI) the data corresponds to.
###

shift;
shift;
show_ipv4_rib -m -X 1 $@;
show_ipv6_rib -m -X 2 $@;

