gwlb, bug in return_gateway_groups_array() leading in always selecting the default gateway. check should have been, this interface is up or none are up.