Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 839 Bytes

get_bgp_statistic.md

File metadata and controls

28 lines (21 loc) · 839 Bytes

get_bgp_statistic

Overview

Get the value corresponding to a named statistic for BGP.

Examples

def test_fun(duthosts, rand_one_dut_hostname, enum_frontend_asic_index):
    duthost = duthosts[rand_one_dut_hostname]

    sonic_asic = duthost.asic_instance(asic_index=enum_frontend_asic_index)

    stat_name = sonic_asic.get_bgp_statistic("ipv4_idle")

Arguments

  • stat - name of statistic to get from BGP info.
    • Required: True
    • Type: String
    • Choices: for possible values look for keys under bgp_statistics in the output of the bgp_facts Ansible module.

Expected Output

Returns whatever value is assigned the key stat provided.