Comment 1 for bug 2007682

Revision history for this message
Danilo Egea Gondolfo (danilogondolfo) wrote (last edit ):

Hi, thanks for your bug report.

I can confirm that the problem still exists on netplan.io 0.106.

Here is a simpler reproducer:

$ cat /tmp/fakeroot/etc/netplan/90-configs.yaml
network:
  bonds:
    aggi:
      nameservers:
        addresses:
        - 8.8.8.8
        search:
        - example.com
      interfaces:
      - ens3f0
  ethernets:
    ens3f0: {}

$ netplan get --root-dir /tmp/fakeroot/
network:
  version: 2
  ethernets:
    ens3f0: {}
  bonds:
    aggi:
      nameservers:
        addresses:
        - 8.8.8.8
        - 8.8.8.8
        search:
        - example.com
        - example.com
      interfaces:
      - ens3f0

And indeed the duplication doesn't happen if "ethernets" is defined before "bonds".