From 89af081712e5cad06d4e07656601825f813edcbc Mon Sep 17 00:00:00 2001 From: bharnden <32446120+bharnden@users.noreply.github.com> Date: Mon, 20 Jan 2020 22:38:34 -0800 Subject: [PATCH] Update frr.py replace deprecated ifconfig with ip --- daemon/core/services/frr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/core/services/frr.py b/daemon/core/services/frr.py index 436bc82c..0694c6d3 100644 --- a/daemon/core/services/frr.py +++ b/daemon/core/services/frr.py @@ -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