diff options
author | demx8as6 <martin.skorupski@highstreet-technologies.com> | 2018-07-06 10:27:37 +0200 |
---|---|---|
committer | Timoney, Dan (dt5972) <dt5972@att.com> | 2018-07-11 16:53:59 -0400 |
commit | 9872fa0a158c347d7bdfa72c4e0da06576b297b1 (patch) | |
tree | a2bc415665356bf06ebd4d6f4fdac7277da5141d /sdnr/model/yang/ietf-netconf-partial-lock@2009-10-19.yang | |
parent | 60315525ab5e7c12a9f47c409092e8dba6ad656d (diff) |
Add YANG modules used by SDN-R apps
Applications of wireless artifacts supports a couple of YANG modules
from various SDOs. Most of them might be "learnt" by ODL (CCSDK) when
connecting the frist time to a NetConf Server during handshake,
(HELLO-MESSAGE). APIs based on YANG modules might be used south-
bound and northbound.
Issue-ID: CCSDK-352
Change-Id: I8785148c1f9473c7c006255d718a1fbaf950164c
Signed-off-by: demx8as6 <martin.skorupski@highstreet-technologies.com>
Diffstat (limited to 'sdnr/model/yang/ietf-netconf-partial-lock@2009-10-19.yang')
-rw-r--r-- | sdnr/model/yang/ietf-netconf-partial-lock@2009-10-19.yang | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/sdnr/model/yang/ietf-netconf-partial-lock@2009-10-19.yang b/sdnr/model/yang/ietf-netconf-partial-lock@2009-10-19.yang new file mode 100644 index 00000000..13658ac5 --- /dev/null +++ b/sdnr/model/yang/ietf-netconf-partial-lock@2009-10-19.yang @@ -0,0 +1,83 @@ +module ietf-netconf-partial-lock { + + namespace urn:ietf:params:xml:ns:netconf:partial-lock:1.0; + prefix pl; + + // needed to force data type of select string to be corect + import ietf-yang-types { prefix yang; } + + organization "IETF Network Configuration (netconf) Working Group"; + + contact + "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"; + + description + "This YANG module defines the <partial-lock> and + <partial-unlock> operations."; + + revision 2009-10-19 { + description + "Initial version, published as RFC 5717."; + } + + typedef lock-id-type { + type uint32; + description + "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."; + } + + rpc partial-lock { + description + "A NETCONF operation that locks parts of the running datastore."; + input { + leaf-list select { + //type string; + type yang:xpath1.0; + min-elements 1; + description + "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."; + } + } + output { + leaf lock-id { + type lock-id-type; + mandatory true; + description + "Identifies the lock, if granted. The lock-id SHOULD be + used in the partial-unlock rpc."; + } + leaf-list locked-node { + type instance-identifier; + min-elements 1; + description + "List of locked nodes in the running datastore"; + } + } + } + + rpc partial-unlock { + description + "A NETCONF operation that releases a previously acquired + partial-lock."; + input { + leaf lock-id { + type lock-id-type; + mandatory true; + description + "Identifies the lock to be released. MUST be the value + received in the response to a partial-lock operation."; + } + } + } +}
\ No newline at end of file |