Files
infix/test/case/ietf_system/hostname
Joachim Wiberg 313554d12e test/case: minor, cleanup
- Drop redundant comments
 - Drop redundant imports
 - PEP-8 fixes

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2025-09-01 14:03:51 +02:00
..
2025-09-01 14:03:51 +02:00
2025-09-01 14:03:51 +02:00

=== Set hostname
==== Description
Verify that it is possible to change hostname both normal
and using format %h-%m.

The %h-%m format expands to <default hostname>-<MAC>,
where MAC is the last three bytes of the base MAC address.

e.g. ix-01-01-01.

==== Topology
ifdef::topdoc[]
image::{topdoc}../../test/case/ietf_system/hostname/topology.svg[Set hostname topology]
endif::topdoc[]
ifndef::topdoc[]
ifdef::testgroup[]
image::hostname/topology.svg[Set hostname topology]
endif::testgroup[]
ifndef::testgroup[]
image::topology.svg[Set hostname topology]
endif::testgroup[]
endif::topdoc[]
==== Test 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


<<<