。我想知道为什么不放错误?它确实如果我使用了错误的前缀。为什么在这种情况下,当条件指的是一个不存在的节点时,为什么在这种情况下不会出现错误
请问您可以查看何时条件(嵌入模块中)。
是否允许(在表达式中)引用架构中的扩展本身?
module mod-w-1 {
namespace "http://example.org/tests/mod-w-1";
prefix m1;
container m1 {
leaf b1 {
type string;
}
}
}
module when-tests {
namespace "http://example.org/tests/when-tests";
prefix wt;
import mod-w-1 {
prefix m1;
}
augment "/m1:m1" {
// when "/m1:m1/b3 = 'abc'";
// there is no b3, so, should be invalid.
// when "/m1:m1/b1 = 'abc'";
// a payload or data situation that has m1/b1 != 'abc' will cause the
// data that fits this augment content will be invalid/rejected.
/* for ex;
<m1>
<b1>fff</b1>
<x>sfsf</x>
<conditional>
<foo>dddd</foo>
</conditional>
</m1>
is invalid, hence, the <x> and <conditional> parts will be
rejected.
*/
leaf x {
type string;
}
container conditional {
leaf foo {
type string;
}
}
}
}
嗨,谢谢。有什么方法可以直接与您联系。我可能需要咨询(我将支付)的几个小时,你似乎是积极帮助杨相关问题的唯一一个。 – user19937
是否有其他的阳工具超出了刚刚提供的阳工具。我知道libyang,但是,我需要一个被认可的,被称为阳1.1兼容和可靠的。有没有(不是说libyang不是那些,我只想听到一个知道第一手的人)? – user19937
@ user19937,哦,我不是唯一一个 - 我只是恰好是第一个回答,我只回答我知道我可以回答的问题。 NETMOD WG最近已经开始[编译](http://www.claise.be/IETFYANGPageCompilation.html)他们几个编译器(检查列表)模块,虽然我不知道他们是否是1.1兼容。有NETCONF /杨与实现的列表[这里](https://trac.ietf.org/trac/netconf)。我知道MG-SOFT有杨工具链(包括IDE),已经开始推出支持1.1和验证XPath表达式(免责声明:我的员工)。 – predi