summaryrefslogtreecommitdiff
path: root/pimd/pim_cmd_common.h
AgeCommit message (Collapse)Author
2024-09-24pimd,yang: Implement AutoRP CLI and NB config pathNathan Bahr
New CLI commands added: router pim [vrf NAME] autorp discovery autorp announce RP-ADDR [GROUP | group-list PREFIX-LIST] autorp announce {scope (1-255) | interval (1-65535) | holdtime (0-65535)} autorp discovery Enables Auto RP discovery for learning dynamic RP information using the AutoRP protocol. autorp announce RP-ADDR [GROUP | group-list PREFIX-LIST] Enable announcements of a candidate RP with the given group range, or prefix list of group ranges, to an AutoRP mapping agent. autorp announce {scope (1-255) | interval (1-65535) | holdtime (0-65535)} Configure the parameters of the AutoRP announcement messages. The scope sets the packet TTL. The interval sets the time between TX of announcements. The holdtime sets the hold time in the message, the time the mapping agent should wait before invalidating the candidate RP information. debug pim autorp Enable debug logging of the AutoRP protocol show ip pim [vrf NAME] autorp [json] Show details of the AutoRP protocol. To view learned RP info, use the existing command 'show ip pim rp-info' Extend pim yang for new configuration: augment /frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol/frr-pim:pim/frr-pim:address-family: +--rw rp +--rw auto-rp +--rw discovery-enabled? boolean +--rw announce-scope? uint8 +--rw announce-interval? uint16 +--rw announce-holdtime? uint16 +--rw candidate-rp-list* [rp-address] +--rw rp-address inet:ip-address +--rw (group-or-prefix-list)? +--:(group) | +--rw group? frr-route-types:ip-multicast-group-prefix +--:(prefix-list) +--rw prefix-list? plist-ref Signed-off-by: Nathan Bahr <nbahr@atcorp.com>
2024-09-20pimd: add igmp proxy cli and yang configurationBarry A. Trent
Signed-off-by: Barry A. Trent <barry.trent@atcorp.com>
2024-09-09pimd: candidate BSR/RP show commands, move under ip pim bsrJafar Al-Gharaibeh
Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
2024-09-09pimd: Candidate-BSR supportJafar Al-Gharaibeh
Signed-off-by: David Lamparter <equinox@opensourcerouting.org> Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
2024-09-09pimd: Candidate-RP supportJafar Al-Gharaibeh
Signed-off-by: David Lamparter <equinox@opensourcerouting.org> Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
2024-07-16pimd, lib, vtysh: Added new 'router pim[6] [vrf NAME]' config nodeNathan Bahr
Moved all existing global/vrf PIM config to the new subnode. Existing configuration updated to be hidden and deprecated. Both versions of configuration still work together. Signed-off-by: Nathan Bahr <nbahr@atcorp.com>
2023-02-09*: auto-convert to SPDX License IDsDavid Lamparter
Done with a combination of regex'ing and banging my head against a wall. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-10-20pimd: Move "show ip pim bsm-database" cmd to DEFPYSarita Patra
Added common pim_show_bsm_db_helper to suppport both PIM and PIMV6. pim_show_bsm_db is moved to pim_cmd_common.c file. Signed-off-by: Sarita Patra <saritap@vmware.com>
2022-10-20pimd: Move "show ip pim bsrp-info [vrf] [json]" cmd to DEFPYSarita Patra
Added pim_show_group_rp_mappings_info_helper to suppport both PIM and PIMV6. pim_show_group_rp_mappings_info() is moved to pim_cmd_common.c file. Signed-off-by: Sarita Patra <saritap@vmware.com>
2022-10-20pimd: Add vrf optional parameter in "show ip pim bsr" cmdSarita Patra
Added common API pim_show_bsr_helper to suppport both PIM and PIMV6. pim_show_bsr() is moved to pim_cmd_common.c file. Signed-off-by: Sarita Patra <saritap@vmware.com>
2022-10-20pim6d: Add [no] ipv6 pim unicast-bsm" commandSarita Patra
Introduced common api pim_process_unicast_bsm_cmd, pim_process_no_unicast_bsm_cmd which will process both "[no] ip pim unicast-bsm" command and "[no] ipv6 pim unicast-bsm" command. Signed-off-by: Sarita Patra <saritap@vmware.com>
2022-10-20pim6d: Add [no] ipv6 pim bsm" commandSarita Patra
Introduced common api pim_process_bsm_cmd, pim_process_no_bsm_cmd which will process both "[no] ip pim bsm" command and "[no] ipv6 pim bsm" command. Signed-off-by: Sarita Patra <saritap@vmware.com>
2022-08-01pim6d: Implementing "clear ipv6 pim interface traffic" command.Abhishek N R
Signed-off-by: Abhishek N R <abnr@vmware.com>
2022-07-19pim6d: Implementing "clear ipv6 pim interfaces" command.Abhishek N R
Signed-off-by: Abhishek N R <abnr@vmware.com>
2022-07-12pimd: Remove pim_get_pim_instance defination in pim_cmd_common.hSarita Patra
Signed-off-by: Sarita Patra <saritap@vmware.com>
2022-06-30pimd, pim6d: Adding json support for show ipv6 nexthopSai Gomathi N
Moving the reusable code of pim_show_nexthop apis to common file pim_cmd_common.c file and adding the json support for show ipv6 pim nexthop Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2022-06-12pimd: Change to DEFPY and make the api commonMobashshera Rasool
For show ip pim interface traffic cli, doing the below changes 1. Changing DEFUN to DEFPY 2. Move the whole code to a common api and modify it so that can be reused for pimv6. Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2022-06-12pim6d: Moving show apis to common fileMobashshera Rasool
Moving pim_show_interface_traffic and pim_show_interface_traffic_single to pim_cmd_common.c from pim_cmd.c to make it common to pimd and pim6d. Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2022-06-12Merge pull request #11385 from AbhishekNR/show_cliDonald Sharp
pimd, pim6d: Moving reusable code to common api for show CLI's.
2022-06-09pim6d: Moving the reusable code of pim_show_join cliSai Gomathi N
Moving the common lines of pim_show_join_vrf and pim_show_join_vrf_all cli in pim_cmd.c and pim6_cmd.c to pim_cmd_common.c file Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2022-06-09pim6d: Moving reusable code to common api for "show mroute summary" commandAbhishek N R
Signed-off-by: Abhishek N R <abnr@vmware.com>
2022-06-09pim6d: Moving reusable code to common api for "show ip/ipv6 mroute count" ↵Abhishek N R
command Signed-off-by: Abhishek N R <abnr@vmware.com>
2022-06-09pim6d: Moving reusable code to common api for "show ip/ipv6 mroute" commandAbhishek N R
Signed-off-by: Abhishek N R <abnr@vmware.com>
2022-06-09pim6d: Moving the common lines of pim_show_nexthop_lookup cliSai Gomathi N
Moving the common lines of pim_show_nexthop_lookup cli in pim_cmd.c and pim6_cmd.c to pim_cmd_common.c file Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2022-06-09pim6d: Moving reusable code to common api for "show ip/ipv6 multicast count" ↵Abhishek N R
command Signed-off-by: Abhishek N R <abnr@vmware.com>
2022-06-09pim6d: Moving reusable code to common api for "show ip/ipv6 multicast" commandAbhishek N R
Signed-off-by: Abhishek N R <abnr@vmware.com>
2022-06-09pim6d: Moving reusable code to common api for "show pim state" commandAbhishek N R
Signed-off-by: Abhishek N R <abnr@vmware.com>
2022-06-09pim6d: Moving the common lines of pim_show_nexthop cliSai Gomathi N
Moving the common lines of pim_show_nexthop cli in pim_cmd.c and pim6_cmd.c to pim_cmd_common.c file Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2022-06-09pim6d: Moving reusable code to common api for "show pim upstream rpf" commandAbhishek N R
Signed-off-by: Abhishek N R <abnr@vmware.com>
2022-06-09pim6d: Moving reusable code to common api for "show pim upstream join ↵Abhishek N R
desired" command Signed-off-by: Abhishek N R <abnr@vmware.com>
2022-06-09pim6d: Moving reusable code to common api for "show pim upstream" commandAbhishek N R
Signed-off-by: Abhishek N R <abnr@vmware.com>
2022-06-09pim6d: Moving the common lines of pim_show_neighbors_vrf_all cliSai Gomathi N
Moving the common lines of pim_show_neighbors_vrf_all cli in pim_cmd.c and pim6_cmd.c to pim_cmd_common.c file Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2022-06-09pim6d: Moving reusable code to common api for "show pim statistics" commandAbhishek N R
Signed-off-by: Abhishek N R <abnr@vmware.com>
2022-06-09pim6d: Moving the common lines of pim_show_neighbors cliSai Gomathi N
Moving the common lines of pim_show_neighbors cli in pim_cmd.c and pim6_cmd.c to pim_cmd_common.c file Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2022-06-09pim6d: Moving reusable code to common api for "show pim secondary" commandAbhishek N R
Signed-off-by: Abhishek N R <abnr@vmware.com>
2022-06-09pim6d: Moving resuable code to common api for "show pim rp-info" commandAbhishek N R
Signed-off-by: Abhishek N R <abnr@vmware.com>
2022-06-09pim6d: Moving the common lines of pim_local_membership cliSai Gomathi N
Moving the common lines of pim_local_membership cli in pim_cmd.c and pim6_cmd.c to pim_cmd_common.c file Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2022-06-09pim6d: Moving the common lines of pim_show_jp_agg cliSai Gomathi N
Moving the common lines of pim_show_jp_agg cli in pim_cmd.c and pim6_cmd.c to pim_cmd_common.c file Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2022-06-08pim6d: Moving the common lines of pim_show_interface_vrf_all cliSai Gomathi N
Moving the common lines of pim_show_interface_vrf_all cli in pim_cmd.c and pim6_cmd.c to pim_cmd_common.c file Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2022-06-08pim6d: Moving the common lines of pim_show_interface cliSai Gomathi N
Moving the common lines of pim_show_interface cli in pim_cmd.c and pim6_cmd.c to pim_cmd_common.c file Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2022-06-08pim6d: Moving the common lines of pim_show_channel cliSai Gomathi N
Moving the common lines of pim_show_channel cli in pim_cmd.c and pim6_cmd.c to pim_cmd_common.c file Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2022-06-08pim6d: Moving resuable code to common api for "show pim rpf" commandAbhishek N R
Signed-off-by: Abhishek N R <abnr@vmware.com>
2022-05-18pim6d: Add 'debug pimv6 packets'Sai Gomathi N
Implementing pimv6 packets debug to information about packet generation for sending and about packet handling from a received packet. Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2022-05-17pim6d: Add 'debug pimv6'Sai Gomathi N
Implementing debug pimv6 command for PIMv6 protocol activity. Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2022-05-17pim6d: Add 'clear ipv6 mroute [vrf NAME] count' CLISai Gomathi N
Adding clear ipv6 mroute count command for resetting multicast routes and count. Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2022-05-16pim6d: Adding pim_cmd_lookup api in pim_cmd_common fileSai Gomathi N
Adding pim_cmd_lookup function for clear CLIs Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2022-05-16pimd: Moving the common functions from pim_cmd.c fileSai Gomathi N
Moving the functions that are used by both IPV4 and IPV6 to a common file pim_cmd_common.c file. Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2022-05-12pimd: Northbound support for pim passive enablesarita patra
Added nothbound callbacks for pim-passive-enable Signed-off-by: sarita patra <saritap@vmware.com>
2022-05-06pimd: un-dependency-hell `pim_instance.h`David Lamparter
This is causing build issues on BSD by including (transitively) `linux/mroute6.h` - try to address by disentangling the headers a bunch. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-04-29Merge pull request #10988 from AbhishekNR/ipv6_mroute_cliDavid Lamparter