]> 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 18:51:16 +0000 (13:51 -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 5d849c7b8a17c953393386e3aa2681de0b8c4600..374328bb610912018cc4f3a93000039f1b89cea2 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 7fd285600192f8c3f72a751ca246d8010a200a78..912e569c4d83a8655d750be7165d6b98f5d0e85c 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 bd6d229476f6feee153e43d573b54e9dd24b0180..917e933f986d83ec33309ce48c755821e18452bc 100644 (file)
@@ -257,7 +257,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"
@@ -268,7 +268,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 d73ec2990d8bbb6f753bfa76938b672907b7c197..e3191f07f88ab2bb9ba8db049d7607f107ee4da1 100644 (file)
@@ -3675,7 +3675,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"
@@ -3688,7 +3688,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";