Files
Mattias Walström 60676e21be test: operational_all: Harden to catch more
- Test so the value in operational actually is correct
- Move test to last in suite to see that there are no stray
  data in operational (yangerd)
2026-06-27 10:57:22 +02:00
..

=== Get Operational

ifdef::topdoc[:imagesdir: {topdoc}../../test/case/misc/operational_all]

==== Description

Verify each device's operational datastore against its test-config.
The running config is the source of truth, so the checks hold no matter
how interfaces differ between devices:

  1. The operational interfaces are exactly the configured ones: none
     missing, and none present that were never configured.
  2. Features the test-config leaves disabled (NTP, containers, routing
     protocols) emit no operational data.

Both checks use specific-path GETs, which behave the same on NETCONF and
RESTCONF.  A full-datastore GET is not portable: RESTCONF does not serve
the operational datastore root, and NETCONF's operational provider errors
when asked for an empty subtree.

The test has no logical topology; it reads state from whatever DUTs the
physical topology provides.

==== Sequence

. Attach to all DUTs in the topology
. Verify operational interfaces match the test-config
. Verify unconfigured feature subtrees are absent