Andy Bierman <a...@yumaworks.com> writes: > On Thu, Feb 15, 2018 at 10:09 AM, Juergen Schoenwaelder < > j.schoenwael...@jacobs-university.de> wrote: > >> On Thu, Feb 15, 2018 at 05:03:32PM +0000, Robert Wilton wrote: >> > >> > 1) module "feature" in YANG library is a leaf-list, but currently it is a >> > list in YANG libary bis. I suspect that this is due to one of the >> > incarnations when it contained additional information. I think that we >> > should revert it back to being a leaf list for consistency. >> > >> > 2) Lada recommended that module "deviation" be made a leaf-list. I also >> > support changing this for consistency with "feature" above, but don't >> feel >> > too strongly on this one. >> > >> >> I suggest we either make both leaf-lists or keep both as lists. I am >> fine with making both lead-lists. >> >> > > The reason the deviation is a list is because it has a name and revision. > Or it did until it was removed. > > I prefer to keep the contents of the "module" list the > same as RFC 7895. The "improvement" is much worse -- > harder to use by clients and provides less information to clients.
So we currently have: 1. "deviation": [ { "module": "foo-devs" }, { "module": "bar-devs" } ] and the proposal is to have instead 2. "deviation-module": [ "foo-devs", "bar-dev" ] I fail to see why #2 is harder to use for clients, I would say it is the opposite. Also, #2 doesn't provide less information than RFC 7895 - the revision parameter is readily available in the "module" list. I also expect that this data will be used not only in machine-to-machine communication but could also be perused by humans - see e.g. draft-lengyel-netmod-yang-instance-data. For this purpose, #2 is a clear winer. Lada > > > >> /js >> > > > Andy > > >> >> -- >> Juergen Schoenwaelder Jacobs University Bremen gGmbH >> Phone: +49 421 200 3587 Campus Ring 1 | 28759 Bremen | Germany >> Fax: +49 421 200 3103 <https://www.jacobs-university.de/> >> >> _______________________________________________ >> Netconf mailing list >> netc...@ietf.org >> https://www.ietf.org/mailman/listinfo/netconf >> > _______________________________________________ > netmod mailing list > netmod@ietf.org > https://www.ietf.org/mailman/listinfo/netmod -- Ladislav Lhotka Head, CZ.NIC Labs PGP Key ID: 0xB8F92B08A9F76C67 _______________________________________________ netmod mailing list netmod@ietf.org https://www.ietf.org/mailman/listinfo/netmod