Hi, I have a yang model with 2 notification defined in it, but the 2 notification has a same name leaf (enumration type with different enums)
notification dev1-state-changed {
leaf oper-state {
type enumeration {
enum unknown {
description "The resource is unable to report its operational state.";
}
enum disabled {
description "The resource is totally inoperable.";
}
}
}
}
notification dev2-state-changed {
leaf oper-state {
type enumeration {
enum enabled {
description "The resource is partially or fully operable.";
}
enum testing {
description "The resource is currently being tested and cannot
therefore report whether or not it is operational.";
}
}
}
}
when I tried to compile fxs:
# /opt/confd/bin/confdc --emit-java dev.java dev.fxs
Warning: the following symbols have been suppressed due to a
conflict with an enum or bit with the same mapped name but a different value:
.....
'testing', 'unknown'.
Use tailf:code-name on the conflicting enums, bits, or nodes
to avoid the conflict.
what is the proper way to handle same name enum with different list values.