8 lines
284 B
Plaintext
Executable File
8 lines
284 B
Plaintext
Executable File
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
|