Show status and counter values for a given interface on the ASIC.
def test_fun(duthosts, rand_one_dut_hostname, tbinfo, enum_frontend_asic_index):
duthost = duthosts[rand_one_dut_hostname]
sonic_asic = duthost.asic_instance(asic_index=enum_frontend_asic_index)
bgp_info = sonic_asic.bgp_facts()
command
- Whether interface statuses or counters are desired- Required:
True
- Type:
String
- Choices:
status
counter
- Required:
interfaces
- List of interface for facts to be gathered. If not defined facts are gathered for all interfaces- Required:
False
- Type:
List
- Element-Type:
String
- Element-Type:
- Default:
None
- Required:
namespace
- shows external interfaces for a specific ASIC's namespace- Required:
False
- Type:
String
- Default:
None
- Required:
include_internal_intfs
- Whether or not to include internal interfaces- Required:
False
- Type:
Boolean
- Default:
False
- Required:
See the show_interface ansible module for expected output.