On Thu, 2019-12-19 at 07:52 +0000, Schönwälder, Jürgen wrote: > On Thu, Dec 19, 2019 at 08:23:27AM +0100, Ladislav Lhotka wrote: > > I don't see how YANG syntax defines this. If a module imports ietf-netconf- > > acm, it could be because > > > > - it just uses a typedef, such as "node-instance-identifier", and then > > ietf-netconf-acm needn't be implemented (but can be), > > > > or > > > > - it augments ietf-netconf-acm, which makes sense only if the latter > > module is implemented. > > > > It it the YANG library that specifies whether a module is implemented or > > not, but the "import" statement itself doesn't tell you anything. > > > > Can we not assume that an implementor will figure out the difference?
An implementor should be able to figure it out, but other potential module users may not. For example, if somebody is evaluating whether to use a module for their device or not, it is important to know that NACM has to be implemented (or not). Lada > Or someone writes a pyang plugin to determine from the schema tree the > kind of imports there are (for a given set of features). > > /js > -- Ladislav Lhotka Head, CZ.NIC Labs PGP Key ID: 0xB8F92B08A9F76C67 _______________________________________________ netmod mailing list netmod@ietf.org https://www.ietf.org/mailman/listinfo/netmod