c8b5daed27
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>
11 lines
222 B
Makefile
11 lines
222 B
Makefile
# ifupdown2 package
|
|
|
|
IFUPDOWN2_VERSION = 3.0.0-1
|
|
export IFUPDOWN2_VERSION
|
|
|
|
IFUPDOWN2 = ifupdown2_$(IFUPDOWN2_VERSION)_all.deb
|
|
$(IFUPDOWN2)_SRC_PATH = $(SRC_PATH)/ifupdown2
|
|
SONIC_MAKE_DEBS += $(IFUPDOWN2)
|
|
|
|
export IFUPDOWN2
|