summaryrefslogtreecommitdiff
path: root/ospfd/ospf_api.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-06-09 10:29:04 -0400
committerDonald Sharp <sharpd@nvidia.com>2022-06-09 10:29:04 -0400
commita64543e3e8f0210e12bf9749e4302dc216f93b61 (patch)
tree7678f294cec15a34ccf9e1dfbd99ecd545343a77 /ospfd/ospf_api.c
parent121903bd01020a24df9c4679dd0b9ab2853a234b (diff)
pimd: Show interface traffic even if interface is currently `down`
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>
Diffstat (limited to 'ospfd/ospf_api.c')
0 files changed, 0 insertions, 0 deletions