Subject: [bug#64616] [PATCH 0/1] services: static-networking: Add support for bonds and vlans

From: Ludovic Courtès <[email-masked]>
Date: Sat, 09 Sep 2023 12:51:28 +0200

Hi Alexey,

Alexey Abramov <[email-masked]> skribis:

> Is that what you meant?  However, after your suggestions... What do you
> think if we could use the name field without type to amend existing
> ones, and for example netlink with mac-address field only, to match
> interfaces by mac. Something like this:
>
> (list (network-link
>        (mac-address "98:11:22:33:44:55")
>        (arguments '((name . "a"))))
>
>       (network-link
>        (mac-address "98:11:22:33:44:56")
>        (arguments '((name . "b"))))
>
>       (network-link
>        (name "bond0")
>        (type "bond")
>        (arguments '((mode . "802.3ad")
>                     (miimon . 100)
>                     (lacp-active . "on")
>                     (lacp-rate . "fast"))))
>       
>       (network-link
>        (name "a")
>        (arguments '((master . "bond0"))))
>
>       (network-link
>        (name "b")
>        (arguments '((master . "bond0"))))
>
>       (network-link
>        (name "bond0.1055")
>        (type "vlan")
>        (arguments '((id . 1055)
>                     (link . "bond0")))))
>
> IMHO this does look better.  What do you think? 

Yes, I like it better too.  Go for it!

Thanks,
Ludo’.