'netplan get' getting confused with multi-pass parsing

Bug #1981450 reported by Lukas Märdian
This bug affects 1 person
Affects Status Importance Assigned to Milestone

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).


$ cat tmp/etc/netplan/config.yaml
      interfaces: [br1, br1005]
        - from:
        - to: default
      interfaces: []
      interfaces: []

$ netplan get --root-dir=tmp/
  version: 2
    br1: {}
    br1005: {}
      - br1005
      - br1
      - to: "default"
        via: ""
      - from: ""
      - from: ""

=> See the duplicate output of "routing-policy.from". The issue goes away if bridges are defined before the bond.

Revision history for this message
Lukas Märdian (slyon) wrote :

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.

Lukas Märdian (slyon)
Changed in netplan:
status: New → Triaged
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.