summaryrefslogtreecommitdiff
path: root/pimd/pim_vty.c
AgeCommit message (Collapse)Author
2022-09-18pimd, pim6d: Changing IGMP to GM in few macro's.Abhishek N R
Changing IGMP_DEFAULT_ROBUSTNESS_VARIABLE to GM_DEFAULT_ROBUSTNESS_VARIABLE, IGMP_GENERAL_QUERY_INTERVAL to GM_GENERAL_QUERY_INTERVAL, IGMP_QUERY_MAX_RESPONSE_TIME_DSEC to GM_QUERY_MAX_RESPONSE_TIME_DSEC and IGMP_SPECIFIC_QUERY_MAX_RESPONSE_TIME_DSEC to GM_SPECIFIC_QUERY_MAX_RESPONSE_TIME_DSEC to accomodate both igmp and mld. And moved it to common file. Signed-off-by: Abhishek N R <abnr@vmware.com>
2022-09-13pimd, pim6d: Changing IGMP to GM in debug macros.Abhishek N R
Changed PIM_DEBUG_IGMP_TRACE to PIM_DEBUG_GM_TRACE and PIM_DEBUG_IGMP_TRACE_DETAIL to PIM_DEBUG_GM_TRACE_DETAIL. Hence, these macros can be used for both v6 and v4. Issue: #11895 Co-authored-by: Sai Gomathi N <nsaigomathi@vmware.com> Signed-off-by: Abhishek N R <abnr@vmware.com>
2022-09-06pimd, pim6d: Changing IGMP to GM in debug macrosSai Gomathi N
Changing PIM_DO_DEBUG_IGMP_EVENTS to PIM_DO_DEBUG_GM_EVENTS PIM_DO_DEBUG_IGMP_PACKETS to PIM_DO_DEBUG_GM_PACKETS PIM_DO_DEBUG_IGMP_TRACE to PIM_DO_DEBUG_GM_TRACE PIM_DO_DEBUG_IGMP_TRACE_DETAIL to PIM_DO_DEBUG_GM_TRACE_DETAIL PIM_DONT_DEBUG_IGMP_EVENTS to PIM_DONT_DEBUG_GM_EVENTS PIM_DONT_DEBUG_IGMP_PACKETS to PIM_DONT_DEBUG_GM_PACKETS PIM_DONT_DEBUG_IGMP_TRACE to PIM_DONT_DEBUG_GM_TRACE PIM_DONT_DEBUG_IGMP_TRACE_DETAIL to PIM_DONT_DEBUG_GM_TRACE_DETAIL PIM_MASK_IGMP_EVENTS to PIM_MASK_GM_EVENTS PIM_MASK_IGMP_PACKETS to PIM_MASK_GM_PACKETS PIM_MASK_IGMP_TRACE to PIM_MASK_GM_TRACE PIM_MASK_IGMP_TRACE_DETAIL to PIM_MASK_GM_TRACE_DETAIL to be used for both IGMP and MLD debugs. Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2022-09-04pimd,pim6d: Modifying IGMP to GM in PIM_DEBUG_IGMP_PACKETS to ↵Sai Gomathi N
PIM_DEBUG_GM_PACKETS Changing the macros to common so that it can be used for pimv6 debugs as well to be used for both IGMP and MLD debugs. Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2022-09-04pimd,pim6d: Modifying IGMP to GM in PIM_DEBUG_IGMP_EVENTS to PIM_DEBUG_GM_EVENTSSai Gomathi N
Changing the macros to common so that it can be used for pimv6 debugs as well to be used for both IGMP and MLD debugs. Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2022-08-28pim6d: Completing "ipv6 mld last-member-query-interval" commandAbhishek N R
Signed-off-by: Abhishek N R <abnr@vmware.com>
2022-08-28pim6d: Completing "ipv6 mld last-member-query-count" command.Abhishek N R
Signed-off-by: Abhishek N R <abnr@vmware.com>
2022-08-28pim6d: Completing "ipv6 mld query-max-response-time" command.Abhishek N R
Signed-off-by: Abhishek N R <abnr@vmware.com>
2022-08-18Merge pull request #11485 from AbhishekNR/ipv6_mld_todoDonatas Abraitis
pim6d: Completing "ipv6 mld" config command.
2022-08-16pim6d: Add debug mroute6 and detail commandsMobashshera Rasool
Adding below debug CLIs: debug mroute6 debug mroute6 detail Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2022-08-02pim6d: Change the show running commands for pimv6 debugsSai Gomathi N
Change the show running commands for bsm and vxlan pimv4 and pimv6 debug commands based on the address family. Including bsm and vxlan in no debug pimv6 debug. Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2022-07-07pim6d: Completing "ipv6 mld" command.Abhishek N R
Signed-off-by: Abhishek N R <abnr@vmware.com>
2022-06-30pim6d: Implementing mld watermark-warn CLI completelySai Gomathi N
Implementing the TBD of watermark-warn CLI for IPv6 MLD This command can be use to warn the user when more than the desired limit of groups gets configured. Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2022-06-30pimd: Modifying member of pim_instance to accomodate IPv6 changesSai Gomathi N
Modifying igmp_watermark_limit of struct pim_instance to gm_watermark_limit which is to be used for both IGMP and MLD. Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2022-06-29Merge pull request #11428 from SaiGomathiN/pimdebugDonatas Abraitis
pimd,pim6d: Change the show running commands based on address family
2022-06-27pim6d: Changing igmp_enable to gm_enable.Abhishek N R
Modified variable name so that it can be reused in mld. Signed-off-by: Abhishek N R <abnr@vmware.com>
2022-06-26pimd,pim6d: Change the show running commands based on address familySai Gomathi N
Change the show running commands for pimv4 and pimv6 debug commands based on the address family. Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2022-05-17Merge pull request #10775 from opensourcerouting/pim6-mld-prDonald Sharp
pim6d: MLD code
2022-05-12pimd: show ip[v6] pim passive in show running configsarita patra
Signed-off-by: sarita patra <saritap@vmware.com>
2022-05-06pim6d: show MLD in running-configDavid Lamparter
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-04-26pimd: add missing `debug igmp trace detail`David Lamparter
The flag was defined but there was no command to actually enable it. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-04-26pimd: fix reversed logic for "debug ... detail"David Lamparter
The normal flag was enabling detail messages, but what we want is the detail flag enabling normal messages. Remove the _ONLY macro while at it, it's only used for config print & that seems like a place where making the difference explicitly visible is helpful regardless. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-04-12pim6d: Addition of ipv6 ssmpingd config commandsBalaji Gurudoss
Signed-off-by: Balaji Gurudoss <G_Balaji1@dell.com>
2022-04-04pimd: remove useless PIM_IF_* macrosDavid Lamparter
The only function these macros have is to make the code confusing. "PIM_IF_DO_PIM" sounds like it triggers some action, but it doesn't. Replace with "bool" fields in struct pim_interface. (Note: PIM_IF_*_IGMP_LISTEN_ALLROUTERS was always set, without any way to unset it. It is completely removed now and always enabled.) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-03-25pim6d: fix format string mistakes in ssmpingdDavid Lamparter
PR #10653 forgot to update a bunch of format specifiers. Fix. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-03-20Merge pull request #9476 from SaiGomathiN/pim-nhtDonatas Abraitis
pimd: Added new option "detail" in the "debug pim nht" CLI
2022-03-16pim6d: Changes done in pim_ssmpingd to support v6Balaji Gurudoss
Signed-off-by: Balaji Gurudoss <G_Balaji1@dell.com>
2022-03-03pimd: Added new option "detail" in the "debug pim nht" CLISai Gomathi
Problem Statement: ================= PIM Logs are coming at interval of 1 minute although pim is not enabled. Root Cause Analysis: ==================== By default, RCPM configures the PIM debugs when router comes up via script. The product cannot disable PIM even though it is not required. Hence moving these logs under a new debug option which will not be enabled by default. Fix: ==== Added a new option "detail" in the cli: debug pim nht detail Co-author: Mobashshera Rasool <mrasool@vmware.com> Signed-off-by: Sai Gomathi <nsaigomathi@vmware.com>
2022-02-28pimd: Change the show running commands based on address familyMobashshera Rasool
Change the show running commands for pimv4 and pimv6 based on the address family. Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2022-02-28pim6d: Adding show running for ipv6 mld commandsSai Gomathi N
Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2022-02-28pimd: Moving igmp "show running-config" to a functionMobashshera Rasool
Moving the igmp related commands running config to a new function specific to pimv4. Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2022-02-28pimd: Moving ipv4 running-configs to a separate functionSai Gomathi N
Co-authored-by: Sai Gomathi <nsaogimathi@vmware.com> Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2022-02-16pim6d: drop off IGMP codeDavid Lamparter
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-02-14pim6d: IPv6-adjust iface primary/DR addrsDavid Lamparter
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-02-08Merge pull request #10292 from opensourcerouting/pim6-addr-auxDonald Sharp
pimd: start tackling IPv6 address operations
2022-01-24*: do not print vrf name for interface config when using vrf-liteIgor Ryzhov
VRF name should not be printed in the config since 574445ec. The update was done for NB config output but I missed it for regular vty output. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2022-01-21Merge pull request #10398 from patrasar/pim_debug_fixQuentin Young
2022-01-21pimd: debug pim fixessarita patra
Enable debug commands "debug pim packetdump send" and "debug pim packetdump receive" in config mode. Display "debug pim nht rp" in show running config. Signed-off-by: sarita patra <saritap@vmware.com>
2022-01-18pimd: remove redundant header includeMobashshera Rasool
Removing redundant header inclusion of pim_cmd.h Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2022-01-17pimd: remove PIM_INADDR_IS[NOT]_ANY macrosDavid Lamparter
These really don't serve much of a purpose, especially with how inconsistently they're used. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-01-11pimd: Modifying members of pim_interface to accommodate IPv6 changesSai Gomathi
Modifying the members of pim_interface which are to be used for both IPv4 and IPv6 to common names(for both MLD and IGMP). Issues: #10023 Co-authored-by: Mobashshera Rasool <mrasool@vmware.com> Co-authored-by: Sarita Patra <saritap@vmware.com> Signed-off-by: Sai Gomathi <nsaigomathi@vmware.com>
2021-12-15Merge pull request #10215 from FRRouting/revert-10164-name_changeStephen Worley
Revert "pimd: Modifying members of pim_interface to accommodate IPv6 changes"
2021-12-14Revert "pimd: Modifying members of pim_interface to accommodate IPv6 changes"David Lamparter
2021-12-03pimd: Modifying name of struct igmp_join to struct gm_join to accomodate ↵Mobashshera Rasool
IPv6 changes. Fix: ==== Modifying name of struct igmp_join to struct gm_join, which is to be used by both IPv4 and IPv6(for both MLD and IGMP). Co-authored-by: Abhishek N R abnr@vmware.com Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2021-12-02pimd: Modifying members of pim_interface to accommodate IPv6 changesSai Gomathi
Modifying the members of pim_interface which are to be used for both IPv4 and IPv6 to common names(for both MLD and IGMP). Issue: #10023 Co-authored-by: Mobashshera Rasool <mrasool@vmware.com> Signed-off-by: Sai Gomathi <nsaigomathi@vmware.com>
2021-08-23*: explicitly print "exit" at the end of every node configIgor Ryzhov
There is a possibility that the same line can be matched as a command in some node and its parent node. In this case, when reading the config, this line is always executed as a command of the child node. For example, with the following config: ``` router ospf network 193.168.0.0/16 area 0 ! mpls ldp discovery hello interval 111 ! ``` Line `mpls ldp` is processed as command `mpls ldp-sync` inside the `router ospf` node. This leads to a complete loss of `mpls ldp` node configuration. To eliminate this issue and all possible similar issues, let's print an explicit "exit" at the end of every node config. This commit also changes indentation for a couple of existing exit commands so that all existing commands are on the same level as their corresponding node-entering commands. Fixes #9206. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2021-07-01pimd: support MSDP global timers configurationRafael Zalamena
Users can now configure: * Hold time * Keep alive * Connection retry Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
2021-05-12pimd: Remove pim->vrf_id and use pim->vrf->vrf_idDonald Sharp
VRF creation can happen from either cli or from knowledged about the vrf learned from zebra. In the case where we learn about the vrf from the cli, the vrf id is UNKNOWN. Upon actual creation of the vrf, lib/vrf.c touches up the vrf_id and calls pim_vrf_enable to turn it on properly. At this point in time we have a pim->vrf_id of UNKNOWN and the vrf->vrf_id of the right value. There is no point in duplicating this data. So just remove all pim->vrf_id and use the vrf->vrf_id instead since we keep a copy of the pim->vrf pointer. This will remove some crashes where we expect the pim->vrf_id to be usable and it's not. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2021-05-09Merge pull request #8631 from dslicenc/pimd-timer-fixDavid Lamparter
2021-05-05pimd: stop displaying global parameters in each vrfDon Slice
Problem reported that when certain pim commands were entered, they showed up duplicated in the configuration both under default instance and every vrf (whether pim was used there or not.) This was because these particular parameters are global only and the function doing the display would repeat for each vrf. This fix only displays those in the default case (and removes them from the help for entering under a vrf.) Signed-off-by: Don Slice <dslice@nvidia.com>