Coverage report (nvctl coverage)
nvctl coverage answers one question about your own network: how much of its
configuration does netverdict read? It imports every config file in a
directory and writes a report per device type and profile. The report is built
so that it can be shared outside the network it was measured on.
nvctl coverage <dir> [--manifest m.json] [--vendor-map map.json] [--min-devices 3] [--top 150] [--json out.json] [--md out.md] [--baseline prev.json] [--jobs N] [--timeout S] [--strict]What it measures
Section titled “What it measures”For each device type and profile:
| Measure | Meaning |
|---|---|
| Lines | Configuration lines read. |
| Modelled | Lines that change the simulated network. |
| Carried | Lines kept and written back, with the reason they change nothing here. |
| No effect | Lines accepted with no effect. |
| Unrecognized | Lines the profile does not know. |
| Incomplete | Lines that point at something the config does not define. |
| Export framing | Lines such as Building configuration... or a prompt at the edges of the text. They are taken off and counted, not read as config. |
| Not read | Lines of files the profile refused, could not read, or timed out on. |
| Import and apply time | Median and maximum per device. |
| Failures | Files that could not be read or timed out. |
The report also lists the most common line shapes, most lines first. A shape is
a line with its values masked by the grammars’ own keyword list, so names and
addresses do not appear. Shapes seen on fewer than --min-devices devices are
not listed one by one.
Options
Section titled “Options”| Option | Effect |
|---|---|
--manifest m.json | Names the estate: each file with its device type. Files not listed are skipped. |
--vendor-map map.json | Maps the manifest’s device types to netverdict profiles. |
--min-devices N | A shape is listed when at least N devices have it. Default 3. |
--top N | List at most N shapes per type. Default 150. |
--json out.json | Write the report as JSON (schema 1). |
--md out.md | Write the report as Markdown. |
--baseline prev.json | Compare with an earlier JSON report. |
--jobs N | Parallel imports. Default: the number of CPUs. |
--timeout S | Seconds per file before it counts as a failure. Default 120. |
--strict | Refuse to write a report that would carry anything from the input. |
Without a vendor map, the profile is detected from the content. An APIC dump is
read as cisco-aci. A format with no profile is refused and counted, not
guessed.
Sharing the report: --strict
Section titled “Sharing the report: --strict”With --strict, the finished report is checked before anything is written. It
must contain no IP address and no word from the input: no hostname from the
configs, no file name, and no manifest value except the device type. If it
would, nothing is written and the command exits with status 3.
Gating a change: --baseline
Section titled “Gating a change: --baseline”With --baseline, the new report is compared with an earlier one, type by
type, with the shapes that are new, gone or changed. If a device type now has a
larger share of unrecognized lines or more incomplete lines, or more files
fail, the command exits with status 1. Timing is shown but does not fail the
gate. Use it in CI to stop a netverdict
upgrade, or a config change, that reads less of your network.
Exit status
Section titled “Exit status”| Status | Meaning |
|---|---|
| 0 | The report was written. |
| 1 | The report was written, and it is worse than the baseline. |
| 3 | Usage error, or --strict refused to write. |
How each line is classed
Section titled “How each line is classed”The importers give every line they do not model a note with one of four classes. The coverage report counts them:
| Class | Meaning |
|---|---|
unrecognized: | The profile does not know the line. |
no effect: | The line is accepted and changes nothing in the simulation. |
incomplete: | The line refers to something the config does not define, or misses a part the box needs. |
remark: | A note about the device, not about one line. For example: a Check Point Gaia export has no security policy (it is on the management server), or a NetScaler address was placed on one port of a VLAN with several. |
Each line is noted at most as often as the file holds it.