added reset interfaces at FRR startup
adds an interface down and up for all interfaces except lo; assists babel in particular
This commit is contained in:
parent
5ae3ad9011
commit
14db4eb383
1 changed files with 15 additions and 0 deletions
|
@ -225,8 +225,23 @@ if [ "$1" != "zebra" ]; then
|
|||
echo "WARNING: '$1': all FRR daemons are launched by the 'zebra' service!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
resetinterfaces()
|
||||
{
|
||||
for iface in $(ifconfig | cut -d ' ' -f1 | tr ':' '\\n' | awk NF)
|
||||
do
|
||||
if [ "$iface" != "lo" ]
|
||||
then
|
||||
ip link set dev $iface down
|
||||
sleep 1
|
||||
ip link set dev $iface up
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
confcheck
|
||||
bootfrr
|
||||
resetinterfaces
|
||||
""" % (
|
||||
cls.configs[0],
|
||||
frr_sbin_search,
|
||||
|
|
Loading…
Reference in a new issue