mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-28 11:43:01 +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>
=== 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