Muk*_* MV 0 xpath ietf-netmod-yang
据我了解,Yang 模型中的“when”语句采用 XPATH 表达式作为其参数。
组合多个表达式以便对类型/值数据容器进行建模的正确 YANG XPATH 语法是什么?
container c1 {
leaf attrib-type {
type uint32;
}
leaf attrib-val-int {
when "../attrib-type = 1 or ../attrib-type = 2"
type uint32;
}
leaf attrib-val-string {
when "../attrib-type = 5 or ../attrib-type = 6"
type string;
}
}
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
9322 次 |
最近记录: |