IPv4 subcloud failure due to miniboot config
systemd unable to bring up OAM bonded VLAN IF due to miniboot cfg. The autoconf and accept_ra sysctl parameters do not exist for IPv4. The accept_redirects does, but in normal operation we only set these for IPv6. Testing: - Build successful - Successfully bring up IPv4 System Controller & Subcloud - Verify that ifcfg-<ifname> under interfaces.d shows that the sysctl parameters are set to ipv6 - Verify these tests using a miniboot installed IPv4 subcloud Closes-Bug: 2049683 Change-Id: Ib27f86f707796682a3db6641824f9fdbe2f53534 Signed-off-by: Mohammad Issa <mohammad.issa@windriver.com>
This commit is contained in:
parent
c5b611f510
commit
efe618fae3
|
@ -2772,9 +2772,9 @@ function create_network_interface_file()
|
|||
output="${output} gateway $BOOTPARAM_GW\n"
|
||||
fi
|
||||
output="${output} mtu 1500\n"
|
||||
output="${output} post-up echo 0 > /proc/sys/net/${ipversion}/conf/${ifname}/autoconf\n"
|
||||
output="${output} post-up echo 0 > /proc/sys/net/${ipversion}/conf/${ifname}/accept_ra\n"
|
||||
output="${output} post-up echo 0 > /proc/sys/net/${ipversion}/conf/${ifname}/accept_redirects\n"
|
||||
output="${output} post-up echo 0 > /proc/sys/net/ipv6/conf/${ifname}/autoconf\n"
|
||||
output="${output} post-up echo 0 > /proc/sys/net/ipv6/conf/${ifname}/accept_ra\n"
|
||||
output="${output} post-up echo 0 > /proc/sys/net/ipv6/conf/${ifname}/accept_redirects\n"
|
||||
echo -e "${output}" > "${IMAGE_ROOTFS}/etc/network/interfaces.d/ifcfg-${ifname}"
|
||||
else
|
||||
# CONFIGURE FOR VLAN
|
||||
|
@ -2785,9 +2785,9 @@ function create_network_interface_file()
|
|||
# 1. Configure device interface:
|
||||
output="auto ${ifname}\n"
|
||||
output="${output}iface ${ifname} ${address_family} manual\n"
|
||||
output="${output} post-up echo 0 > /proc/sys/net/${ipversion}/conf/${ifname}/autoconf\n"
|
||||
output="${output} post-up echo 0 > /proc/sys/net/${ipversion}/conf/${ifname}/accept_ra\n"
|
||||
output="${output} post-up echo 0 > /proc/sys/net/${ipversion}/conf/${ifname}/accept_redirects\n"
|
||||
output="${output} post-up echo 0 > /proc/sys/net/ipv6/conf/${ifname}/autoconf\n"
|
||||
output="${output} post-up echo 0 > /proc/sys/net/ipv6/conf/${ifname}/accept_ra\n"
|
||||
output="${output} post-up echo 0 > /proc/sys/net/ipv6/conf/${ifname}/accept_redirects\n"
|
||||
echo -e "${output}" > "${IMAGE_ROOTFS}/etc/network/interfaces.d/ifcfg-${ifname}"
|
||||
|
||||
# 2. Configure VLAN interface:
|
||||
|
@ -2799,9 +2799,9 @@ function create_network_interface_file()
|
|||
output="${output} gateway ${BOOTPARAM_GW}\n"
|
||||
fi
|
||||
output="${output} mtu 1500\n"
|
||||
output="${output} post-up echo 0 > /proc/sys/net/${ipversion}/conf/${ifname_vlan}/autoconf\n"
|
||||
output="${output} post-up echo 0 > /proc/sys/net/${ipversion}/conf/${ifname_vlan}/accept_ra\n"
|
||||
output="${output} post-up echo 0 > /proc/sys/net/${ipversion}/conf/${ifname_vlan}/accept_redirects\n"
|
||||
output="${output} post-up echo 0 > /proc/sys/net/ipv6/conf/${ifname_vlan}/autoconf\n"
|
||||
output="${output} post-up echo 0 > /proc/sys/net/ipv6/conf/${ifname_vlan}/accept_ra\n"
|
||||
output="${output} post-up echo 0 > /proc/sys/net/ipv6/conf/${ifname_vlan}/accept_redirects\n"
|
||||
echo -e "${output}" > "${IMAGE_ROOTFS}/etc/network/interfaces.d/ifcfg-${ifname_vlan}"
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue