Hi Thomas
That is already very helpful for me. I will have a look at it and try
to write a patch. Let's see if something comes out that works.
Regards,
Adrian
On Sat, 2022-05-14 at 21:33 +0200, Thomas Haller wrote:
> On Fri, 2022-05-13 at 23:23 +0200, Adrian Freihofer via networkmanager-
>
On Sat, 2022-05-14 at 21:54 +0200, Thomas Haller via networkmanager-
list wrote:
> On Sat, 2022-05-14 at 22:43 +0300, Andrei Borzenkov wrote:
> > On 14.05.2022 22:24, Thomas Haller wrote:
> > > Hi,
> > >
> > >
> > > On Sat, 2022-05-14 at 07:38 +0300, Andrei Borzenkov via
> > > networkmanager-
>
Hi
Is it somehow possible to disable an interface via NetworkManager?
I am thinking of something like:
nmcli connection modify con-eth0 802-3-ethernet.phy disabled
nmcli connection up con-eth0
which would basically have the same effect as:
ip link set eth0 down
nmcli connection modify
Add a new "driver" match option to nm-settings. It allows to disable a
network connection configuration if a pattern is found or is not found
in the device driver name.
---
clients/common/nm-meta-setting-desc.c | 45 +++
clients/common/settings-docs.h.in | 1 +
Basically it already seems to work. But I will test it further.
I'd like to know what, if anything, has to be changed for you to accept it.
Usage example:
[match]
interface-name=eth0;
driver=*virtio*;
kernel-command-line=!foo=bar;
Adrian Freihofer (2):
settings: add match for proc cmdline
Add a new "kernel-command-line" match option to nm-settings. It allows
to disable a network connection configuration if a pattern is found or
is not found in /proc/cmdline.
---
clients/common/nm-meta-setting-desc.c | 45 +++
clients/common/settings-docs.h.in | 1 +