def get_subnetid(vm_):
 subnetid = config.get_cloud_config_value('subnetid', vm_, __opts__, search_global=False)
 if subnetid:
  return subnetid
 subnetname = config.get_cloud_config_value('subnetname', vm_, __opts__, search_global=False)
 if subnetname:
  return _get_subnetname_id(subnetname)
 return None

def get_subnetid ( vm_ ) : subnetid = config . get_cloud_config_value ( 'subnetid' , vm_ , __opts__ , search_global = False ) if subnetid : return subnetid subnetname = config . get_cloud_config_value ( 'subnetname' , vm_ , __opts__ , search_global = False ) if subnetname : return _get_subnetname_id ( subnetname ) return None
returns the subnetid to use .