code: def get_network_by_name(self, nwk_name):
          
          ret_net_lst = []
          try:
              body = {}
              net_list = self.neutronclient.list_networks(body=body)
              net_list = net_list.get('networks')
              for net in net_list:
                  if net.get('name') == nwk_name:
                      ret_net_lst.append(net)
          except Exception as exc:
              LOG.error("Failed to get network by name %(name)s, "
                        "Exc %(exc)s",
                        {'name': nwk_name, 'exc': str(exc)})
          return ret_net_lst
docs: Search for a openstack network by name.