summaryrefslogtreecommitdiff
path: root/yang
diff options
context:
space:
mode:
authorNathan Bahr <nbahr@atcorp.com>2024-09-17 02:10:03 +0000
committerNathan Bahr <nbahr@atcorp.com>2024-09-24 16:39:17 +0000
commit3b323fc441451e109e5f2b2d31b26a8002caf5c4 (patch)
tree2b0508da2a9e9b950086047e2deab7eb1af9d927 /yang
parentf182255c0f030761362560ee7342ae7627991efd (diff)
pimd,yang: Implement AutoRP CLI and NB config path
New CLI commands added: router pim [vrf NAME] autorp discovery autorp announce RP-ADDR [GROUP | group-list PREFIX-LIST] autorp announce {scope (1-255) | interval (1-65535) | holdtime (0-65535)} autorp discovery Enables Auto RP discovery for learning dynamic RP information using the AutoRP protocol. autorp announce RP-ADDR [GROUP | group-list PREFIX-LIST] Enable announcements of a candidate RP with the given group range, or prefix list of group ranges, to an AutoRP mapping agent. autorp announce {scope (1-255) | interval (1-65535) | holdtime (0-65535)} Configure the parameters of the AutoRP announcement messages. The scope sets the packet TTL. The interval sets the time between TX of announcements. The holdtime sets the hold time in the message, the time the mapping agent should wait before invalidating the candidate RP information. debug pim autorp Enable debug logging of the AutoRP protocol show ip pim [vrf NAME] autorp [json] Show details of the AutoRP protocol. To view learned RP info, use the existing command 'show ip pim rp-info' Extend pim yang for new configuration: augment /frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/frr-pim:pim/frr-pim:address-family: +--rw rp +--rw auto-rp +--rw discovery-enabled? boolean +--rw announce-scope? uint8 +--rw announce-interval? uint16 +--rw announce-holdtime? uint16 +--rw candidate-rp-list* [rp-address] +--rw rp-address inet:ip-address +--rw (group-or-prefix-list)? +--:(group) | +--rw group? frr-route-types:ip-multicast-group-prefix +--:(prefix-list) +--rw prefix-list? plist-ref Signed-off-by: Nathan Bahr <nbahr@atcorp.com>
Diffstat (limited to 'yang')
-rw-r--r--yang/frr-pim-rp.yang71
1 files changed, 71 insertions, 0 deletions
diff --git a/yang/frr-pim-rp.yang b/yang/frr-pim-rp.yang
index 4cc214135d..dbd5513ee5 100644
--- a/yang/frr-pim-rp.yang
+++ b/yang/frr-pim-rp.yang
@@ -111,6 +111,70 @@ module frr-pim-rp {
} // static-rp
} // static-rp-container
+ grouping auto-rp-container {
+ description
+ "Grouping of AutoRP container.";
+
+ container auto-rp {
+ description
+ "Containing AutoRP attributes.";
+
+ leaf discovery-enabled {
+ type boolean;
+ description
+ "Flag indicating if Auto RP discovery is enabled.";
+ }
+
+ leaf announce-scope {
+ type uint8;
+ description
+ "The TTL of the C-RP Announcement packet.";
+ }
+
+ leaf announce-interval {
+ type uint16;
+ description
+ "The time between sending C-RP announcement packets.";
+ }
+
+ leaf announce-holdtime {
+ type uint16;
+ description
+ "The hold time in seconds advertised in the announcement packet.";
+ }
+
+ list candidate-rp-list {
+ key "rp-address";
+ description
+ "A list of Candidate RP addresses.";
+
+ leaf rp-address {
+ type inet:ip-address;
+ description
+ "Specifies a candidate RP address.";
+ }
+
+ choice group-or-prefix-list {
+ description "Use group or prefix-list";
+ case group {
+ leaf group {
+ type frr-route-types:ip-multicast-group-prefix;
+ description
+ "Multicast group prefix.";
+ }
+ }
+ case prefix-list {
+ leaf prefix-list {
+ type plist-ref;
+ description
+ "Group prefix-list filter";
+ }
+ }
+ }
+ } // candidate-rp-list
+ } // auto-rp
+ } // auto-rp-container
+
/*
* Configuration data nodes
*/
@@ -123,6 +187,13 @@ module frr-pim-rp {
description
"PIM RP configuration data.";
uses static-rp-container;
+
+ uses auto-rp-container {
+ when "../frr-pim:address-family = 'frr-rt:ipv4'" {
+ description
+ "Only applicable to IPv4 address family.";
+ }
+ }
} // rp
} // augment
}