wit-network-config/files/vrf-dhcp-enter

8 lines
284 B
Plaintext
Raw Normal View History

2018-07-26 03:57:41 -05:00
vrfid=$(ip -o -d link show dev ${interface} 2>/dev/null | egrep ' vrf_slave table [0-9]*' | sed -e 's/.*vrf_slave table \([0-9]*\) .*/\1/')
if [ "$reason" = "BOUND" ] && [ "$vrfid" != "" ]; then
/sbin/ip route flush table $vrfid
vrfgateway=$new_routers
new_routers=""
fi