blob: 31b6e73a5c225ebe23a41b06f00168cbc5972054 [file] [log] [blame]
Gaurav Agrawal28920d82017-10-06 17:39:42 +05301module ietf-netconf-partial-lock {
2
3 namespace urn:ietf:params:xml:ns:netconf:partial-lock:1.0;
4 prefix pl;
5
6 organization "IETF Network Configuration (netconf) Working Group";
7
8 contact
9 "Netconf Working Group
10 Mailing list: netconf@ietf.org
11 Web: http://www.ietf.org/html.charters/netconf-charter.html
12
13 Balazs Lengyel
14 Ericsson
15 balazs.lengyel@ericsson.com";
16
17 description
18 "This YANG module defines the <partial-lock> and
19 <partial-unlock> operations.";
20
21 revision 2009-10-19 {
22 description
23 "Initial version, published as RFC 5717.";
24 }
25
26 typedef lock-id-type {
27 type uint32;
28 description
29 "A number identifying a specific partial-lock granted to a session.
30 It is allocated by the system, and SHOULD be used in the
31 partial-unlock operation.";
32 }
33
34 rpc partial-lock {
35 description
36 "A NETCONF operation that locks parts of the running datastore.";
37 input {
38 leaf-list select {
39 type string;
40 min-elements 1;
41 description
42 "XPath expression that specifies the scope of the lock.
43 An Instance Identifier expression MUST be used unless the
44 :xpath capability is supported, in which case any XPath 1.0
45 expression is allowed.";
46 }
47 }
48 output {
49 leaf lock-id {
50 type lock-id-type;
51 description
52 "Identifies the lock, if granted. The lock-id SHOULD be
53 used in the partial-unlock rpc.";
54 }
55 leaf-list locked-node {
56 type instance-identifier;
57 min-elements 1;
58 description
59 "List of locked nodes in the running datastore";
60 }
61 }
62 }
63
64 rpc partial-unlock {
65 description
66 "A NETCONF operation that releases a previously acquired
67 partial-lock.";
68 input {
69 leaf lock-id {
70 type lock-id-type;
71 description
72 "Identifies the lock to be released. MUST be the value
73 received in the response to a partial-lock operation.";
74 }
75 }
76 }
77}