def _find_network_id(cs, net_name):
 if cs.has_neutron():
  return _find_network_id_neutron(cs, net_name)
 else:
  want_version = api_versions.APIVersion('2.35')
  cur_version = cs.api_version
  if (cs.api_version > want_version):
   cs.api_version = want_version
  try:
   return _find_network_id_novanet(cs, net_name)
  finally:
   cs.api_version = cur_version

def _find_network_id ( cs , net_name ) : if cs . has_neutron ( ) : return _find_network_id_neutron ( cs , net_name ) else : want_version = api_versions . APIVersion ( '2.35' ) cur_version = cs . api_version if ( cs . api_version > want_version ) : cs . api_version = want_version try : return _find_network_id_novanet ( cs , net_name ) finally : cs . api_version = cur_version
find the network id for a network name .