cloud-init icon indicating copy to clipboard operation
cloud-init copied to clipboard

networkd renderer does not respect accept-ra

Open philsphicas opened this issue 1 year ago • 1 comments

Bug report

The networkd renderer only includes IPv6AcceptRA in the generated files if DHCP is enabled. It should be possible to toggle this setting whenever accept-ra is set, for example, to reject RAs when static IPv4 addressing is used.

Steps to reproduce the problem

This network-config:

network:
    config:
    -   accept-ra: false
        mac_address: 00:11:22:33:44:55
        name: eth0
        subnets:
        -   address: 10.0.0.10/24
            type: static
        type: physical
    version: 1

Should render as:

[Address]
Address=10.0.0.10/24

[Match]
MACAddress=00:11:22:33:44:55
Name=eth0

[Network]
DHCP=no
IPv6AcceptRA=False

philsphicas avatar Feb 20 '24 23:02 philsphicas

Thanks for the bug report @philsphicas . Looks like networkd.py needs an update.

TheRealFalcon avatar Feb 27 '24 18:02 TheRealFalcon

Thanks for the bug report @philsphicas . Looks like networkd.py needs an update.

Hi @TheRealFalcon I noticed that the linked PR got marked as stale ... is there anything that needs updating?

philsphicas avatar Mar 14 '24 00:03 philsphicas

@philsphicas , no sorry about the wait on that. I'll try to get it reviewed this week.

TheRealFalcon avatar Mar 14 '24 12:03 TheRealFalcon