11<?xml version =" 1.0" encoding =" UTF-8" ?>
22<module name =" ietf-netconf"
33 xmlns =" urn:ietf:params:xml:ns:yang:yin:1"
4- xmlns : nc =" urn:ietf:params:xml:ns:netconf:base:1.0" >
4+ xmlns : nc =" urn:ietf:params:xml:ns:netconf:base:1.0"
5+ xmlns : inet =" urn:ietf:params:xml:ns:yang:ietf-inet-types"
6+ xmlns : nacm =" urn:ietf:params:xml:ns:yang:ietf-netconf-acm" >
7+ <yang-version value =" 1" />
58 <namespace uri =" urn:ietf:params:xml:ns:netconf:base:1.0" />
69 <prefix value =" nc" />
710 <import module =" ietf-inet-types" >
811 <prefix value =" inet" />
912 </import >
13+ <import module =" ietf-netconf-acm" >
14+ <prefix value =" nacm" />
15+ </import >
1016 <organization >
1117 <text >IETF NETCONF (Network Configuration) Working Group</text >
1218 </organization >
1521WG List: < netconf@ietf.org>
1622
1723WG Chair: Bert Wijnen
18- < bertietf@bwijnen.net>
24+ < bertietf@bwijnen.net>
1925
2026WG Chair: Mehmet Ersue
21- < mehmet.ersue@nsn.com>
27+ < mehmet.ersue@nsn.com>
2228
2329Editor: Martin Bjorklund
24- < mbj@tail-f.com>
30+ < mbj@tail-f.com>
2531
2632Editor: Juergen Schoenwaelder
27- < j.schoenwaelder@jacobs-university.de>
33+ < j.schoenwaelder@jacobs-university.de>
2834
2935Editor: Andy Bierman
30- < andy.bierman@brocade.com> </text >
36+ < andy.bierman@brocade.com> </text >
3137 </contact >
3238 <description >
3339 <text >NETCONF Protocol Data Types and Protocol Operations.
@@ -47,7 +53,9 @@ the RFC itself for full legal notices.</text>
4753 </description >
4854 <revision date =" 2011-06-01" >
4955 <description >
50- <text >Initial revision</text >
56+ <text >Initial revision;
57+ 2013-09-29: Updated to include NACM attributes,
58+ as specified in RFC 6536: sec 3.2.5 and 3.2.8</text >
5159 </description >
5260 <reference >
5361 <text >RFC 6241: Network Configuration Protocol</text >
@@ -63,18 +71,18 @@ following unqualified XML attribute is supported
6371within the < filter> element, within a < get> or
6472< get-config> protocol operation:
6573
66- type : optional attribute with allowed
67- value strings 'subtree' and 'xpath'.
68- If missing, the default value is 'subtree'.
74+ type : optional attribute with allowed
75+ value strings 'subtree' and 'xpath'.
76+ If missing, the default value is 'subtree'.
6977
7078If the 'xpath' feature is supported, then the
7179following unqualified XML attribute is
7280also supported:
7381
74- select: optional attribute containing a
75- string representing an XPath expression.
76- The 'type' attribute must be equal to 'xpath'
77- if this attribute is present.</text >
82+ select: optional attribute containing a
83+ string representing an XPath expression.
84+ The 'type' attribute must be equal to 'xpath'
85+ if this attribute is present.</text >
7886 </description >
7987 </extension >
8088 <feature name =" writable-running" >
@@ -191,86 +199,101 @@ this feature must not be enabled.</text>
191199 <typedef name =" error-tag-type" >
192200 <type name =" enumeration" >
193201 <enum name =" in-use" >
202+ <value value =" 0" />
194203 <description >
195204 <text >The request requires a resource that
196205already is in use.</text >
197206 </description >
198207 </enum >
199208 <enum name =" invalid-value" >
209+ <value value =" 1" />
200210 <description >
201211 <text >The request specifies an unacceptable value for one
202212or more parameters.</text >
203213 </description >
204214 </enum >
205215 <enum name =" too-big" >
216+ <value value =" 2" />
206217 <description >
207218 <text >The request or response (that would be generated) is
208219too large for the implementation to handle.</text >
209220 </description >
210221 </enum >
211222 <enum name =" missing-attribute" >
223+ <value value =" 3" />
212224 <description >
213225 <text >An expected attribute is missing.</text >
214226 </description >
215227 </enum >
216228 <enum name =" bad-attribute" >
229+ <value value =" 4" />
217230 <description >
218231 <text >An attribute value is not correct; e.g., wrong type,
219232out of range, pattern mismatch.</text >
220233 </description >
221234 </enum >
222235 <enum name =" unknown-attribute" >
236+ <value value =" 5" />
223237 <description >
224238 <text >An unexpected attribute is present.</text >
225239 </description >
226240 </enum >
227241 <enum name =" missing-element" >
242+ <value value =" 6" />
228243 <description >
229244 <text >An expected element is missing.</text >
230245 </description >
231246 </enum >
232247 <enum name =" bad-element" >
248+ <value value =" 7" />
233249 <description >
234250 <text >An element value is not correct; e.g., wrong type,
235251out of range, pattern mismatch.</text >
236252 </description >
237253 </enum >
238254 <enum name =" unknown-element" >
255+ <value value =" 8" />
239256 <description >
240257 <text >An unexpected element is present.</text >
241258 </description >
242259 </enum >
243260 <enum name =" unknown-namespace" >
261+ <value value =" 9" />
244262 <description >
245263 <text >An unexpected namespace is present.</text >
246264 </description >
247265 </enum >
248266 <enum name =" access-denied" >
267+ <value value =" 10" />
249268 <description >
250269 <text >Access to the requested protocol operation or
251270data model is denied because authorization failed.</text >
252271 </description >
253272 </enum >
254273 <enum name =" lock-denied" >
274+ <value value =" 11" />
255275 <description >
256276 <text >Access to the requested lock is denied because the
257277lock is currently held by another entity.</text >
258278 </description >
259279 </enum >
260280 <enum name =" resource-denied" >
281+ <value value =" 12" />
261282 <description >
262283 <text >Request could not be completed because of
263284insufficient resources.</text >
264285 </description >
265286 </enum >
266287 <enum name =" rollback-failed" >
288+ <value value =" 13" />
267289 <description >
268290 <text >Request to roll back some configuration change (via
269291rollback-on-error or < discard-changes> operations)
270292was not completed for some reason.</text >
271293 </description >
272294 </enum >
273295 <enum name =" data-exists" >
296+ <value value =" 14" />
274297 <description >
275298 <text >Request could not be completed because the relevant
276299data model content already exists. For example,
@@ -279,6 +302,7 @@ already exists.</text>
279302 </description >
280303 </enum >
281304 <enum name =" data-missing" >
305+ <value value =" 15" />
282306 <description >
283307 <text >Request could not be completed because the relevant
284308data model content does not exist. For example,
@@ -287,25 +311,29 @@ data that does not exist.</text>
287311 </description >
288312 </enum >
289313 <enum name =" operation-not-supported" >
314+ <value value =" 16" />
290315 <description >
291316 <text >Request could not be completed because the requested
292317operation is not supported by this implementation.</text >
293318 </description >
294319 </enum >
295320 <enum name =" operation-failed" >
321+ <value value =" 17" />
296322 <description >
297323 <text >Request could not be completed because the requested
298324operation failed for some reason not covered by
299325any other error condition.</text >
300326 </description >
301327 </enum >
302328 <enum name =" partial-operation" >
329+ <value value =" 18" />
303330 <description >
304331 <text >This error-tag is obsolete, and SHOULD NOT be sent
305332by servers conforming to this document.</text >
306333 </description >
307334 </enum >
308335 <enum name =" malformed-message" >
336+ <value value =" 19" />
309337 <description >
310338 <text >A message could not be handled because it failed to
311339be parsed correctly. For example, the message is not
@@ -323,11 +351,13 @@ well-formed XML or it uses an invalid character set.</text>
323351 <typedef name =" error-severity-type" >
324352 <type name =" enumeration" >
325353 <enum name =" error" >
354+ <value value =" 0" />
326355 <description >
327356 <text >Error severity</text >
328357 </description >
329358 </enum >
330359 <enum name =" warning" >
360+ <value value =" 1" />
331361 <description >
332362 <text >Warning severity</text >
333363 </description >
@@ -343,6 +373,7 @@ well-formed XML or it uses an invalid character set.</text>
343373 <typedef name =" edit-operation-type" >
344374 <type name =" enumeration" >
345375 <enum name =" merge" >
376+ <value value =" 0" />
346377 <description >
347378 <text >The configuration data identified by the
348379element containing this attribute is merged
@@ -352,6 +383,7 @@ by the target parameter.</text>
352383 </description >
353384 </enum >
354385 <enum name =" replace" >
386+ <value value =" 1" />
355387 <description >
356388 <text >The configuration data identified by the element
357389containing this attribute replaces any related
@@ -365,6 +397,7 @@ actually present in the config parameter is affected.</text>
365397 </description >
366398 </enum >
367399 <enum name =" create" >
400+ <value value =" 2" />
368401 <description >
369402 <text >The configuration data identified by the element
370403containing this attribute is added to the
@@ -376,6 +409,7 @@ datastore. If the configuration data exists, an
376409 </description >
377410 </enum >
378411 <enum name =" delete" >
412+ <value value =" 3" />
379413 <description >
380414 <text >The configuration data identified by the element
381415containing this attribute is deleted from the
@@ -387,6 +421,7 @@ an <error-tag> value of 'data-missing'.</text>
387421 </description >
388422 </enum >
389423 <enum name =" remove" >
424+ <value value =" 4" />
390425 <description >
391426 <text >The configuration data identified by the element
392427containing this attribute is deleted from the
@@ -449,10 +484,10 @@ datastore.</text>
449484 </choice >
450485 </container >
451486 <anyxml name =" filter" >
487+ <nc : get-filter-element-attributes />
452488 <description >
453489 <text >Subtree or XPath filter to use.</text >
454490 </description >
455- <nc : get-filter-element-attributes />
456491 </anyxml >
457492 </input >
458493 <output >
@@ -502,16 +537,19 @@ configuration to the specified target configuration.</text>
502537 <leaf name =" default-operation" >
503538 <type name =" enumeration" >
504539 <enum name =" merge" >
540+ <value value =" 0" />
505541 <description >
506542 <text >The default operation is merge.</text >
507543 </description >
508544 </enum >
509545 <enum name =" replace" >
546+ <value value =" 1" />
510547 <description >
511548 <text >The default operation is replace.</text >
512549 </description >
513550 </enum >
514551 <enum name =" none" >
552+ <value value =" 2" />
515553 <description >
516554 <text >There is no default operation.</text >
517555 </description >
@@ -526,16 +564,19 @@ configuration to the specified target configuration.</text>
526564 <if-feature name =" validate" />
527565 <type name =" enumeration" >
528566 <enum name =" test-then-set" >
567+ <value value =" 0" />
529568 <description >
530569 <text >The server will test and then set if no errors.</text >
531570 </description >
532571 </enum >
533572 <enum name =" set" >
573+ <value value =" 1" />
534574 <description >
535575 <text >The server will set without a test first.</text >
536576 </description >
537577 </enum >
538578 <enum name =" test-only" >
579+ <value value =" 2" />
539580 <description >
540581 <text >The server will only test and not set, even
541582if there are no errors.</text >
@@ -550,16 +591,19 @@ if there are no errors.</text>
550591 <leaf name =" error-option" >
551592 <type name =" enumeration" >
552593 <enum name =" stop-on-error" >
594+ <value value =" 0" />
553595 <description >
554596 <text >The server will stop on errors.</text >
555597 </description >
556598 </enum >
557599 <enum name =" continue-on-error" >
600+ <value value =" 1" />
558601 <description >
559602 <text >The server may continue on errors.</text >
560603 </description >
561604 </enum >
562605 <enum name =" rollback-on-error" >
606+ <value value =" 2" />
563607 <description >
564608 <text >The server will roll back on errors.
565609This value can only be used if the 'rollback-on-error'
@@ -689,6 +733,7 @@ a subset of the running datastore.</text>
689733 </input >
690734 </rpc >
691735 <rpc name =" delete-config" >
736+ <nacm : default-deny-all />
692737 <description >
693738 <text >Delete a configuration datastore.</text >
694739 </description >
@@ -816,11 +861,11 @@ previously obtained with the 'lock' operation.</text>
816861 </reference >
817862 <input >
818863 <anyxml name =" filter" >
864+ <nc : get-filter-element-attributes />
819865 <description >
820866 <text >This parameter specifies the portion of the system
821867configuration and state data to retrieve.</text >
822868 </description >
823- <nc : get-filter-element-attributes />
824869 </anyxml >
825870 </input >
826871 <output >
@@ -843,6 +888,7 @@ produce any results.</text>
843888 </reference >
844889 </rpc >
845890 <rpc name =" kill-session" >
891+ <nacm : default-deny-all />
846892 <description >
847893 <text >Force the termination of a NETCONF session.</text >
848894 </description >
0 commit comments