#! /pkg/bin/ksh
# ---------------------------------------------------------------------
# l2vpn_show_tech_arp - ARP L2VPN showtech script
#
# July 2017
#
# Copyright (c) 2017 by cisco Systems, Inc.
# All rights reserved.
#----------------------------------------------------------------------

. /pkg/bin/show_tech_main_fragment


# Parse the arguments to the script.
default_parser_function "$@"


sys_exec[1]='show arp detail'
sys__ksh[1]='arp_command show -A -E'
sys_exec[2]='show adjacency detail'
sys__ksh[2]='aib_show_command -D'
sys_exec[3]=''
sys__ksh[3]=''

# A function called display() must be provided that calls the functions to 
# run the required show commands. The display() function is called in 
# /pkg/bin/show_tech_comp_file_frag
display() {
    case "$__cardtype" in
    "SYS")
        # system.tech
        exec_commands sys
        ;;

    esac
}

# This function calls the display() function and sends the output to file if
# the file option has been set. 
. /pkg/bin/show_tech_file_fragment

