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.";
44 description "The <edit-config> operation loads all or part of a specified
45 configuration to the specified target configuration.";
47 reference "RFC 6241, Section 7.2";
51 description "Particular configuration to edit.";
53 choice config-target {
55 description "The configuration target.";
60 description "The candidate configuration is the config target.";
64 if-feature writable-running;
66 description "The running configuration is the config source.";
73 description "The content for the edit operation.";
77 "Inline Config content.";
84 "URL-based config content.";
92 "Retrieve all or part of a specified configuration.";
94 reference "RFC 6241, Section 7.1";
98 description "Particular configuration to retrieve.";
100 choice config-source {
103 "The configuration to retrieve.";
105 if-feature candidate;
108 "The candidate configuration is the config source.";
113 "The running configuration is the config source.";
119 "The startup configuration is the config source.
120 This is optional-to-implement on the server because
121 not all servers will support filtering for this
128 description "Subtree or XPath filter to use.";
129 get-filter-element-attributes;
136 "Copy of the source datastore subset that matched
137 the filter criteria (if any). An empty data container
138 indicates that the request did not produce any results.";
144 description "Retrieve running configuration and device state information.";
146 reference "RFC 6241, Section 7.7";
151 "This parameter specifies the portion of the system
152 configuration and state data to retrieve.";
153 get-filter-element-attributes;
160 "Copy of the running datastore subset and/or state
161 data that matched the filter criteria (if any).
162 An empty data container indicates that the request did not
163 produce any results.";