|
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
|