Update frr.py

replace deprecated ifconfig with ip
This commit is contained in:
bharnden 2020-01-20 22:38:34 -08:00 committed by GitHub
parent 14db4eb383
commit 89af081712
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -228,7 +228,7 @@ fi
resetinterfaces()
{
for iface in $(ifconfig | cut -d ' ' -f1 | tr ':' '\\n' | awk NF)
for iface in $(ip -o link show up | awk -F': ' '{print $2}')
do
if [ "$iface" != "lo" ]
then