Skip to content

(Maybe) Multiple Network Rendering Bugs #6859

@bin456789

Description

@bin456789

These are my subjective judgments. They might bugs, or not. Not tested.
Developers can close this thread at any time.


1

if subnet.get("type").endswith("6") or is_ipv6_address(

If this line also applies to network config v1. The v1 types ipv6_dhcpv6-stateful, ipv6_dhcpv6-stateless, and ipv6_slaac results false here

Obviously, it is handled well here:

if subnet["type"].endswith("6") or subnet["type"] in IPV6_DYNAMIC_TYPES:

2

As far as I know, in the Subnet type of network configuration, dhcp6 is equivalent to ipv6_dhcpv6-stateful.
However, in the following places, dhcp6 and ipv6_dhcpv6-stateful are treated differently, resulting in different outcomes:

method_map = {
"static": "manual",
"static6": "manual",
"dhcp6": "auto",
"ipv6_slaac": "auto",
"ipv6_dhcpv6-stateless": "auto",
"ipv6_dhcpv6-stateful": "dhcp",
"dhcp4": "auto",
"dhcp": "auto",
}

if subnet_type in [
"ipv6_dhcpv6-stateful",
"ipv6_dhcpv6-stateless",
"ipv6_slaac",
]:

elif t == "dhcp6":

subnet_type == "ipv6_dhcpv6-stateful"

The last one I previously reported #4615
There might be similar issues elsewhere.

3

if (
subnet["type"] == "dhcp4"
or subnet["type"] == "dhcp6"
or subnet["type"] == "ipv6_dhcpv6-stateful"
):

Similar issues. dhcp is equivalent to dhcp4.
Should add dhcp here

4

if network_state.use_ipv6:
netcfg.append("NETWORKING_IPV6=yes")
netcfg.append("IPV6_AUTOCONF=no")

IPV6_AUTOCONF=no is set here. It should be enabled by default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions