diff options
author | sarita patra <saritap@vmware.com> | 2021-12-15 14:24:51 +0100 |
---|---|---|
committer | sarita patra <saritap@vmware.com> | 2022-01-13 11:50:49 +0100 |
commit | 698f414748281d951616ce7336fd4f06e4f9fc39 (patch) | |
tree | a89fe43cad4578e2ef407f11f7e4777130daab4a /yang | |
parent | Merge pull request #10328 from ton31337/fix/vty_json (diff) | |
download | frr-698f414748281d951616ce7336fd4f06e4f9fc39.tar.xz frr-698f414748281d951616ce7336fd4f06e4f9fc39.zip |
pim: Northbound changes accomodating IPV4 address family
frr-pim.yang, created a list of address family under pim
container. For PIMV4 the key is IPV4, where as for PIMV6
the key is IPV6. This is done for PIMV6 development.
This commit will have all the northbound changes to support
IPV4 address family.
Signed-off-by: sarita patra <saritap@vmware.com>
Diffstat (limited to 'yang')
-rw-r--r-- | yang/frr-pim.yang | 153 |
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; } } } |