summaryrefslogtreecommitdiff
path: root/src/op_mode/vtysh_wrapper.sh
blob: bc7814a7caeae3116e8914eeca80885d3749ed3f (plain)
1
2
3
4
5
6
#!/bin/sh
declare -a tmp
# FRR uses ospf6 where we use ospfv3, and we use reset over clear for BGP,
# thus alter the commands
tmp=$(echo $@ | sed -e "s/ospfv3/ospf6/" | sed -e "s/^reset bgp/clear bgp/")
vtysh -c "$tmp"