to $configured_interfaces because it never checked to see if if it actually configured that interface. For this reason it was setting $configured_lo0 as well, so that never got configured, causing all sorts of problems.