Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 1.02 KB

config_ip_intf.md

File metadata and controls

36 lines (29 loc) · 1.02 KB

config_ip_intf

Overview

Allows for addition or removal of ip addresses to existing interfaces on the ASIC instance.

Examples

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")

Arguments

  • interface_name - interface to be configured
    • Required: True
    • Type: String
  • ip_address - IP address to add or remove from the interface
    • Required: True
    • Type: String
  • op - operation to perform
    • Required: True
    • Type: String
    • Choices:
      • add - add ip_address to interface
      • remove- remove ip_adress from interface

Expected Output

See the shell Ansible module for example output.