Blob Blame History Raw
<?xml version="1.0" encoding="UTF-8"?>
<module name="ietf-netconf-partial-lock"
        xmlns="urn:ietf:params:xml:ns:yang:yin:1"
        xmlns:pl="urn:ietf:params:xml:ns:netconf:partial-lock:1.0"
        xmlns:yang="urn:ietf:params:xml:ns:yang:ietf-yang-types">
  <namespace uri="urn:ietf:params:xml:ns:netconf:partial-lock:1.0"/>
  <prefix value="pl"/>
  <import module="ietf-yang-types">
    <prefix value="yang"/>
  </import>
  <organization>
    <text>IETF Network Configuration (netconf) Working Group</text>
  </organization>
  <contact>
    <text>Netconf Working Group
Mailing list: netconf@ietf.org
Web: http://www.ietf.org/html.charters/netconf-charter.html

Balazs Lengyel
Ericsson
balazs.lengyel@ericsson.com</text>
  </contact>
  <description>
    <text>This YANG module defines the &lt;partial-lock&gt; and
&lt;partial-unlock&gt; operations.</text>
  </description>
  <revision date="2009-10-19">
    <description>
      <text>Initial version, published as RFC 5717.</text>
    </description>
  </revision>
  <typedef name="lock-id-type">
    <type name="uint32"/>
    <description>
      <text>A number identifying a specific partial-lock granted to a session.
It is allocated by the system, and SHOULD be used in the
partial-unlock operation.</text>
    </description>
  </typedef>
  <rpc name="partial-lock">
    <description>
      <text>A NETCONF operation that locks parts of the running datastore.</text>
    </description>
    <input>
      <leaf-list name="select">
        <type name="yang:xpath1.0"/>
        <min-elements value="1"/>
        <description>
          <text>XPath expression that specifies the scope of the lock.
An Instance Identifier expression MUST be used unless the
:xpath capability is supported, in which case any XPath 1.0
expression is allowed.</text>
        </description>
      </leaf-list>
    </input>
    <output>
      <leaf name="lock-id">
        <type name="lock-id-type"/>
        <mandatory value="true"/>
        <description>
          <text>Identifies the lock, if granted.  The lock-id SHOULD be
used in the partial-unlock rpc.</text>
        </description>
      </leaf>
      <leaf-list name="locked-node">
        <type name="instance-identifier"/>
        <min-elements value="1"/>
        <description>
          <text>List of locked nodes in the running datastore</text>
        </description>
      </leaf-list>
    </output>
  </rpc>
  <rpc name="partial-unlock">
    <description>
      <text>A NETCONF operation that releases a previously acquired
partial-lock.</text>
    </description>
    <input>
      <leaf name="lock-id">
        <type name="lock-id-type"/>
        <mandatory value="true"/>
        <description>
          <text>Identifies the lock to be released.  MUST be the value
received in the response to a partial-lock operation.</text>
        </description>
      </leaf>
    </input>
  </rpc>
</module>