blob: 42a7ded9c1151fa92c46eed0dd3ea5d326199a6b [file] [log] [blame]
Chetan Gaonkerb84835f2016-04-19 15:12:10 -07001#!/bin/bash
2ulimit -n 65536
3ip a add 10.10.0.3/16 dev eth1
4#bgpd -u root -f /root/config/bgpd.conf &
Chetan Gaonker3533faa2016-04-25 17:50:14 -07005conf_file=${1:-/root/config/testrib.conf}
Chetan Gaonkerfe551a22016-04-29 17:34:57 -07006base_conf=$(basename $conf_file)
7base_conf=${base_conf%%.conf}
8if [[ $base_conf == bgpd* ]]; then
9 /usr/local/sbin/bgpd -u root -f $conf_file
10else
11 /usr/local/sbin/zebra -u root -f $conf_file
12fi