Rohit R Ranade <[email protected]> wrote: > Hi All, > > RFC 8342 defines the conventional data-store as below > > " > identity conventional { > base datastore; > description > "Abstract base identity for conventional configuration > datastores."; > } > " > > So when using the data-store-ref with NETCONF <get-data> as below: > > <rpc message-id="101" > xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> > <get-data > xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-nmda" > xmlns:ds="urn:ietf:params:xml:ns:yang:ietf-datastores"> > <datastore>ds:conventional</datastore> > </get-data> > </rpc> > > The libyang parser was successfully able to parse this as a valid > data-store-ref. But conceptually this is not a valid data-store as > it is an "abstract base identity". > NETCONF Server will have to add code to send error when conventional > data-store comes in input. I would prefer if we can control this > using data-model statements then the parser can handle the > error. Any thoughts ?
I agree. This would be a useful enhancement to YANG. FWIW, we have implemented such a vendor-specific extension (tailf:abstract). It is also listed on the tracker for future ideas: https://github.com/netmod-wg/yang-next/issues/33 /martin _______________________________________________ netmod mailing list [email protected] https://www.ietf.org/mailman/listinfo/netmod
