summaryrefslogtreecommitdiff
path: root/yang/frr-ripngd.yang
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2019-01-04 19:08:10 -0200
committerRenato Westphal <renato@opensourcerouting.org>2019-01-18 16:15:41 -0200
commit80cf4e451db10daf78d277f36a97ece1615f0450 (patch)
treee160f0a7aec8e0c59d5da3e142930abcc9dfb8b7 /yang/frr-ripngd.yang
parentdde7b15b83513b5883378ba1d4f2298ef451450b (diff)
ripngd: make YANG operational-data VRF aware too
Move the "state" container into the "instance" list and adapt the code accordingly. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'yang/frr-ripngd.yang')
-rw-r--r--yang/frr-ripngd.yang134
1 files changed, 67 insertions, 67 deletions
diff --git a/yang/frr-ripngd.yang b/yang/frr-ripngd.yang
index 5d6d61564f..6f7773f8ba 100644
--- a/yang/frr-ripngd.yang
+++ b/yang/frr-ripngd.yang
@@ -199,82 +199,82 @@ module frr-ripngd {
"Interval at which RIPng updates are sent.";
}
}
- }
-
- /*
- * Operational data.
- */
- container state {
- config false;
- description
- "Operational data.";
- container neighbors {
+ /*
+ * Operational data.
+ */
+ container state {
+ config false;
description
- "Neighbor information.";
- list neighbor {
- key "address";
+ "Operational data.";
+
+ container neighbors {
description
- "A RIPng neighbor.";
- leaf address {
- type inet:ipv6-address;
- description
- "IPv6 address that a RIPng neighbor is using as its
- source address.";
- }
- leaf last-update {
- type yang:date-and-time;
- description
- "The time when the most recent RIPng update was
- received from this neighbor.";
- }
- leaf bad-packets-rcvd {
- type yang:counter32;
- description
- "The number of RIPng invalid packets received from
- this neighbor which were subsequently discarded
- for any reason (e.g. a version 0 packet, or an
- unknown command type).";
- }
- leaf bad-routes-rcvd {
- type yang:counter32;
+ "Neighbor information.";
+ list neighbor {
+ key "address";
description
- "The number of routes received from this neighbor,
- in valid RIPng packets, which were ignored for any
- reason (e.g. unknown address family, or invalid
- metric).";
+ "A RIPng neighbor.";
+ leaf address {
+ type inet:ipv6-address;
+ description
+ "IPv6 address that a RIPng neighbor is using as its
+ source address.";
+ }
+ leaf last-update {
+ type yang:date-and-time;
+ description
+ "The time when the most recent RIPng update was
+ received from this neighbor.";
+ }
+ leaf bad-packets-rcvd {
+ type yang:counter32;
+ description
+ "The number of RIPng invalid packets received from
+ this neighbor which were subsequently discarded
+ for any reason (e.g. a version 0 packet, or an
+ unknown command type).";
+ }
+ leaf bad-routes-rcvd {
+ type yang:counter32;
+ description
+ "The number of routes received from this neighbor,
+ in valid RIPng packets, which were ignored for any
+ reason (e.g. unknown address family, or invalid
+ metric).";
+ }
}
}
- }
- container routes {
- description
- "Route information.";
- list route {
- key "prefix";
+ container routes {
description
- "A RIPng IPv6 route.";
- leaf prefix {
- type inet:ipv6-prefix;
+ "Route information.";
+ list route {
+ key "prefix";
description
- "IPv6 address and prefix length, in the format
- specified in RFC6991.";
- }
- leaf next-hop {
- type inet:ipv6-address;
- description
- "Next hop IPv6 address.";
- }
- leaf interface {
- type string;
- description
- "The interface that the route uses.";
- }
- leaf metric {
- type uint8 {
- range "0..16";
+ "A RIPng IPv6 route.";
+ leaf prefix {
+ type inet:ipv6-prefix;
+ description
+ "IPv6 address and prefix length, in the format
+ specified in RFC6991.";
+ }
+ leaf next-hop {
+ type inet:ipv6-address;
+ description
+ "Next hop IPv6 address.";
+ }
+ leaf interface {
+ type string;
+ description
+ "The interface that the route uses.";
+ }
+ leaf metric {
+ type uint8 {
+ range "0..16";
+ }
+ description
+ "Route metric.";
}
- description
- "Route metric.";
}
}
}