Subject: [netmod] YANG data model organization within a NETCONF database

From: Andy Bierman <[email-masked]>
Date: Fri, 31 Jul 2009 09:29:10 -0700

Hi,

I heard one sequence on the audio feed from the
last meeting that was kind of scary.

There is an assumption that top-level data nodes
within a YANG module that are supported by the
agent are 'rooted' as children of the <config> element.

This needs to be more than an assumption.
It MUST be the only way a conforming implementation
locates top-level YANG data nodes in a NETCONF database.

If agents do not locate all objects in the same place
for the exact same YANG module, then IMO YANG is broken.

The YANG object identifier that falls out from the YANG file
definition MUST be the exact spot in the conceptual
XML instance document where the object is found. e.g.:

   /interfaces/interface/name

   /ietf-netconf-state/schemas

  <config>
     <interfaces xmlns="interfaces-NS">
        <interface>
           <name/>
        </interface>
     </interfaces>
     <ietf-netconf-state xmlns="monitoring-NS">
        <schemas/>
     </ietf-netconf-state>
  </config>

Andy