Details
Description
Problem with using prefix inside a when argument. This happens only inside a submodule trying to augment nodes from module to which it belongs.
Example [1]:
submodule ietf-snmp-community {
belongs-to ietf-snmp {
prefix snmp;
}
...
augment /snmp:snmp/snmp:target {
when "snmp:v1 or snmp:v2c";
...
}
}
Error message:
Caused by: org.opendaylight.yangtools.yang.parser.spi.source.SourceException: Argument "snmp:v1 or snmp:v2c" is not valid XPath string [at experimental/ietf-extracted-YANG-modules/ietf-snmp-community@2014-05-06.yang:192:4]
...
Caused by: javax.xml.xpath.XPathExpressionException: java.lang.IllegalArgumentException: Prefix snmp is not bound