'netplan get' getting confused with multi-pass parsing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Netplan |
Triaged
|
Medium
|
Unassigned |
Bug Description
The `netplan get` CLI can get confused if certain netdefinitions are parsed multiple times (e.g. because they haven't been defined before).
Reproducer:
$ cat tmp/etc/
network:
bonds:
bn0:
interfaces: [br1, br1005]
routing-
- from: 10.10.10.42
routes:
- to: default
via: 10.10.10.4
bridges:
br1:
interfaces: []
br1005:
interfaces: []
$ netplan get --root-dir=tmp/
network:
version: 2
bridges:
br1: {}
br1005: {}
bonds:
bn0:
interfaces:
- br1005
- br1
routes:
- to: "default"
via: "10.10.10.4"
routing-
- from: "10.10.10.42"
- from: "10.10.10.42"
=> See the duplicate output of "routing-
Changed in netplan: | |
status: | New → Triaged |
importance: | Undecided → Medium |
I think we might have more bugs of this "multi-pass parsing" type looming in the code-base, so it might be worth doing a bigger investigation to find them all.