[Pkg-utopia-maintainers] Bug#983750: Bug#983750: networkmanager: NM takes over slave interfaces of bond

Michael Biebl biebl at debian.org
Mon Mar 1 15:02:04 GMT 2021


Am 01.03.21 um 13:59 schrieb Michel Meyers:

> # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
> 
> # The loopback interface
> auto lo
> iface lo inet loopback
> 
> # The first network card - this entry was created during the Debian 
> installation
> # (network, broadcast and gateway are optional)
> #auto eth0
> auto bond0
> iface bond0 inet static
>          address 192.168.1.2
>          netmask 255.255.255.0
>          gateway 192.168.1.1
>          mtu 9000
>          slaves ens6 eth1



Reading https://www.commandlinux.com/man-page/man5/interfaces.5.html , 
it appears "slave" is no native ifupdown config stanza.
I suppose it is implemented by a third party package?
Which brings me back to my concern, that this is really a losing battle, 
since the interfaces file format is not specified in a way, which would 
make it easy to gather all managed interfaces.

We already special case "bridge-ports" [1], and maybe we could extend 
that to also consider "slaves". But I really don't like that we don't 
have a proper API here.
Maybe you could convince the ifupdown maintainer to provide such an API, 
e.g. via "ifquery", where we could query all interfaces that are managed 
by ifupdown.

Regards,
Michael



[1] 
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/master/src/core/settings/plugins/ifupdown/nms-ifupdown-plugin.c#L255

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-utopia-maintainers/attachments/20210301/a91fd8e2/attachment.sig>


More information about the Pkg-utopia-maintainers mailing list