get_subnets requires a huge number of backend calls to gather the
networks advanced_service_providers field.
This change should gather the data from DB with a single call and
process it locally at the controller.
Change-Id: Ic7c7fac46c983c1c750108d86a1adefb4c11508c