In NetworkManager there exists the "connection.multi-connect" setting,
to allow a connection profile to be applied to multiple interfaces.
Netplan can currently control it through its
"networkmanager.passthrough" setting, e.g.:
network:
version: 2
renderer: NetworkManager
ethernets:
all-en:
match:
name: "en*"
dhcp4: true
networkmanager:
passthrough:
connection.multi-connect: 3
according to man nm-settings(5):
"
connection.multi-connect
Specifies whether the profile can be active multiple times at a
particular moment. The value is of type
NMConnectionMultiConnect.
Format: choice (NMConnectionMultiConnect)
Valid values: default (0), single (1), manual-multiple (2), multiple
(3)
"
Maybe Netplan should default to "multiple (3)" to match the same
behavior as on systemd-networkd.
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/2012902
Title:
netplan plugin: generated NM config when using globbing will be used
for only one connection
Status in Netplan:
Triaged
Status in network-manager package in Ubuntu:
New
Bug description:
There is a mismatch between what netplan expresses when using globbing
in a netplan file and what NM understands when using a match setting.
For instance:
network:
version: 2
ethernets:
all-en:
match:
name: "en*"
dhcp4: true
Generates a NM connection in /run/NetworkManager/system-connections:
...
[match]
interface-name=en*;
...
But an NM connection can only match one interface, so if two
interfaces like ens2 and ens3 exist, only one of them will be
configured, even though the netplan configuration is expected to be
applied to both.
Solving this might involve generating one NM connection in the netplan
plugin per detected interface.
To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/2012902/+subscriptions
--
Mailing list: https://launchpad.net/~touch-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help : https://help.launchpad.net/ListHelp