According to the current documentation[1], there is no way to set bond or bridge parameters. This is a requirement for the MAAS use case.
MAAS passes these parameters in the v1 YAML the same way as they are represented in /etc/network/interfaces[2], inside a 'params' dictionary. This allows interface type specific settings such as spanning-tree and bonding modes to be specified, such as:
br0:
params:
bridge_stp: on
...
bond0:
params:
bond-mode: 4
(Note the quirk there with '-' being used for the bond and '_' for the bridge; this is due to to an inconsistency regarding the /e/n/i syntax.)
I'm tentatively thinking of passing them in the same way, to prevent information loss. But perhaps this could be standardized; a 'params' dictionary could be used for generic OS or renderer-specific settings where there is no guarantee of support, but netplan could standardize commonly-used settings and present them in an "official" after they each parameter has been fully specified.
According to the current documentation[1], there is no way to set bond or bridge parameters. This is a requirement for the MAAS use case.
MAAS passes these parameters in the v1 YAML the same way as they are represented in /etc/network/ interfaces[ 2], inside a 'params' dictionary. This allows interface type specific settings such as spanning-tree and bonding modes to be specified, such as:
br0:
params:
bridge_stp: on
...
bond0:
params:
bond-mode: 4
(Note the quirk there with '-' being used for the bond and '_' for the bridge; this is due to to an inconsistency regarding the /e/n/i syntax.)
I'm tentatively thinking of passing them in the same way, to prevent information loss. But perhaps this could be standardized; a 'params' dictionary could be used for generic OS or renderer-specific settings where there is no guarantee of support, but netplan could standardize commonly-used settings and present them in an "official" after they each parameter has been fully specified.
[1]: /git.launchpad. net/netplan/ tree/doc/ netplan. md
https:/
[2]: /wiki.debian. org/NetworkConf iguration
https:/