On 11/29/2016 05:18 PM, Jan Lindblad wrote:

Bart,

Jürgen et al are of course right in what they say, but if you really want to use YANG to enable a manager to know a priori what values are possible for a particular leaf somewhere, that's easy too -- if you see the addition of a new proprietary YANG module as a possibility.

module device-limitations {
...
  container limitations {
must "not(/if:interfaces/if:interface[not(if:type='ianaift:fastdsl')])" { error-message "There must not be any interfaces that are not of fastdsl interface type";
    }
  }
}
+1. We use the same approach for defining device specific limitations in YANG.

_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod

Reply via email to