Fix subnet retrieval in update_router_gw_info