Commit ef86fea
committed
tests: topotests/ospf_yang_startup_config: verify startup config-file batching
Add a single-router topology that exercises the daemon-direct
startup config-file batching path added by
lib: batch direct-daemon config-file loads into one NB transaction
The ospfd fixture places
area 0.0.0.61 default-cost 31
area 0.0.0.61 stub no-summary
with default-cost *before* the stub-area line. With per-line commit
the first line fails RFC 9129's "default-cost is valid only on
stub/NSSA areas" when clause and the daemon never reaches the
stub-area line. Only the batched path, where the whole file commits
in one northbound transaction, lets the two leaves validate against
each other and both end up in the committed running configuration.
The ospf6d fixture carries a matching stub area without default-cost
(v3 has no default-cost surface) so the v3 startup-batching code path
is exercised too.
The test asserts both stub-area lines are present in show
running-config after the topology has started.
Signed-off-by: Eric Parsonage <eric@eparsonage.com>1 parent bc19a2b commit ef86fea
5 files changed
Lines changed: 72 additions & 0 deletions
File tree
- tests/topotests/ospf_yang_startup_config
- r1
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 59 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
0 commit comments