Allows for addition or removal of ip addresses to existing interfaces 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_ip_intf("Ethernet0", "10.0.0.1", "add")
interface_name
- interface to be configured- Required:
True
- Type:
String
- Required:
ip_address
- IP address to add or remove from the interface- Required:
True
- Type:
String
- Required:
op
- operation to perform- Required:
True
- Type:
String
- Choices:
add
- addip_address
to interfaceremove
- removeip_adress
from interface
- Required:
See the shell Ansible module for example output.