Skip to content

Commit 24e6422

Browse files
tempateLuciaEchevarria99
authored andcommitted
Overwrite some DdsPipe validation methods
Signed-off-by: tempate <[email protected]>
1 parent d7269f1 commit 24e6422

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

ddsrouter_yaml/src/cpp/YamlReader_configuration.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,20 @@ namespace eprosima {
3737
namespace ddspipe {
3838
namespace yaml {
3939

40+
template <>
41+
bool YamlValidator::validate<core::MonitorConfiguration>(
42+
const Yaml& yml,
43+
const YamlReaderVersion& /* version */)
44+
{
45+
// The method is rewritten to provide a specific validation of the DDS Router's MonitorConfiguration:
46+
// i.e. the DDS Router's MonitorConfiguration doesn't have a status.
47+
static const std::set<TagType> tags{
48+
MONITOR_DOMAIN_TAG,
49+
MONITOR_TOPICS_TAG};
50+
51+
return YamlValidator::validate_tags(yml, tags);
52+
}
53+
4054
template <>
4155
void YamlReader::fill(
4256
ddsrouter::core::SpecsConfiguration& object,

0 commit comments

Comments
 (0)