get_speed
October 31, 2022 ยท View on GitHub
Overview
Gets configured speed for a given interface.
Examples
def test_fun(duthosts, rand_one_dut_hostname):
duthost = duthosts[rand_one_dut_hostname]
eth0_speed = duthost.get_speed("Ethernet0")
Arguments
interface_name- name of interface to get speed for- Required:
True - Type:
String
- Required:
Expected Output
Returns speed as String in 10G format.