Update frr.py
replace deprecated ifconfig with ip
This commit is contained in:
parent
14db4eb383
commit
89af081712
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue