Score:0

Netplan doesn't delete bond interface when removed from config

us flag

I have a working bond config, set via Netplan

Example, netplan config:

network:
  bonds:
    bond0:
      addresses: [10.10.10.135/26]
      gateway4: 10.10.10.128
      interfaces: [ens1f0, ens1f1]
      nameservers:
        addresses: [8.8.8.8, 8.8.4.4]
      parameters: {mii-monitor-interval: 100, mode: 802.3ad, transmit-hash-policy: layer3+4}
  ethernets:
    ens1f0: {dhcp4: false}
    ens1f1: {dhcp4: false}
  version: 2

Then I update Netplan config to no longer use a bond:

network:
  ethernets:
    ens1f0: {dhcp4: true}
    ens1f1: {dhcp4: true}
  version: 2

When I apply the netplan config, the individual ethernet interfaces are configured properly, but the bond is not deleted from the system.

I have to manually delete it, ex: ip link delete dev bond0

Why is this? Is there a way to make Netplan apply the config exactly as defined?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.