summaryrefslogtreecommitdiffstats
path: root/yang
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2019-01-04 22:08:10 +0100
committerRenato Westphal <renato@opensourcerouting.org>2019-01-18 19:15:41 +0100
commit32600a9807fafe113cc332dff1496631269f6a3a (patch)
treed4a4ee480f9c12b13e2181a1fac3ef9a6a40587b /yang
parentripd: add VRF support (diff)
downloadfrr-32600a9807fafe113cc332dff1496631269f6a3a.tar.xz
frr-32600a9807fafe113cc332dff1496631269f6a3a.zip
ripd: 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')
-rw-r--r--yang/frr-ripd.yang136
1 files changed, 68 insertions, 68 deletions
diff --git a/yang/frr-ripd.yang b/yang/frr-ripd.yang
index ca2b76615..e9f2fe0e9 100644
--- a/yang/frr-ripd.yang
+++ b/yang/frr-ripd.yang
@@ -298,83 +298,83 @@ module frr-ripd {
'(./receive = "2" and ./send = "2") or ' +
'(./receive = "1-2" and ./send = "2")';
}
- }
-
- /*
- * 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 RIP neighbor.";
- leaf address {
- type inet:ipv4-address;
- description
- "IP address that a RIP neighbor is using as its
- source address.";
- }
- leaf last-update {
- type yang:date-and-time;
- description
- "The time when the most recent RIP update was
- received from this neighbor.";
- }
- leaf bad-packets-rcvd {
- type yang:counter32;
+ "Neighbor information.";
+ list neighbor {
+ key "address";
description
- "The number of RIP 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 RIP packets, which were ignored for any
- reason (e.g. unknown address family, or invalid
- metric).";
+ "A RIP neighbor.";
+ leaf address {
+ type inet:ipv4-address;
+ description
+ "IP address that a RIP neighbor is using as its
+ source address.";
+ }
+ leaf last-update {
+ type yang:date-and-time;
+ description
+ "The time when the most recent RIP update was
+ received from this neighbor.";
+ }
+ leaf bad-packets-rcvd {
+ type yang:counter32;
+ description
+ "The number of RIP 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 RIP 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 RIP IPv4 route.";
- leaf prefix {
- type inet:ipv4-prefix;
- description
- "IP address (in the form A.B.C.D) and prefix length,
- separated by the slash (/) character. The range of
- values for the prefix-length is 0 to 32.";
- }
- leaf next-hop {
- type inet:ipv4-address;
- description
- "Next hop IPv4 address.";
- }
- leaf interface {
- type string;
+ "Route information.";
+ list route {
+ key "prefix";
description
- "The interface that the route uses.";
- }
- leaf metric {
- type uint8 {
- range "0..16";
+ "A RIP IPv4 route.";
+ leaf prefix {
+ type inet:ipv4-prefix;
+ description
+ "IP address (in the form A.B.C.D) and prefix length,
+ separated by the slash (/) character. The range of
+ values for the prefix-length is 0 to 32.";
+ }
+ leaf next-hop {
+ type inet:ipv4-address;
+ description
+ "Next hop IPv4 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.";
}
}
}