Skip to content
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
96b7099
Errata 4794: https://errata.rfc-editor.org/eid4794
kwatsen Jun 5, 2026
fa08374
Errata 4916: https://errata.rfc-editor.org/eid4916
kwatsen Jun 5, 2026
5e65fde
Errata 5274: https://errata.rfc-editor.org/eid5274
kwatsen Jun 5, 2026
c68ca42
Errata 5489: https://errata.rfc-editor.org/eid5489
kwatsen Jun 5, 2026
a769fbf
Errata 5517: https://errata.rfc-editor.org/eid5517
kwatsen Jun 5, 2026
871bb93
Errata 5807: https://errata.rfc-editor.org/eid5807
kwatsen Jun 5, 2026
224f442
Errata 6078: https://errata.rfc-editor.org/eid6078
kwatsen Jun 5, 2026
872881c
Errata 6258: https://errata.rfc-editor.org/eid6258
kwatsen Jun 5, 2026
36e3ca0
Errata 6570: https://errata.rfc-editor.org/eid6570
kwatsen Jun 5, 2026
ecf32cb
Errata 5237: https://errata.rfc-editor.org/eid5237
kwatsen Jun 5, 2026
845127f
Errata 5698: https://errata.rfc-editor.org/eid5698
kwatsen Jun 5, 2026
f30aeee
Errata 6655: https://errata.rfc-editor.org/eid6655
kwatsen Jun 5, 2026
e56d3ac
Errata 6952: https://errata.rfc-editor.org/eid6952
kwatsen Jun 5, 2026
b5ebe6a
Errata 5617: https://errata.rfc-editor.org/eid5617
kwatsen Jun 5, 2026
1c086ba
Errata 6031: https://errata.rfc-editor.org/eid6031
kwatsen Jun 5, 2026
927a0c5
replaced hardcoded ref to an xref
kwatsen Jun 8, 2026
3e3a557
added oxford comments for Copilot suggestion for consistency. Note, …
kwatsen Jun 8, 2026
193d3b1
clarify the 'requires-instance' default may come from a parent typedef
kwatsen Jun 11, 2026
3449357
improved language from previous commit
kwatsen Jun 12, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 43 additions & 25 deletions draft-yn-netmod-yang2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1991,9 +1991,12 @@ For example, with these modules:
prefix "a";

import b {
revision-date 2015-01-01;
revision-date 2015-01-01;
prefix b;
}
import c {
prefix c;
}
import c;

revision 2015-01-01;

Expand Down Expand Up @@ -2472,11 +2475,11 @@ For example, consider the following definition:
type decimal64 {
fraction-digits 18;
}
must ". <= 10";
must ". <= 9";
}
]]></artwork>
<t>
An instance of the "lxiv" leaf having the value of 10.0000000000000001
An instance of the "lxiv" leaf having the value of 9.0000000000000001
will then successfully pass validation.
</t>
<section anchor="xpath-context" numbered="true" toc="default">
Expand Down Expand Up @@ -2678,7 +2681,7 @@ The accessible tree for a notification "down" on /a/b[id="2"] is:
<t>
The accessible tree for an action invocation of "reset" on
⁠/a⁠/b[id="1"]
with the "when" parameter set to "10" would be:
with the "delay" parameter set to "10" would be:
</t>
<artwork name="" type="" align="left" alt=""><![CDATA[
<a xmlns="urn:example:a">
Expand Down Expand Up @@ -4146,10 +4149,10 @@ passed as &lt;error‑app‑tag&gt; in the &lt;rpc‑error&gt; in NETCONF.
leaf ifMTU {
type uint32;
}
must 'ifType != "ethernet" or ifMTU = 1500' {
must 'string(ifType) != "ethernet" or ifMTU = 1500' {
error-message "An Ethernet MTU must be 1500";
}
must 'ifType != "atm" or'
must 'string(ifType) != "atm" or'
+ ' (ifMTU <= 17966 and ifMTU >= 64)' {
error-message "An ATM MTU must be 64 .. 17966";
}
Expand Down Expand Up @@ -7625,15 +7628,17 @@ module:
}
]]></artwork>
<t>
A corresponding XML instance example of the complete notification:
A corresponding XML instance example of the complete notification
follows. This example reports an event for an interface from the
"example-foo" module defined in Section 13.1.1.
</t>
<artwork name="" type="" align="left" alt=""><![CDATA[
<notification
xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0">
<eventTime>2008-07-08T00:01:00Z</eventTime>
<event xmlns="urn:example:event">
<event-class>fault</event-class>
<reporting-entity>
<reporting-entity xmlns:ex="urn:example:foo">
/ex:interface[ex:name='Ethernet0']
</reporting-entity>
<severity>major</severity>
Expand Down Expand Up @@ -7706,7 +7711,7 @@ MUST be used. If the "augment" statement is a substatement to the
</t>
<t>
If the target node is a container, list, case, input, output, or
notification node, the "container", "leaf", "list", "leaf‑list",
notification node, the "anydata", "anyxml", "container", "leaf", "list", "leaf‑list",
"uses", and "choice" statements can be used within the "augment"
statement.
</t>
Expand Down Expand Up @@ -8544,7 +8549,7 @@ statement. The properties to replace MUST exist in the target node.
</t>
<t>
The argument "delete" deletes properties from the target node. The
properties to delete are identified by substatements to the "delete"
properties to delete are identified by substatements to the "deviate"
statement. The substatement's keyword MUST match a corresponding
keyword in the target node, and the argument's string MUST be equal to
the corresponding keyword's argument string in the target node.
Expand Down Expand Up @@ -8834,9 +8839,9 @@ context, in addition to the definition in <xref target="xpath-context" format="d
<t>
If the "when" statement is a child of an "augment" statement, then
the context node is the augment's target node in the data tree, if
the target node is a data node. Otherwise, the context node is the
the target node is a data node, rpc, action, or notification. Otherwise, the context node is the
closest ancestor node to the target node that is also a data
node. If no such node exists, the context node is the root node.
node, rpc, action, or notification. If no such node exists, the context node is the root node.
The accessible tree is tentatively altered during the
processing of the XPath expression by removing all instances (if
any) of the nodes added by the "augment" statement.
Expand All @@ -8846,7 +8851,7 @@ any) of the nodes added by the "augment" statement.
<t>
If the "when" statement is a child of a "uses", "choice", or "case"
statement, then the context node is the closest ancestor node to the
node with the "when" statement that is also a data node. If no
node with the "when" statement that is also a data node, rpc, action, or notification. If no
such node exists, the context node is the root node.
Comment thread
kwatsen marked this conversation as resolved.
The accessible tree is tentatively altered during the
processing of the XPath expression by removing all instances (if
Expand Down Expand Up @@ -10355,9 +10360,12 @@ which the "path" statement is defined.
<name>The "require-instance" Statement</name>
<t>
The "require‑instance" statement, which is a substatement to the
"type" statement, MAY be present if the type is "instance‑identifier"
or "leafref". It takes as an argument the string "true" or "false".
If this statement is not present, it defaults to "true".
"type" statement, MAY be present if the type is "instance‑identifier",
"leafref" or a type derived from them. It takes as an argument the
string "true" or "false". If this statement is not present, it
defaults to "true". Tn the case the type is derived, it defaults
to the value specified by the closest parent type having the value
set, if any, else it defaults to "true".
</t>
<t>
If "require‑instance" is "true", it means that the instance being
Expand Down Expand Up @@ -11158,10 +11166,10 @@ submodule.
]]></artwork>
<t>
The derived-from-or-self() function returns "true" if any node in the
argument "nodes" is a node of type "identityref" and
its value is an identity that is equal to or derived from
(see <xref target="base" format="default"/>) the identity "identity"; otherwise,
it returns "false".
argument "nodes" is a node of type "identityref" or a type derived
from "identityref", and its value is an identity that is equal to or
derived from (see <xref target="base" format="default"/>) the identity "identity";
otherwise, it returns "false".
</t>
<t>
The parameter "identity" is a string matching the rule
Expand All @@ -11179,7 +11187,7 @@ The module defined in <xref target="derived-from-ex" format="default"/> might al
</t>
<artwork name="" type="" align="left" alt=""><![CDATA[
augment "/interface" {
when 'derived-from-or-self(type, "exif:fast-ethernet");
when 'derived-from-or-self(type, "exif:fast-ethernet")';
// Fast-Ethernet-specific definitions here
}
]]></artwork>
Expand Down Expand Up @@ -11264,7 +11272,7 @@ If an interface has this leaf:
leaf flags {
type bits {
bit UP;
bit PROMISCUOUS
bit PROMISCUOUS;
bit DISABLED;
}
}
Expand Down Expand Up @@ -11402,7 +11410,7 @@ provided there is at least one "base" statement left.
</li>
<li>
<t>
New typedefs, groupings, rpcs, notifications, extensions, features,
New typedefs, groupings, rpcs, actions, notifications, extensions, features,
and identities may be added.
</t>
</li>
Expand Down Expand Up @@ -12948,7 +12956,17 @@ quoted-string = (DQUOTE string DQUOTE) / (SQUOTE string SQUOTE)
path-arg-str = < a string that matches the rule >
< path-arg >

path-arg = absolute-path / relative-path
path-arg = deref-expr / path-str

deref-expr = deref-function-invocation *WSP "/" *WSP
relative-path

path-str = absolute-path / relative-path

deref-function-invocation = deref-keyword *WSP
"(" *WSP path-str *WSP ")"

deref-keyword = %s"deref"

absolute-path = 1*("/" (node-identifier *path-predicate))

Expand Down
Loading