diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2023-04-14 17:17:27 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2024-05-08 21:21:30 +0200 |
commit | b564c1d890aef75067db22df09e608faf72b99f5 (patch) | |
tree | d7857a618a3839840f9c3f01e903f81828368cfd | |
parent | Merge pull request #15885 from opensourcerouting/gcc-unrecognized-ms-anon-tag (diff) | |
download | frr-b564c1d890aef75067db22df09e608faf72b99f5.tar.xz frr-b564c1d890aef75067db22df09e608faf72b99f5.zip |
pimd: fix dr-priority range
0 is a valid DR priority.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
-rw-r--r-- | doc/user/pim.rst | 2 | ||||
-rw-r--r-- | doc/user/pimv6.rst | 2 | ||||
-rw-r--r-- | pimd/pim6_cmd.c | 4 | ||||
-rw-r--r-- | pimd/pim_cmd.c | 4 | ||||
-rw-r--r-- | yang/frr-pim.yang | 4 |
5 files changed, 7 insertions, 9 deletions
diff --git a/doc/user/pim.rst b/doc/user/pim.rst index 80a6a2787..b19bb9d1b 100644 --- a/doc/user/pim.rst +++ b/doc/user/pim.rst @@ -211,7 +211,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. diff --git a/doc/user/pimv6.rst b/doc/user/pimv6.rst index d550c8e89..b8567e486 100644 --- a/doc/user/pimv6.rst +++ b/doc/user/pimv6.rst @@ -135,7 +135,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. diff --git a/pimd/pim6_cmd.c b/pimd/pim6_cmd.c index 4db11572d..ec912700d 100644 --- a/pimd/pim6_cmd.c +++ b/pimd/pim6_cmd.c @@ -244,7 +244,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" @@ -255,7 +255,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 diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c index 15d3904c3..a2d756a96 100644 --- a/pimd/pim_cmd.c +++ b/pimd/pim_cmd.c @@ -3956,7 +3956,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" @@ -3969,7 +3969,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 diff --git a/yang/frr-pim.yang b/yang/frr-pim.yang index e9b3f6750..732a38a9e 100644 --- a/yang/frr-pim.yang +++ b/yang/frr-pim.yang @@ -422,9 +422,7 @@ module frr-pim { } leaf dr-priority { - type uint32 { - range "1..max"; - } + type uint32; default 1; description "DR (Designated Router) priority"; |