summaryrefslogtreecommitdiff
path: root/pimd/pim_cmd.c
AgeCommit message (Collapse)Author
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-13Merge pull request #11598 from patrasar/pim_get_instanceDavid Lamparter
2022-07-12pimd: Avoid unnecessary vrf lookupSarita Patra
In several places, we are getting the vrf structure using vrf_lookup_by_name(). Again we are passing vrf->vrf_id to pim_get_pim_instance() to get the pim_instance. The API pim_get_pim_instance() again get the VRF structure using vrf_lookup_by_id(). This is avoided in this PR. Signed-off-by: Sarita Patra <saritap@vmware.com>
2022-07-12pimd: fix unaligned accessesDavid Lamparter
These are in packed structs at weird offsets (e.g. 2 bytes), and as such need a memcpy to get them into proper alignment. It'd be even better if the pimd code used proper de/serialization, but let's get this improved one step at a time. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-07-08Merge pull request #10592 from patrasar/master_pimv6_bsmDavid Lamparter
2022-07-07pim6d: Adjust pim_show_bsm_db for IPV6sarita patra
Signed-off-by: sarita patra <saritap@vmware.com>
2022-07-07pim6d: add pimv6 support for bsmmsg_rpinfosarita patra
Signed-off-by: sarita patra <saritap@vmware.com>
2022-07-07pim6d: add pimv6 support for bsm_hdrsarita patra
Signed-off-by: sarita patra <saritap@vmware.com>
2022-07-07pim6d: Add pim_addr rp_addr in bsm_rpinfosarita patra
Signed-off-by: sarita patra <saritap@vmware.com>
2022-07-07pim6d: modify in_addr current_bsr to pim_addr current_bsrsarita patra
Signed-off-by: sarita patra <saritap@vmware.com>
2022-07-07pimd: Fix description for "clear ip mroute" cmdSarita Patra
Signed-off-by: Sarita Patra <saritap@vmware.com>
2022-07-06Merge pull request #9307 from SaiGomathiN/sai-nhtDonatas Abraitis
pimd: json support for nexthop
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-30pimd: json support for nexthopnsaigomathi
Problems Identified: show ip pim nexthop cli didn't have json extension and show ip pim vrf all upstream have improper json format Description: show ip pim nexthop command shows the nexthops that are being used. Added json support for the command. show ip pim vrf all upstream displays upstream information for all vrfs about a S,G mroute. Formatted the json structure for this command. Signed-off-by: nsaigomathi <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-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-12Merge pull request #11387 from SaiGomathiN/pimshowDonald Sharp
pimd, pim6d: Moving the reusable code to common api for PIM show CLIs
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-09pimd: Show interface traffic even if interface is currently `down`Donald Sharp
the `show ip pim interface [x] traffic` command was deciding to skip display of interfaces if they happened to be down at that moment. This of course does not make a bunch of sense to limit the output for a interface that may have sent data in the past. This fixes this test crash: rnode = <lib.topogen.TopoRouter object at 0x7fc755be3880>, dut = 'c1', input_dict = {'c1': {'c1-l1-eth2': ['helloTx', 'helloRx']}}, output_dict = {'c1': {}} def show_pim_intf_traffic(rnode, dut, input_dict, output_dict): show_pim_intf_traffic_json = run_frr_cmd( rnode, "show ip pim interface traffic json", isjson=True ) output_dict[dut] = {} for intf, data in input_dict[dut].items(): > interface_json = show_pim_intf_traffic_json[intf] E KeyError: 'c1-l1-eth2' /home/sharpd/frr8/tests/topotests/lib/pim.py:1496: KeyError Signed-off-by: Donald Sharp <sharpd@nvidia.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 zebra'Sai Gomathi N
Implementing debug pimv6 zebra command for debugging about the events from zebra that come up through the ZAPI. Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2022-05-18pim6d: Add 'debug pimv6 trace' and 'debug pimv6 trace detail'Sai Gomathi N
Implementing debugs pimv6 trace and trace detail for tracing pim code and how it is running. Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2022-05-18pim6d: Add 'debug_pimv6_packetdump_send_cmd' and ↵Sai Gomathi N
'debug_pimv6_packetdump_recv_cmd' Implementing debug pimv6 packetdump send and recv coomands for debugging of pimv6 packet sent and received which are dumped. Signed-off-by: Sai Gomathi N <nsaigomathi@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-18pim6d: Add 'debug pimv6 events'Sai Gomathi N
Implementing debug pimv6 events command for debugging PIMv6 system events. Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2022-05-18pim6d: Add 'debug pimv6 nht' and 'debug pimv6 nht detial'Sai Gomathi N
Implementing debug pimv6 nht command for PIMv6 nexthop tracking. It will display information about RPF lookups and information about when a nexthop changes. debug pimv6 nht detial for for PIMv6 nexthop in detail.This is not enabled by default. Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>