Files
infix/test/case/system/hostname
Joachim Wiberg 1bbd80d8c7 test: drop leading ietf/infix prefix from directories
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>
2025-11-20 20:23:23 +01:00
..

=== Set hostname

ifdef::topdoc[:imagesdir: {topdoc}../../test/case/system/hostname]

==== Description

Verify that it is possible to set hostname using both regular text and
format specificers, like '%h-%m'.  These format specifiers expand to
'<default hostname>-<MAC>', where MAC is the last three bytes of the
base MAC address.  E.g., ix-01-01-01.

==== Topology

image::topology.svg[Set hostname topology, align=center, scaledwidth=75%]

==== Sequence

. Set up topology and attach to target DUT
. Set hostname to 'h0stn4m3'
. Verify new hostname 'h0stn4m3'
. Set hostname to '%h-%m'
. Verify hostname is  %h-%m in running configuration
. Verify hostname format in operational