Files
infix/test/case/ietf_interfaces/veth_delete
Joachim Wiberg c8437f040a test: verify VETH pairs can be removed
Verify a VETH pair can be removed after a couple of dummy operations to
step the dagger generation past the initial where the pair is created.

NOTE: Infamy currenly lacks support for removing chunks of configuraion
      e.g., a dut.del_config_dict(), or similar, and delete_xpath() is
      not valid for configurations with dependencies like VETH pairs.

Issue #658

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2024-09-27 13:08:26 +02:00
..
2024-09-27 13:08:26 +02:00

=== Verify that VETH pairs can be deleted
==== Description
```
     veth0b       veth0a        e1    e2
          `---------'
```

Each test step to create, add address, or delete an interace is distinct
from any other step.  This to trigger a new configuration "generation".

==== Topology
ifdef::topdoc[]
image::../../test/case/ietf_interfaces/veth_delete/topology.png[Verify that VETH pairs can be deleted topology]
endif::topdoc[]
ifndef::topdoc[]
ifdef::testgroup[]
image::veth_delete/topology.png[Verify that VETH pairs can be deleted topology]
endif::testgroup[]
ifndef::testgroup[]
image::topology.png[Verify that VETH pairs can be deleted topology]
endif::testgroup[]
endif::topdoc[]
==== Test sequence
. Initialize
. Create VETH pair
. Verify VETH pair exists
. Set IP address on target:eth0 (dummy op)
. Set IP address on target:eth1 (dummy op)
. Reset configuration
. Verify target:eth0 and target:eth1 still exist
. Verify VETH pair have been removed


<<<