sonic-buildimage/files/image_config/interfaces
Saikrishna Arcot c8b5daed27 Upgrade to ifupdown2 3.0.0 with a patch to fix using broadcast addresses
In version 3.0.0, If a broadcast address is specified in
/etc/network/interfaces, then when ifup is run, it will fail with an
error saying `'str' object has no attribute 'packed'`. This appears to
be because it expects all attributes for an interface to be "packable"
into a compact binary representation. However, it doesn't actually
convert the broadcast address into an IPNetwork object (other addresses
are handled).

Therefore, convert the broadcast address it reads in from a str to an
IPNetwork object.

Also explicitly specify the scope of the loopback address in
/etc/network/interfaces as host scope. Otherwise, it will get added as
global scope by default. As part of this, use JSON to parse ip's output
instead of text, for robustness.

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
2021-08-12 23:18:01 -07:00
..
init_interfaces [sonic boot] disable dhcp during boot up, until updategraph service is running (#2316) 2018-11-29 08:34:22 -08:00
interfaces-config.service [services] introduce sonic.target (#5705) 2021-02-25 14:26:24 +02:00
interfaces-config.sh [interfaces] Reduce Calls to SONiC Cfggen (#5174) 2020-08-17 15:46:52 -07:00
interfaces.j2 Upgrade to ifupdown2 3.0.0 with a patch to fix using broadcast addresses 2021-08-12 23:18:01 -07:00