Programs iptable rule to either add or remove DROP for BGP control frames
def test_fun(duthosts, rand_one_dut_hostname, tbinfo, enum_frontend_asic_index):
duthost = duthosts[rand_one_dut_hostname]
sonic_asic = duthost.asic_instance(asic_index=enum_frontend_asic_index)
sonic_asic.bgp_drop_rule("IPv4", state="absent")
ip_version
- Whether protocol version 4 or 6 is being used- Required:
True
- Type:
String
- Choices:
IPv4
IPv6
- Required:
state
- Whether to remove or add DROP rule- Required:
False
- Type:
String
- Default:
present
- Choices:
present
- adds the rule or keeps it presentabsent
- removes the rule or does nothing if it was not there
- Required:
Provides no output.