Creates or removes a portchannel on the ASIC instance
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)
output = sonic_asic.config_portchannel("PortChannel0001", "del")
pc_name
- name of portchannel to be configured- Required:
True
- Type:
String
- Required:
op
- operation to be performed on the portchannel- Required:
True
- Type:
String
- Choices:
add
- adds a portchannel with namepc_name
to the ASIC instance.del
- removes portchannel with namepc_name
from the ASIC instance.
- Required:
See the shell Ansible module for example output.