Re: [netmod] can a 'must' statement point to a 'choice' node?

2017-10-18 Thread Martin Bjorklund
Kent Watsen wrote: > > I'm getting mixed results from pyang and yanglint. Can the XPath used > in a 'must' statement point to a 'choice' node? No, since the choice node is not present in the data tree. And note that pyang doesn't validate XPath expressions (except for

[netmod] can a 'must' statement point to a 'choice' node?

2017-10-17 Thread Kent Watsen
I'm getting mixed results from pyang and yanglint. Can the XPath used in a 'must' statement point to a 'choice' node? In the below YANG snippet from the zerotouch draft, the idea is that, if at least one URI is specified, then a hash needs to be present as well, but any hash is okay,