code: def get_subnetid(vm_):
      '''
      Returns the SubnetId to use
      '''
      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 Nonf get_subnetid(vm_):
      '''
      Returns the SubnetId to use
      '''
      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
docs: Returns the SubnetId to use