mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-30 04:33:00 +02:00
Let's drop the leading IETF or Infix prefixes from tests. Initially the idea was to mimnic the YANG models, but it's difficult to navigate and does not provide any real benefit to developers or end-users. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
=== Route preference: DHCP vs Static
ifdef::topdoc[:imagesdir: {topdoc}../../test/case/routing/route_pref_dhcp]
==== Description
This test configures a device with both a DHCP-acquired route on a
dedicated interface and a static route to the same destination on
another interface.
Initially, DHCP is preferred over Static. Afterwards, the static
route takes precedence by adjusting the routing preference value
to the one lower than DHCP.
==== Topology
image::topology.svg[Route preference: DHCP vs Static topology, align=center, scaledwidth=75%]
==== Sequence
. Set up topology and attach to target DUTs
. Configure targets. Assign higher priority to the dhcp route
. Wait for DHCP and static routes
. Verify connectivity from PC:data12 to R2:lo via DHCP
. Assign higher priority to the static route
. Verify connectivity from PC:data12 to R2:lo via static route