#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# ident "@(#)quaggaadm 1.3 08/10/02 SMI"
daemons="zebra ripd ripngd ospfd ospf6d bgpd isisd"
function quaggaadm_usage
{
print - "Usage:\n" >&2
print - "\t${1} [-e] ${H}\t\tConnect to ${H} daemon" >&2
done
print - "\nThe -e flag enables the named daemon to accept ${1} connections and" >&2
print - "must be used on the first use of ${1} to connect to a particular daemon." >&2
}
if [ ${#} -gt 2 ]
then
quaggaadm_usage ${0}
exit 1
fi
function vty_enable
{
restart=0;
/usr/bin/svcprop -p routing/vty_address ${1} \
restart=1
fi
}
ENABLE="no"
if [ ${#} -eq 2 ] ; then
DAEMON=${2}
if [ ${1} != "-e" ]; then
quaggaadm_usage ${0}
exit 1;
fi
ENABLE="yes"
elif [ ${#} -eq 1 ] ; then
DAEMON=${1}
fi
zebra) # telnet to zebra daemon
PORT=2601
SVC="zebra:quagga"
;;
PORT=2602
SVC="rip:quagga"
;;
PORT=2603
SVC="ripng:quagga"
;;
PORT=2604
SVC="ospf:quagga"
;;
PORT=2605
SVC="bgp:quagga"
;;
PORT=2606
SVC="ospf6:quagga"
;;
PORT=2608
SVC="isis:quagga"
;;
*)
# unknown daemon
print - "Unrecognized command: ${1}..." >&2
quaggaadm_usage ${0}
exit 1
;;
esac
if [ ${ENABLE} = "yes" ] ; then
fi
exit 0