Gets configured speed for a given interface.
def test_fun(duthosts, rand_one_dut_hostname):
duthost = duthosts[rand_one_dut_hostname]
eth0_speed = duthost.get_speed("Ethernet0")
interface_name
- name of interface to get speed for- Required:
True
- Type:
String
- Required:
Returns speed as String
in 10G
format.