func (s *SNMPService) GetExtraConfig(key []byte) ([]byte, error) {
	switch string(key) {
	case "version":
		return []byte(s.config.Version), nil
	case "timeout":
		return []byte(fmt.Sprintf("%d", s.config.Timeout)), nil
	case "retries":
		return []byte(fmt.Sprintf("%d", s.config.Retries)), nil
	case "oid_batch_size":
		return []byte(fmt.Sprintf("%d", s.config.OidBatchSize)), nil
	case "community":
		return []byte(s.config.Community), nil
	case "user":
		return []byte(s.config.User), nil
	case "auth_key":
		return []byte(s.config.AuthKey), nil
	case "auth_protocol":
		return []byte(s.config.AuthProtocol), nil
	case "priv_key":
		return []byte(s.config.PrivKey), nil
	case "priv_protocol":
		return []byte(s.config.PrivProtocol), nil
	case "context_engine_id":
		return []byte(s.config.ContextEngineID), nil
	case "context_name":
		return []byte(s.config.ContextName), nil
	case "autodiscovery_subnet":
		return []byte(s.config.Network), nil
	case "loader":
		return []byte(s.config.Loader), nil
	case "collect_device_metadata":
		return []byte(strconv.FormatBool(s.config.CollectDeviceMetadata)), nil
	case "tags":
		return []byte(convertToCommaSepTags(s.config.Tags)), nil
	}
	return []byte{}, ErrNotSupported
}
// GetExtraConfig returns data from configuration
GetExtraConfig returns data from configuration
// GetExtraConfig returns data from configuration
func (s *SNMPService) GetExtraConfig(key []byte) ([]byte, error) {
	switch string(key) {
	case "version":
		return []byte(s.config.Version), nil
	case "timeout":
		return []byte(fmt.Sprintf("%d", s.config.Timeout)), nil
	case "retries":
		return []byte(fmt.Sprintf("%d", s.config.Retries)), nil
	case "oid_batch_size":
		return []byte(fmt.Sprintf("%d", s.config.OidBatchSize)), nil
	case "community":
		return []byte(s.config.Community), nil
	case "user":
		return []byte(s.config.User), nil
	case "auth_key":
		return []byte(s.config.AuthKey), nil
	case "auth_protocol":
		return []byte(s.config.AuthProtocol), nil
	case "priv_key":
		return []byte(s.config.PrivKey), nil
	case "priv_protocol":
		return []byte(s.config.PrivProtocol), nil
	case "context_engine_id":
		return []byte(s.config.ContextEngineID), nil
	case "context_name":
		return []byte(s.config.ContextName), nil
	case "autodiscovery_subnet":
		return []byte(s.config.Network), nil
	case "loader":
		return []byte(s.config.Loader), nil
	case "collect_device_metadata":
		return []byte(strconv.FormatBool(s.config.CollectDeviceMetadata)), nil
	case "tags":
		return []byte(convertToCommaSepTags(s.config.Tags)), nil
	}
	return []byte{}, ErrNotSupported
}
func ( s * SNMPService ) GetExtraConfig ( key [ ] byte ) ( [ ] byte , error ) { switch string ( key ) { case " " : return [ ] byte ( s . config . Version ) , nil case " " : return [ ] byte ( fmt . Sprintf ( " " , s . config . Timeout ) ) , nil case " " : return [ ] byte ( fmt . Sprintf ( " " , s . config . Retries ) ) , nil case " " : return [ ] byte ( fmt . Sprintf ( " " , s . config . OidBatchSize ) ) , nil case " " : return [ ] byte ( s . config . Community ) , nil case " " : return [ ] byte ( s . config . User ) , nil case " " : return [ ] byte ( s . config . AuthKey ) , nil case " " : return [ ] byte ( s . config . AuthProtocol ) , nil case " " : return [ ] byte ( s . config . PrivKey ) , nil case " " : return [ ] byte ( s . config . PrivProtocol ) , nil case " " : return [ ] byte ( s . config . ContextEngineID ) , nil case " " : return [ ] byte ( s . config . ContextName ) , nil case " " : return [ ] byte ( s . config . Network ) , nil case " " : return [ ] byte ( s . config . Loader ) , nil case " " : return [ ] byte ( strconv . FormatBool ( s . config . CollectDeviceMetadata ) ) , nil case " " : return [ ] byte ( convertToCommaSepTags ( s . config . Tags ) ) , nil } return [ ] byte { } , ErrNotSupported }
GetExtraConfig returns data from configuration
GetExtraConfig returns data from configuration