mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-15 05:40:03 +00:00
[tools] multiple-bgpd.sh: make paths more configurable
This commit is contained in:
parent
fa93b16208
commit
0e7c124f87
@ -7,9 +7,11 @@ VTYBASE=2610
|
|||||||
ASBASE=64560
|
ASBASE=64560
|
||||||
BGPD=/path/to/bgpd
|
BGPD=/path/to/bgpd
|
||||||
PREFIX=192.168.145
|
PREFIX=192.168.145
|
||||||
|
CONFBASE=/tmp
|
||||||
|
PIDBASE=/var/run/quagga
|
||||||
|
|
||||||
for H in `seq 1 ${NUM}` ; do
|
for H in `seq 1 ${NUM}` ; do
|
||||||
CONF=/etc/quagga/bgpd${H}.conf
|
CONF="${CONFBASE}"/bgpd${H}.conf
|
||||||
ADDR=${PREFIX}.${H}
|
ADDR=${PREFIX}.${H}
|
||||||
|
|
||||||
if [ ! -e "$CONF" ] ; then
|
if [ ! -e "$CONF" ] ; then
|
||||||
@ -47,9 +49,9 @@ for H in `seq 1 ${NUM}` ; do
|
|||||||
#
|
#
|
||||||
# Solaris: ifconfig vni${H} plumb ${ADDR}/32 up
|
# Solaris: ifconfig vni${H} plumb ${ADDR}/32 up
|
||||||
# Linux: ip address add ${ADDR}/32 dev lo 2> /dev/null
|
# Linux: ip address add ${ADDR}/32 dev lo 2> /dev/null
|
||||||
${BGPD} -i /var/run/quagga/bgpd${H}.pid \
|
${BGPD} -i "${PIDBASE}"/bgpd${H}.pid \
|
||||||
-l ${ADDR} \
|
-l ${ADDR} \
|
||||||
-f /etc/quagga/bgpd${H}.conf \
|
-f "${CONF}" \
|
||||||
-P $((${VTYBASE}+${H})) \
|
-P $((${VTYBASE}+${H})) \
|
||||||
-d
|
-d
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user