fix mips runtime by backporting some yang changes from master added commited fixes to 7.3 also add option for snmp support Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
166 lines
4.9 KiB
Diff
166 lines
4.9 KiB
Diff
From b49789f5d32429722542a1a7de4b371b43958a31 Mon Sep 17 00:00:00 2001
|
|
From: Donald Sharp <sharpd@cumulusnetworks.com>
|
|
Date: Wed, 18 Mar 2020 22:30:28 -0400
|
|
Subject: [PATCH] yang: Partially revert code to restore functionality
|
|
|
|
Partially revert code from commit:
|
|
f22b9250853229c93617ffdad139a4762f5f7348
|
|
|
|
since this broke passive-interface, network and offset-list
|
|
commands in rip and ripng
|
|
|
|
Fixes: #6001
|
|
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
|
|
---
|
|
yang/frr-eigrpd.yang | 9 +++------
|
|
yang/frr-ripd.yang | 27 ++++++++++-----------------
|
|
yang/frr-ripngd.yang | 23 +++++++----------------
|
|
3 files changed, 20 insertions(+), 39 deletions(-)
|
|
|
|
diff --git a/yang/frr-eigrpd.yang b/yang/frr-eigrpd.yang
|
|
index 0c62954570..853d823880 100644
|
|
--- a/yang/frr-eigrpd.yang
|
|
+++ b/yang/frr-eigrpd.yang
|
|
@@ -23,11 +23,6 @@ module frr-eigrpd {
|
|
description
|
|
"This module defines a model for managing FRR eigrpd daemon.";
|
|
|
|
- revision 2019-09-09 {
|
|
- description
|
|
- "Changed interface references to use
|
|
- frr-interface:interface-ref typedef";
|
|
- }
|
|
revision 2019-06-19 {
|
|
description "Initial revision.";
|
|
reference
|
|
@@ -99,7 +94,9 @@ module frr-eigrpd {
|
|
|
|
leaf-list passive-interface {
|
|
description "List of suppressed interfaces";
|
|
- type frr-interface:interface-ref;
|
|
+ type string {
|
|
+ length "1..16";
|
|
+ }
|
|
}
|
|
|
|
leaf active-time {
|
|
diff --git a/yang/frr-ripd.yang b/yang/frr-ripd.yang
|
|
index 94a9ebf3e1..07690793f0 100644
|
|
--- a/yang/frr-ripd.yang
|
|
+++ b/yang/frr-ripd.yang
|
|
@@ -24,11 +24,6 @@ module frr-ripd {
|
|
description
|
|
"This module defines a model for managing FRR ripd daemon.";
|
|
|
|
- revision 2019-09-09 {
|
|
- description
|
|
- "Changed interface references to use
|
|
- frr-interface:interface-ref typedef";
|
|
- }
|
|
revision 2017-12-06 {
|
|
description
|
|
"Initial revision.";
|
|
@@ -118,7 +113,9 @@ module frr-ripd {
|
|
"Enable RIP on the specified IP network.";
|
|
}
|
|
leaf-list interface {
|
|
- type frr-interface:interface-ref;
|
|
+ type string {
|
|
+ length "1..16";
|
|
+ }
|
|
description
|
|
"Enable RIP on the specified interface.";
|
|
}
|
|
@@ -127,15 +124,7 @@ module frr-ripd {
|
|
description
|
|
"Offset-list to modify route metric.";
|
|
leaf interface {
|
|
- type union {
|
|
- type frr-interface:interface-ref;
|
|
- type enumeration {
|
|
- enum '*' {
|
|
- description
|
|
- "Match all interfaces.";
|
|
- }
|
|
- }
|
|
- }
|
|
+ type string;
|
|
description
|
|
"Interface to match. Use '*' to match all interfaces.";
|
|
}
|
|
@@ -179,14 +168,18 @@ module frr-ripd {
|
|
}
|
|
leaf-list passive-interface {
|
|
when "../passive-default = 'false'";
|
|
- type frr-interface:interface-ref;
|
|
+ type string {
|
|
+ length "1..16";
|
|
+ }
|
|
description
|
|
"A list of interfaces where the sending of RIP packets
|
|
is disabled.";
|
|
}
|
|
leaf-list non-passive-interface {
|
|
when "../passive-default = 'true'";
|
|
- type frr-interface:interface-ref;
|
|
+ type string {
|
|
+ length "1..16";
|
|
+ }
|
|
description
|
|
"A list of interfaces where the sending of RIP packets
|
|
is enabled.";
|
|
diff --git a/yang/frr-ripngd.yang b/yang/frr-ripngd.yang
|
|
index 831758af86..b341b438a4 100644
|
|
--- a/yang/frr-ripngd.yang
|
|
+++ b/yang/frr-ripngd.yang
|
|
@@ -24,11 +24,6 @@ module frr-ripngd {
|
|
description
|
|
"This module defines a model for managing FRR ripngd daemon.";
|
|
|
|
- revision 2019-09-09 {
|
|
- description
|
|
- "Changed interface references to use
|
|
- frr-interface:interface-ref typedef";
|
|
- }
|
|
revision 2018-11-27 {
|
|
description
|
|
"Initial revision.";
|
|
@@ -76,7 +71,9 @@ module frr-ripngd {
|
|
"Enable RIPng on the specified IPv6 network.";
|
|
}
|
|
leaf-list interface {
|
|
- type frr-interface:interface-ref;
|
|
+ type string {
|
|
+ length "1..16";
|
|
+ }
|
|
description
|
|
"Enable RIPng on the specified interface.";
|
|
}
|
|
@@ -85,15 +82,7 @@ module frr-ripngd {
|
|
description
|
|
"Offset-list to modify route metric.";
|
|
leaf interface {
|
|
- type union {
|
|
- type frr-interface:interface-ref;
|
|
- type enumeration {
|
|
- enum '*' {
|
|
- description
|
|
- "Match all interfaces.";
|
|
- }
|
|
- }
|
|
- }
|
|
+ type string;
|
|
description
|
|
"Interface to match. Use '*' to match all interfaces.";
|
|
}
|
|
@@ -129,7 +118,9 @@ module frr-ripngd {
|
|
}
|
|
}
|
|
leaf-list passive-interface {
|
|
- type frr-interface:interface-ref;
|
|
+ type string {
|
|
+ length "1..16";
|
|
+ }
|
|
description
|
|
"A list of interfaces where the sending of RIPng packets
|
|
is disabled.";
|