mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-22 09:13:01 +02:00
- 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)
=== 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