diff --git a/ddsrouter_yaml/src/cpp/YamlReader_configuration.cpp b/ddsrouter_yaml/src/cpp/YamlReader_configuration.cpp index 775f9da51..938a148fc 100644 --- a/ddsrouter_yaml/src/cpp/YamlReader_configuration.cpp +++ b/ddsrouter_yaml/src/cpp/YamlReader_configuration.cpp @@ -37,6 +37,20 @@ namespace eprosima { namespace ddspipe { namespace yaml { +template <> +bool YamlValidator::validate( + const Yaml& yml, + const YamlReaderVersion& /* version */) +{ + // The method is rewritten to provide a specific validation of the DDS Router's MonitorConfiguration: + // i.e. the DDS Router's MonitorConfiguration doesn't have a status. + static const std::set tags{ + MONITOR_DOMAIN_TAG, + MONITOR_TOPICS_TAG}; + + return YamlValidator::validate_tags(yml, tags); +} + template <> void YamlReader::fill( ddsrouter::core::SpecsConfiguration& object,