1 module config-test-rpc {
2 namespace "urn:opendaylight:params:xml:ns:yang:controller:md:sal:test:rpc:config:defs";
11 description "Test model containing hacked definition of rpc edit-config and definitions for
12 get and get-config rpc operations.
13 The rpc definition is copied from rfc 6241 Appendix C: http://tools.ietf.org/html/rfc6241#appendix-C";
16 description "Initial revision.";
19 extension get-filter-element-attributes {
21 "If this extension is present within an 'anyxml'
22 statement named 'filter', which must be conceptually
23 defined within the RPC input section for the <get>
24 and <get-config> protocol operations, then the
25 following unqualified XML attribute is supported
26 within the <filter> element, within a <get> or
27 <get-config> protocol operation:
29 type : optional attribute with allowed
30 value strings 'subtree' and 'xpath'.
31 If missing, the default value is 'subtree'.
33 If the 'xpath' feature is supported, then the
34 following unqualified XML attribute is
37 select: optional attribute containing a
38 string representing an XPath expression.
39 The 'type' attribute must be equal to 'xpath'
40 if this attribute is present.";
45 feature writable-running;
49 description "The <edit-config> operation loads all or part of a specified
50 configuration to the specified target configuration.";
52 reference "RFC 6241, Section 7.2";
56 description "Particular configuration to edit.";
58 choice config-target {
60 description "The configuration target.";
65 description "The candidate configuration is the config target.";
69 if-feature writable-running;
71 description "The running configuration is the config source.";
78 description "The content for the edit operation.";
82 "Inline Config content.";
89 "URL-based config content.";
97 "Retrieve all or part of a specified configuration.";
99 reference "RFC 6241, Section 7.1";
103 description "Particular configuration to retrieve.";
105 choice config-source {
108 "The configuration to retrieve.";
110 if-feature candidate;
113 "The candidate configuration is the config source.";
118 "The running configuration is the config source.";
124 "The startup configuration is the config source.
125 This is optional-to-implement on the server because
126 not all servers will support filtering for this
133 description "Subtree or XPath filter to use.";
134 rpc:get-filter-element-attributes;
141 "Copy of the source datastore subset that matched
142 the filter criteria (if any). An empty data container
143 indicates that the request did not produce any results.";
149 description "Retrieve running configuration and device state information.";
151 reference "RFC 6241, Section 7.7";
156 "This parameter specifies the portion of the system
157 configuration and state data to retrieve.";
158 rpc:get-filter-element-attributes;
165 "Copy of the running datastore subset and/or state
166 data that matched the filter criteria (if any).
167 An empty data container indicates that the request did not
168 produce any results.";
173 rpc discard-changes {
174 if-feature candidate;
177 "Revert the candidate configuration to the current
178 running configuration.";
179 reference "RFC 6241, Section 8.3.4.2";