Chetan Gaonker | b84835f | 2016-04-19 15:12:10 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | ulimit -n 65536 |
| 3 | ip a add 10.10.0.3/16 dev eth1 |
| 4 | #bgpd -u root -f /root/config/bgpd.conf & |
Chetan Gaonker | 3533faa | 2016-04-25 17:50:14 -0700 | [diff] [blame] | 5 | conf_file=${1:-/root/config/testrib.conf} |
Chetan Gaonker | fe551a2 | 2016-04-29 17:34:57 -0700 | [diff] [blame] | 6 | base_conf=$(basename $conf_file) |
| 7 | base_conf=${base_conf%%.conf} |
| 8 | if [[ $base_conf == bgpd* ]]; then |
| 9 | /usr/local/sbin/bgpd -u root -f $conf_file |
| 10 | else |
| 11 | /usr/local/sbin/zebra -u root -f $conf_file |
| 12 | fi |