]> git.puffer.fish Git - matthieu/frr.git/commitdiff
pimd: fix dr-priority range
authorDavid Lamparter <equinox@opensourcerouting.org>
Fri, 14 Apr 2023 15:17:27 +0000 (17:17 +0200)
committerJafar Al-Gharaibeh <jafar@atcorp.com>
Fri, 10 May 2024 21:06:28 +0000 (16:06 -0500)
0 is a valid DR priority.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
(cherry picked from commit b564c1d890aef75067db22df09e608faf72b99f5)

doc/user/pim.rst
doc/user/pimv6.rst
pimd/pim6_cmd.c
pimd/pim_cmd.c
yang/frr-pim.yang

index 44ade916a2227869dd42ba815e852686a9120c40..29194663e33a487cc2859bfa3eb39ffe2117e778 100644 (file)
@@ -212,7 +212,7 @@ is in a vrf, enter the interface command with the vrf keyword at the end.
    messages. This is enabled by default. 'no' form of this command is used to
    restrict processing of unicast bsm messages on this interface.
 
-.. clicmd:: ip pim drpriority (1-4294967295)
+.. clicmd:: ip pim drpriority (0-4294967295)
 
    Set the DR Priority for the interface. This command is useful to allow the
    user to influence what node becomes the DR for a lan segment.
index 843734e217193e90d3c5bcb7c74124ea41c5e3cb..46d22143fa37d8c9fb329424ece12c7ba552705c 100644 (file)
@@ -136,7 +136,7 @@ is in a vrf, enter the interface command with the vrf keyword at the end.
    command will not do anything if you do not have the underlying ability
    of a mlag implementation.
 
-.. clicmd:: ipv6 pim drpriority (1-4294967295)
+.. clicmd:: ipv6 pim drpriority (0-4294967295)
 
    Set the DR Priority for the interface. This command is useful to allow the
    user to influence what node becomes the DR for a lan segment.
index dc84de6bfd6377da01857d8b7dfa751fa83d5d33..32996e6e2a03d6c7048752d36844d9b0f7fe6c63 100644 (file)
@@ -259,7 +259,7 @@ DEFPY (interface_no_ipv6_pim,
 
 DEFPY (interface_ipv6_pim_drprio,
        interface_ipv6_pim_drprio_cmd,
-       "ipv6 pim drpriority (1-4294967295)",
+       "ipv6 pim drpriority (0-4294967295)",
        IPV6_STR
        PIM_STR
        "Set the Designated Router Election Priority\n"
@@ -270,7 +270,7 @@ DEFPY (interface_ipv6_pim_drprio,
 
 DEFPY (interface_no_ipv6_pim_drprio,
        interface_no_ipv6_pim_drprio_cmd,
-       "no ipv6 pim drpriority [(1-4294967295)]",
+       "no ipv6 pim drpriority [(0-4294967295)]",
        NO_STR
        IPV6_STR
        PIM_STR
index c2f7396c180e75fa392616cc26ca17918d414bf3..2a46c5eafe516ddb517ae9d7448245bf7d1c2896 100644 (file)
@@ -4052,7 +4052,7 @@ DEFUN (interface_no_ip_igmp_last_member_query_interval,
 
 DEFUN (interface_ip_pim_drprio,
        interface_ip_pim_drprio_cmd,
-       "ip pim drpriority (1-4294967295)",
+       "ip pim drpriority (0-4294967295)",
        IP_STR
        PIM_STR
        "Set the Designated Router Election Priority\n"
@@ -4065,7 +4065,7 @@ DEFUN (interface_ip_pim_drprio,
 
 DEFUN (interface_no_ip_pim_drprio,
        interface_no_ip_pim_drprio_cmd,
-       "no ip pim drpriority [(1-4294967295)]",
+       "no ip pim drpriority [(0-4294967295)]",
        NO_STR
        IP_STR
        PIM_STR
index 9e40d786020f11f2d077b4e9bec75ce3c2ee5f97..b5c4d3501eb8c521e538cc2f5c7adb826e86738f 100644 (file)
@@ -421,9 +421,7 @@ module frr-pim {
     }
 
     leaf dr-priority {
-      type uint32 {
-        range "1..max";
-      }
+      type uint32;
       default 1;
       description
         "DR (Designated Router) priority";