mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-30 00:50:03 +00:00
yang: fix YANG lint
Signed-off-by: Christian Hopps <chopps@labn.net>
This commit is contained in:
parent
cf35e49354
commit
01bdc91ef5
@ -60,6 +60,7 @@ module frr-ripd {
|
|||||||
description
|
description
|
||||||
"Changed interface references to use
|
"Changed interface references to use
|
||||||
frr-interface:interface-ref typedef";
|
frr-interface:interface-ref typedef";
|
||||||
|
reference "FRRouting";
|
||||||
}
|
}
|
||||||
revision 2017-12-06 {
|
revision 2017-12-06 {
|
||||||
description
|
description
|
||||||
@ -70,9 +71,7 @@ module frr-ripd {
|
|||||||
}
|
}
|
||||||
|
|
||||||
container ripd {
|
container ripd {
|
||||||
/*
|
description "rip routing instance data";
|
||||||
* Routing instance configuration.
|
|
||||||
*/
|
|
||||||
list instance {
|
list instance {
|
||||||
key "vrf";
|
key "vrf";
|
||||||
description
|
description
|
||||||
@ -229,9 +228,9 @@ module frr-ripd {
|
|||||||
"Redistributes routes learned from other routing protocols.";
|
"Redistributes routes learned from other routing protocols.";
|
||||||
leaf protocol {
|
leaf protocol {
|
||||||
type frr-route-types:frr-route-types-v4;
|
type frr-route-types:frr-route-types-v4;
|
||||||
|
must '. != "rip"';
|
||||||
description
|
description
|
||||||
"Routing protocol.";
|
"Routing protocol.";
|
||||||
must '. != "rip"';
|
|
||||||
}
|
}
|
||||||
leaf route-map {
|
leaf route-map {
|
||||||
type frr-route-map:route-map-ref;
|
type frr-route-map:route-map-ref;
|
||||||
@ -291,11 +290,8 @@ module frr-ripd {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
container version {
|
container version {
|
||||||
|
description "version of rip";
|
||||||
leaf receive {
|
leaf receive {
|
||||||
must
|
|
||||||
'(. = "1" and ../send = "1") or ' +
|
|
||||||
'(. = "2" and ../send = "2") or ' +
|
|
||||||
'(. = "1-2" and ../send = "2")';
|
|
||||||
type enumeration {
|
type enumeration {
|
||||||
enum "1" {
|
enum "1" {
|
||||||
value 1;
|
value 1;
|
||||||
@ -313,15 +309,15 @@ module frr-ripd {
|
|||||||
"Accept both RIPv1 and RIPv2 updates.";
|
"Accept both RIPv1 and RIPv2 updates.";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
must
|
||||||
|
'(. = "1" and ../send = "1") or ' +
|
||||||
|
'(. = "2" and ../send = "2") or ' +
|
||||||
|
'(. = "1-2" and ../send = "2")';
|
||||||
default "1-2";
|
default "1-2";
|
||||||
description
|
description
|
||||||
"Advertisement reception - Version control.";
|
"Advertisement reception - Version control.";
|
||||||
}
|
}
|
||||||
leaf send {
|
leaf send {
|
||||||
must
|
|
||||||
'(../receive = "1" and . = "1") or ' +
|
|
||||||
'(../receive = "2" and . = "2") or ' +
|
|
||||||
'(../receive = "1-2" and . = "2")';
|
|
||||||
type enumeration {
|
type enumeration {
|
||||||
enum "1" {
|
enum "1" {
|
||||||
value 1;
|
value 1;
|
||||||
@ -334,6 +330,10 @@ module frr-ripd {
|
|||||||
"Send RIPv2 updates only.";
|
"Send RIPv2 updates only.";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
must
|
||||||
|
'(../receive = "1" and . = "1") or ' +
|
||||||
|
'(../receive = "2" and . = "2") or ' +
|
||||||
|
'(../receive = "1-2" and . = "2")';
|
||||||
default "2";
|
default "2";
|
||||||
description
|
description
|
||||||
"Advertisement transmission - Version control.";
|
"Advertisement transmission - Version control.";
|
||||||
@ -426,6 +426,7 @@ module frr-ripd {
|
|||||||
* Per-interface configuration data
|
* Per-interface configuration data
|
||||||
*/
|
*/
|
||||||
augment "/frr-interface:lib/frr-interface:interface" {
|
augment "/frr-interface:lib/frr-interface:interface" {
|
||||||
|
description "rip interface data";
|
||||||
container rip {
|
container rip {
|
||||||
description
|
description
|
||||||
"RIP interface parameters.";
|
"RIP interface parameters.";
|
||||||
|
Loading…
Reference in New Issue
Block a user