summaryrefslogtreecommitdiffstats
path: root/yang
diff options
context:
space:
mode:
Diffstat (limited to 'yang')
-rw-r--r--yang/frr-pim.yang153
1 files changed, 76 insertions, 77 deletions
diff --git a/yang/frr-pim.yang b/yang/frr-pim.yang
index 109ce2230..08bc9ce0a 100644
--- a/yang/frr-pim.yang
+++ b/yang/frr-pim.yang
@@ -56,7 +56,7 @@ module frr-pim {
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.";
- revision 2017-03-09 {
+ revision 2021-11-22 {
description
"Initial revision.";
reference
@@ -77,43 +77,6 @@ module frr-pim {
* Groupings
*/
- grouping global-pim-config-attributes {
- description
- "A grouping defining pim global attributes.";
-
- leaf ecmp {
- type boolean;
- default "false";
- description
- "Enable PIM ECMP.";
- }
-
- leaf ecmp-rebalance {
- type boolean;
- default "false";
- description
- "Enable PIM ECMP Rebalance.";
- }
-
- leaf keep-alive-timer {
- type uint16 {
- range "1..max";
- }
- default "210";
- description
- "Keep alive Timer in seconds.";
- }
-
- leaf rp-keep-alive-timer {
- type uint16 {
- range "1..max";
- }
- default "210";
- description
- "RP keep alive Timer in seconds.";
- }
- }
-
grouping msdp-timers {
leaf hold-time {
type uint16 {
@@ -154,10 +117,42 @@ module frr-pim {
}
}
- grouping per-af-global-pim-config-attributes {
+ grouping global-pim-config-attributes {
description
"A grouping defining per address family pim global attributes";
+ leaf ecmp {
+ type boolean;
+ default "false";
+ description
+ "Enable PIM ECMP.";
+ }
+
+ leaf ecmp-rebalance {
+ type boolean;
+ default "false";
+ description
+ "Enable PIM ECMP Rebalance.";
+ }
+
+ leaf keep-alive-timer {
+ type uint16 {
+ range "1..max";
+ }
+ default "210";
+ description
+ "Keep alive Timer in seconds.";
+ }
+
+ leaf rp-keep-alive-timer {
+ type uint16 {
+ range "1..max";
+ }
+ default "210";
+ description
+ "RP keep alive Timer in seconds.";
+ }
+
leaf send-v6-secondary {
when "../frr-pim:address-family = 'frr-rt:ipv4'" {
description
@@ -326,11 +321,11 @@ module frr-pim {
description
"Only accept registers from a specific source prefix list.";
}
- } // per-af-global-pim-config-attributes
+ } // global-pim-config-attributes
grouping interface-pim-config-attributes {
description
- "A grouping defining pim interface attributes.";
+ "A grouping defining pim interface attributes per address family.";
leaf pim-enable {
type boolean;
@@ -426,11 +421,6 @@ module frr-pim {
description
"DR (Designated Router) priority";
}
- } // interface-pim-config-attributes
-
- grouping per-af-interface-pim-config-attributes {
- description
- "A grouping defining pim interface attributes per address family.";
leaf use-source {
type inet:ip-address;
@@ -467,7 +457,36 @@ module frr-pim {
"Multicast group address.";
}
}
- } // per-af-interface-pim-config-attributes
+ } // interface-pim-config-attributes
+
+ grouping router-pim-config-attributes {
+ description
+ "A grouping defining pim router attributes per address family.";
+ leaf packets {
+ type uint8 {
+ range "1..max";
+ }
+ default "3";
+ description
+ "Number of packets to process at one time per fd.";
+ }
+ leaf join-prune-interval {
+ type uint16 {
+ range "1..max";
+ }
+ default "60";
+ description
+ "Join Prune Send Interval in seconds.";
+ }
+ leaf register-suppress-time {
+ type uint16 {
+ range "1..max";
+ }
+ default "60";
+ description
+ "Register Suppress Timer.";
+ }
+ }
/*
* Global Configuration data nodes
@@ -482,15 +501,12 @@ module frr-pim {
}
description
"PIM configuration data.";
-
- uses global-pim-config-attributes;
-
list address-family {
key "address-family";
description
"Each list entry for one address family.";
uses frr-rt:address-family;
- uses per-af-global-pim-config-attributes;
+ uses global-pim-config-attributes;
} //address-family
} // pim
@@ -501,45 +517,28 @@ module frr-pim {
*/
augment "/frr-interface:lib/frr-interface:interface" {
container pim {
- presence
- "Configure PIM on an interface.";
- uses interface-pim-config-attributes;
list address-family {
key "address-family";
description
"Each list entry for one address family.";
uses frr-rt:address-family;
- uses per-af-interface-pim-config-attributes;
+ uses interface-pim-config-attributes;
}
}
}
+ /*
+ * Router configuration data
+ */
container pim {
description
"PIM router parameters.";
- leaf packets {
- type uint8 {
- range "1..max";
- }
- default "3";
+ list address-family {
+ key "address-family";
description
- "Number of packets to process at one time per fd.";
- }
- leaf join-prune-interval {
- type uint16 {
- range "1..max";
- }
- default "60";
- description
- "Join Prune Send Interval in seconds.";
- }
- leaf register-suppress-time {
- type uint16 {
- range "1..max";
- }
- default "60";
- description
- "Register Suppress Timer.";
+ "Each list entry for one address family.";
+ uses frr-rt:address-family;
+ uses router-pim-config-attributes;
}
}
}