summaryrefslogtreecommitdiff
path: root/pimd/pim_cmd.c
AgeCommit message (Collapse)Author
2022-03-21Merge pull request #10815 from pguibert6WIND/pim_debug_vxlanDonatas Abraitis
pimd: add 'debug pim vxlan' when 'debug pim' is used
2022-03-21Merge pull request #10832 from patrasar/2520720Donatas Abraitis
pimd: add source and group information in mroute json
2022-03-20pimd: source/group information now added for pruned entrysarita patra
show ip mroute json command displays the source, group info per oil, so for pruned group since the OIL is empty, it is not showing. Fix: Added the above information per source. Signed-off-by: sarita patra <saritap@vmware.com>
2022-03-20Merge pull request #9476 from SaiGomathiN/pim-nhtDonatas Abraitis
pimd: Added new option "detail" in the "debug pim nht" CLI
2022-03-17pimd: add 'debug pim vxlan' when 'debug pim' is usedPhilippe Guibert
Reversely, negating 'debug pim' will disable vxlan debugging. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2022-03-17pimd: Include pruneTx/pruneRx for `show ip pim interface traffic WORD json`Donatas Abraitis
``` exit1-debian-11# sh ip pim interface traffic eth2 json { "eth2":{ "name":"eth2", "state":"up", "address":"192.168.10.123", "index":4, "flagMulticast":true, "flagBroadcast":true, "lanDelayEnabled":true, "helloRx":2, "helloTx":2, "joinRx":0, "joinTx":1, "pruneRx":0, "pruneTx":0, "registerRx":0, "registerTx":0, "registerStopRx":0, "registerStopTx":0, "assertRx":0, "assertTx":0, "bsmRx":0, "bsmTx":0 } } ``` Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-03-15Merge pull request #10791 from ↵Donald Sharp
opensourcerouting/feature/igmp_stats_total_received_message pimd: Add additional IGMP stats (peak number of groups)
2022-03-15pimd: Return empty JSON if we query non existing interface for IGMP statsDonatas Abraitis
Now we return all zeroed stats, which seems wrong. Handle the same way, as with PIM interfaces. Return empty JSON and a warning for VTYSH. ``` exit1-debian-11# sh ip igmp statistics interface belekas % No such interface exit1-debian-11# sh ip igmp statistics interface belekas json { } ``` Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-03-15pimd: Add additional IGMP stats (peak number of groups)Donatas Abraitis
``` exit1-debian-11# sh ip igmp statistics interface eth2 IGMP statistics Interface : eth2 V1 query : 0 V2 query : 0 V3 query : 25 V2 leave : 0 V1 report : 0 V2 report : 0 V3 report : 34 mtrace response : 0 mtrace request : 0 unsupported : 0 joins failed : 0 joins sent : 13 general queries sent : 2 group queries sent : 24 peak groups : 9 total groups : 4 total source groups : 1 exit1-debian-11# sh ip igmp statistics interface eth2 json { "eth2":{ "name":"eth2", "queryV1":0, "queryV2":0, "queryV3":25, "leaveV2":0, "reportV1":0, "reportV2":0, "reportV3":34, "mtraceResponse":0, "mtraceRequest":0, "unsupported":0, "peakGroups":9, "totalGroups":4, "totalSourceGroups":1, "joinsFailed":0, "joinsSent":13, "generalQueriesSent":2, "groupQueriesSent":24 } } ``` Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-03-14pimd: Show total received messages IGMP statsDonatas Abraitis
``` exit1-debian-11# do sh ip igmp statistics IGMP statistics Interface : global V1 query : 0 V2 query : 0 V3 query : 3 V2 leave : 0 V1 report : 0 V2 report : 0 V3 report : 18 mtrace response : 0 mtrace request : 0 unsupported : 0 total received messages : 21 joins failed : 0 joins sent : 16 general queries sent : 6 group queries sent : 3 total groups : 4 total source groups : 1 exit1-debian-11# do sh ip igmp statistics json { "global":{ "name":"global", "queryV1":0, "queryV2":0, "queryV3":4, "leaveV2":0, "reportV1":0, "reportV2":0, "reportV3":18, "mtraceResponse":0, "mtraceRequest":0, "unsupported":0, "totalReceivedMessage":22, "totalGroups":3, "totalSourceGroups":1, "joinsFailed":0, "joinsSent":16, "generalQueriesSent":6, "groupQueriesSent":4 } } ``` Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-03-14pimd: Add additional IGMP stats (generic/group specific queries sent)Donatas Abraitis
``` exit1-debian-11# sh ip igmp statistics IGMP statistics Interface : global V1 query : 0 V2 query : 0 V3 query : 6 V2 leave : 0 V1 report : 0 V2 report : 0 V3 report : 14 mtrace response : 0 mtrace request : 0 unsupported : 0 joins failed : 0 joins sent : 16 general queries sent : 6 group queries sent : 4 total groups : 5 total source groups : 1 exit1-debian-11# sh ip igmp statistics json { "global":{ "name":"global", "queryV1":0, "queryV2":0, "queryV3":6, "leaveV2":0, "reportV1":0, "reportV2":0, "reportV3":18, "mtraceResponse":0, "mtraceRequest":0, "unsupported":0, "totalGroups":5, "totalSourceGroups":1, "joinsFailed":0, "joinsSent":16, "generalQueriesSent":6, "groupQueriesSent":4 } } ``` Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-03-13Merge pull request #10447 from ton31337/fix/json_with_whitespacesDonald Sharp
*: Fix JSON keys with whitespaces and PascalCase
2022-03-13pimd: Add IGMP join sent/failed statisticsDonatas Abraitis
``` exit1-debian-11# sh ip igmp statistics IGMP statistics Interface : global V1 query : 0 V2 query : 0 V3 query : 0 V2 leave : 0 V1 report : 0 V2 report : 0 V3 report : 16 mtrace response : 0 mtrace request : 0 unsupported : 0 joins failed : 0 joins sent : 11 total groups : 4 total source groups : 0 exit1-debian-11# sh ip igmp statistics json { "global":{ "name":"global", "queryV1":0, "queryV2":0, "queryV3":0, "leaveV3":0, "reportV1":0, "reportV2":0, "reportV3":16, "mtraceResponse":0, "mtraceRequest":0, "unsupported":0, "totalGroups":4, "totalSourceGroups":0, "joinsFailed":0, "joinsSent":11 } } ``` Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-03-13Merge pull request #10399 from g-balaji1/pimv6-sockDonald Sharp
pim6d: PIMv6 socket related changes
2022-03-12Merge pull request #10744 from opensourcerouting/igmp-json-leave-typoDonald Sharp
pimd: fix typo in IGMP interface statistics JSON output.
2022-03-12pimd: drop printing IP_MULTICAST_LOOP sockoptDavid Lamparter
This isn't a system or interface setting, it's a socket behavior. It is both irrelevant and confusing to the user since it doesn't affect any system behavior (but it sounds like it does). Whether it is enabled or not is solely relevant to how the code is designed to work. So, remove it from output. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-03-12pimd: Show group-type under `show ip pim rp-info`Donatas Abraitis
And filter by group for PIM. ``` exit1-debian-11# show ip pim rp-info RP address group/prefix-list OIF I am RP Source Group-Type 192.168.10.17 238.0.0.0/24 eth2 no Static ASM 192.168.10.110 232.0.0.0/24 eth2 no Static SSM exit1-debian-11# show ip pim rp-info 238.0.0.0/24 RP address group/prefix-list OIF I am RP Source Group-Type 192.168.10.17 238.0.0.0/24 eth2 no Static ASM exit1-debian-11# show ip pim rp-info 238.0.0.0/24 json { "192.168.10.17":[ { "rpAddress":"192.168.10.17", "outboundInterface":"eth2", "iAmRP":false, "group":"238.0.0.0/24", "source":"Static", "groupType":"ASM" } ] } exit1-debian-11# ``` Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-03-08pimd: Add IGMP total groups and total source groups to statisticsDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-03-08pimd: Modify "ip pim rp <> prefix-list <>" commandMobashshera Rasool
1. Moving the processing of the above command to an api. 2. Change DEFUN to DEPFY 3. Make the api common for pimv4 and pimv6 processing. Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2022-03-08pimd: Moving processing of "ip pim rp <grp>" cmd to a common apiMobashshera Rasool
1. Moving the processing of the command to a common api. 2. Changing the DEFUN to DEFPY. Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2022-03-07pimd/pim_cmd.c: fix typo in IGMP iface stats JSONDavid Schweizer
Changes correct typo in JSON output for IGMP interface statistics show command from "leaveV3" to "leaveV2". Signed-off-by: David Schweizer <dschweizer@opensourcerouting.org>
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-03-01pim6d: Adding ipv6 mroute INTERFACE X:X::X:X [X:X::X:X]" clisarita patra
This cli is used to add multicast route on interface Signed-off-by: sarita patra <saritap@vmware.com>
2022-03-01pim6d: Adding "ipv6 multicast boundary oil WORD" clisarita patra
This cli is used to define multicast boundary on interface. Signed-off-by: sarita patra <saritap@vmware.com>
2022-03-01pim6d: Adding "ipv6 pim sm" clisarita patra
This cli used to enable PIMV6 on interface. Signed-off-by: sarita patra <saritap@vmware.com>
2022-03-01pim6d: Adding "ipv6 pim ssm" clisarita patra
This cli used to enable PIMV6 on interface. Signed-off-by: sarita patra <saritap@vmware.com>
2022-03-01pim6d: Adding "[no] ipv6 pim active-active" clisarita patra
This cli used to mark the interface as active-active. Signed-off-by: sarita patra <saritap@vmware.com>
2022-03-01pim6d: Adding "ipv6 pim hello (1-65535) [(1-65535)]" CLIsarita patra
This cli used to configure PIMV6 hello and hold timer on interface. Signed-off-by: sarita patra <saritap@vmware.com>
2022-03-01pim6d: Adding "ipv6 pim dr-priority" CLIsarita patra
This cli used to configure PIMV6 dr-priority on interface. Signed-off-by: sarita patra <saritap@vmware.com>
2022-03-01pim6d: Adding "ipv6 pim" CLIsarita patra
This cli used to enable PIMV6 on interface. Signed-off-by: sarita patra <saritap@vmware.com>
2022-02-28pim6d: Add ipv6 pim register-suppress-time CLIMobashshera Rasool
Adding below CLI for pim6d [no] ipv6 pim register-suppress-time (1-65535) Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2022-02-28pim6d: Adding ipv6 pim rp keep-alive-timerMobashshera Rasool
Adding below CLI for pim6d daemon [no] ipv6 pim rp keep-alive-timer [(1-65535)] Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2022-02-28pim6d: Adding ipv6 pim keep-alive-timerMobashshera Rasool
Adding the below CLI for pim6d daemon: ipv6 pim keep-alive-timer (1-65535) Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2022-02-28pim6d: Adding ipv6 pim packet CLIMobashshera Rasool
Adding below CLI for pim6d daemon: [no] ipv6 pim packet (1-255) Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2022-02-28pim6d: Adding ipv6 pim spt-switchover CLIMobashshera Rasool
Adding the below CLIs for ipv6: [no] ipv6 pim spt-switchover infinity-and-beyond [no] ipv6 pim spt-switchover infinity-and-beyond prefix-list WORD Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2022-02-28pim6d: Implementing join-prune interval CLIMobashshera Rasool
Adding "ipv6 pim join-prune interval (1-65535) Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2022-02-28pimd: Moving pim_cli_get_vrf_name function to common fileMobashshera Rasool
Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2022-02-28pimd: Adding pim_cmd_common.h and .cMobashshera Rasool
This is to keep the cmd changes common to v4 and v6 in this file. Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2022-02-28pimd: Removing unnecessary #ifMobashshera Rasool
Since pim_cmd.c file is moved to pimv4 make file, therefore removing #if PIM_IPV !=6. Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2022-02-26Merge pull request #10400 from opensourcerouting/pim6-compilefixDonald Sharp
pim6d: get running with ipv6 types throughout
2022-02-16pimd: Fix Compilation issue in PIMMobashshera Rasool
A recent merge caused this, fixing it. Signed-off-by: Mobashshera Rasool <mrasool@gmail.com>
2022-02-16Merge pull request #9224 from SaiGomathiN/saigDonald Sharp
pimd: IGMP Query Generation
2022-02-16pim6d: drop off IGMP codeDavid Lamparter
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-02-14pim6d: IPv6-adjust neigh->source_addrDavid Lamparter
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-02-11Merge pull request #9697 from SaiGomathiN/igmp-sourcesDonatas Abraitis
pimd: json support added
2022-02-08Merge pull request #10292 from opensourcerouting/pim6-addr-auxDonald Sharp
pimd: start tackling IPv6 address operations
2022-02-07pimd: Modify `show ip pim assert` to only show interesting bitsDonald Sharp
`show ip pim assert` shows S,G ifchannel information even when there is no information available about the assert process. Fix the code to not dump non-interesting cases. Fixes: 10462 Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-02-03*: Add camelCase JSON keys in addition to PascalCaseDonatas Abraitis
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2022-01-31bgpd,pimd,isisd,nhrpd: Convert to vty_json()Donatas Abraitis
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2022-01-25Merge pull request #10395 from qlyoung/fix-pim-xpath-buffer-sizesDavid Lamparter