Robert Varga <[email protected]> wrote:
> Hello,
>
> I have went through RFC7950, but I cannot find the text which would give
> answer whether:
>
> feature foo;
> feature bar;
>
> container baz {
> if-feature "foo and (not baz)";
> }
>
> list baz {
> if-feature "(not foo) and baz";
> }
>
> is valid YANG or not. The two statements violate Section 6.1.2, but they
> are mutually exlusive when conformance comes into play.
I think you mean 6.2.1. You are right; these two statements violate
6.2.1 and this is thus not legal.
Consider what this would mean in the model above:
augement /baz {
...
}
> Does compliance (Section 5.6) have any bearing on namespaces (Section
> 6.1.2)?
Section 5.6 is about server conformance, and the first sentence is:
Conformance to a model is a measure of how accurately a server
follows the model.
Namespaces are not related to how accurately a server follows a model.
/martin
_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod