File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -32,12 +32,14 @@ function add_net_interfaces() {
3232 ethernet_interfaces=()
3333 for interface in $interface_list ; do
3434 interface_info=$( ip link show " ${interface} " )
35+ # Skip interfaces that are not needed
3536 if [[ " $interface_info " =~ ' SLAVE' ]]; then
3637 echo " $( date -u) Not adding slave interface: ${interface} "
37- continue
3838 elif [[ " $interface_info " =~ ' link-netns' ]]; then
3939 echo " $( date -u) Not adding namespaced interface: ${interface} "
40- continue
40+ elif [[ " $interface_info " =~ ' UNKNOWN' ]]; then
41+ echo " $( date -u) Not adding state unknown interface: ${interface} "
42+ # Add remaining link/ether interface
4143 elif [[ " $interface_info " =~ ' link/ether' ]]; then
4244 echo " $( date -u) Including ethernet interface: ${interface} "
4345 ethernet_interfaces+=(" $interface " )
You can’t perform that action at this time.
0 commit comments