674fac21c1
- Improve random number generation during early Sonic initialization by providing SW updates to Linux entropy value. - Improve handling of platform In-Band management port This commit provides the following updates to the Nokia ixs7215 platform 1. The Marvell Armada-38x SOC requires SW assistance to improve the system entropy value available early on in the Sonic boot sequence. 2. The Nokia ixs7215 platform does not have a dedicated Out-Of-Band (OOB) mgmt port and thus requires additional logic to optionally support configuring front panel port 48 as an In-Band mgmt port. This commit provides additional logic to manage and maintain the operation of this In-Band mgmt port.
29 lines
646 B
Bash
29 lines
646 B
Bash
#!/bin/sh
|
|
|
|
#inband_mgmt
|
|
|
|
inband_mgmt(){
|
|
# In this platform, one of the network ports is used as mgmt interface.
|
|
# This script periodically monitors inband management port eth0 and
|
|
# assigns IP address to eth0 if needed.
|
|
if [ ! -f /host/machine.conf ]; then
|
|
exit 0
|
|
fi
|
|
#wait for n/w port init to complete
|
|
sleep 60
|
|
while :; do
|
|
ip -br link show eth0 2> /dev/null
|
|
if [ $? -eq 0 ]; then
|
|
ip address show eth0 | grep -qw "inet" 2>/dev/null
|
|
if [ $? -ne 0 ]; then
|
|
ifconfig eth0 down
|
|
systemctl restart networking
|
|
fi
|
|
sleep 120
|
|
else
|
|
sleep 3
|
|
fi
|
|
done
|
|
}
|
|
(inband_mgmt > /dev/null)&
|