Skip to content

no $ipv6_dhcp_duid for IPv6 method 'auto' #29

Description

@kbucheli

Using current main branch I get the error

IPv6 method for connection 'upstream' is 'auto' but no $ipv6_dhcp_duid was supplied. (file: /srv/puppet/code/preprod/code/modules/networkmanager/manifests/ifc/connection.pp, line: 149, column: 7)

with below interface configuration:

networkmanager::ifc::connection {
  'upstream':
    ensure         => present,
    interface_name => 'ens4f0',
    ipv4_method    => 'manual',
    ipv4_address   => '10.10.110.57/24',
    ipv4_gateway   => '10.10.110.1',
}

This causes that the default ipv6_method auto is used, but the code to calculate ipv6.dhcp-duid expects a MAC address which is missing here.

I wonder why there should be a hard requirement for this setting, because the NetworkManager manual states:

When the property is unset, the global value provided for "ipv6.dhcp-duid" is used. If no global value is provided, the default "lease" value is assumed.

So I guess it would be OK to just leave that unset.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions