[LEDE-DEV] [PATCH] base-files: config_generate: keep ipv6 interface in sync

Hans Dedecker dedeckeh at gmail.com
Tue Dec 5 11:52:19 PST 2017


On Tue, Dec 5, 2017 at 5:22 PM, Roman Yeryomin <roman at advem.lv> wrote:
> It's better not to configure ifname separately since they
> are tied together.
>
> Signed-off-by: Roman Yeryomin <roman at advem.lv>
> ---
>  package/base-files/files/bin/config_generate | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/package/base-files/files/bin/config_generate b/package/base-files/files/bin/config_generate
> index a8311fc595..d7a6829d77 100755
> --- a/package/base-files/files/bin/config_generate
> +++ b/package/base-files/files/bin/config_generate
> @@ -113,7 +113,7 @@ generate_network() {
>                                 set network.$1.proto='dhcp'
>                                 delete network.${1}6
>                                 set network.${1}6='interface'
> -                               set network.${1}6.ifname='$ifname'
> +                               set network.${1}6.ifname='@${1}'
>                                 set network.${1}6.proto='dhcpv6'
>                         EOF
>                 ;;
> --
> 2.14.1
NACK

This makes the IPv6 interface dependant on the operational status of
the IPv4 interface; meaning the IPv6 interface will not be started if
the IPv4 interface does not get an IP address.
Especially this would break wan connectivity if the  wan link only supports IPv6

Hans
>
> _______________________________________________
> Lede-dev mailing list
> Lede-dev at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/lede-dev



More information about the Lede-dev mailing list