code: def list_pools(self):
          
          search_opts = {'router:external': True}
          return [FloatingIpPool(pool) for pool
                  in self.client.list_networks(**search_opts).get('networks')]
docs: Fetches a list of all floating IP pools.
  
          :returns: List of FloatingIpPool objects