Skip to content

Commit 77efbdd

Browse files
authored
Merge pull request sonic-net#522 from mssonicbld/sonicbld/202405-merge
[code sync] Merge code from sonic-net/sonic-buildimage:202405 to 202405
2 parents 9e4fd05 + 99f24d6 commit 77efbdd

File tree

15 files changed

+905
-953
lines changed

15 files changed

+905
-953
lines changed

device/mellanox/x86_64-nvidia_sn5600-r0/Mellanox-SN5600-C224O8/port_config.ini

+234-234
Large diffs are not rendered by default.

device/mellanox/x86_64-nvidia_sn5600-r0/Mellanox-SN5600-C256S1/port_config.ini

+258-258
Large diffs are not rendered by default.

device/mellanox/x86_64-nvidia_sn5600-r0/Mellanox-SN5600-O128/port_config.ini

+131-130
Large diffs are not rendered by default.

device/mellanox/x86_64-nvidia_sn5600-r0/Mellanox-SN5600-V256/port_config.ini

+260-259
Large diffs are not rendered by default.

device/nokia/armhf-nokia_ixs7215_52x-r0/Nokia-7215/sai.profile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ mode=1
22
hwId=et6448m
33
SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/profile.ini
44
switchProfile=/usr/share/sonic/hwsku/SAI-M0-48x1G-4x10G.xml
5-
createSwitchTimeout=90
5+
createSwitchTimeout=120
66
customEVlanUpdate=1

dockers/docker-dhcp-relay/wait_for_intf.sh.j2

-20
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,6 @@ function wait_until_iface_ready
2121
echo "Interface ${IFACE_NAME} is ready!"
2222
}
2323

24-
function check_for_ipv6_link_local
25-
{
26-
IFACE_NAME=$1
27-
echo "Waiting until interface ${IFACE_NAME} has a link-local ipv6 address configured...."
28-
29-
# Status of link local address is not populated in STATE_DB
30-
while true; do
31-
HAS_LL=$(ip -6 addr show ${IFACE_NAME} scope link 2> /dev/null)
32-
RC=$?
33-
if [[ ${RC} == "0" ]] && [[ ! -z ${HAS_LL} ]]; then
34-
break
35-
fi
36-
37-
sleep 1
38-
done
39-
40-
echo "Link-Local address is configured on ${IFACE_NAME}"
41-
}
42-
4324
# Wait for all interfaces with IPv4 addresses to be up and ready
4425
# dhcp6relay binds to ipv6 addresses configured on these vlan ifaces
4526
# Thus check if they are ready before launching dhcp6relay
@@ -55,7 +36,6 @@ wait_until_iface_ready {{ name }} {{ prefix }}
5536
{% if prefix | ipv6 %}
5637
{% if DHCP_RELAY and name in DHCP_RELAY %}
5738
wait_until_iface_ready {{ name }} {{ prefix }}
58-
check_for_ipv6_link_local {{ name }}
5939
{% endif %}
6040
{% endif %}
6141
{% endfor %}

dockers/docker-snmp/Dockerfile.j2

+3-2
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,15 @@ RUN apt-get -y purge \
6666
find / | grep -E "__pycache__" | xargs rm -rf && \
6767
rm -rf /debs /python-wheels ~/.cache
6868

69+
COPY ["docker-snmp-init.sh", "/usr/bin/"]
6970
COPY ["start.sh", "/usr/bin/"]
7071
COPY ["snmp_yml_to_configdb.py", "/usr/bin/"]
71-
COPY ["supervisord.conf", "/etc/supervisor/conf.d/"]
7272
COPY ["*.j2", "/usr/share/sonic/templates/"]
7373
COPY ["files/supervisor-proc-exit-listener", "/usr/bin"]
7474
COPY ["critical_processes", "/etc/supervisor"]
7575

7676
# Although exposing ports is not needed for host net mode, keep it for possible bridge mode
7777
EXPOSE 161/udp 162/udp
7878

79-
ENTRYPOINT ["/usr/local/bin/supervisord"]
79+
RUN chmod +x /usr/bin/docker-snmp-init.sh
80+
ENTRYPOINT ["/usr/bin/docker-snmp-init.sh"]
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
#Generate supervisord.conf based on device metadata
3+
mkdir -p /etc/supervisor/conf.d/
4+
sonic-cfggen -d -t /usr/share/sonic/templates/supervisord.conf.j2 > /etc/supervisor/conf.d/supervisord.conf
5+
exec /usr/local/bin/supervisord

dockers/docker-snmp/supervisord.conf dockers/docker-snmp/supervisord.conf.j2

+4
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ dependent_startup=true
5050
dependent_startup_wait_for=start:exited
5151

5252
[program:snmp-subagent]
53+
{% if DEVICE_METADATA['localhost']['switch_type'] == 'chassis-packet' %}
54+
command=/usr/bin/env python3 -m sonic_ax_impl --enable_dynamic_frequency
55+
{% else %}
5356
command=/usr/bin/env python3 -m sonic_ax_impl
57+
{% endif %}
5458
priority=4
5559
autostart=false
5660
autorestart=false

platform/mellanox/fw.mk

+6-6
Original file line numberDiff line numberDiff line change
@@ -21,33 +21,33 @@ MLNX_FW_BASE_PATH = $(MLNX_SDK_BASE_PATH)
2121
# Place an URL here to FW if you want to download FW instead
2222
MLNX_FW_BASE_URL =
2323

24-
SIMX_VERSION = 24.10-1100
24+
SIMX_VERSION = 24.10-1101
2525

2626
FW_FROM_URL = y
2727

28-
MLNX_FW_ASSETS_RELEASE_TAG = fw-2014.2110
28+
MLNX_FW_ASSETS_RELEASE_TAG = fw-2014.2164
2929
MLNX_FW_ASSETS_URL = $(MLNX_ASSETS_GITHUB_URL)/releases/download/$(MLNX_FW_ASSETS_RELEASE_TAG)
3030

3131
ifeq ($(MLNX_FW_BASE_URL), )
3232
MLNX_FW_BASE_URL = $(MLNX_FW_ASSETS_URL)
3333
endif
3434

35-
MLNX_SPC_FW_VERSION = 13.2014.2110
35+
MLNX_SPC_FW_VERSION = 13.2014.2164
3636
MLNX_SPC_FW_FILE = fw-SPC-rel-$(subst .,_,$(MLNX_SPC_FW_VERSION))-EVB.mfa
3737
$(MLNX_SPC_FW_FILE)_PATH = $(MLNX_FW_BASE_PATH)
3838
$(MLNX_SPC_FW_FILE)_URL = $(MLNX_FW_BASE_URL)/$(MLNX_SPC_FW_FILE)
3939

40-
MLNX_SPC2_FW_VERSION = 29.2014.2110
40+
MLNX_SPC2_FW_VERSION = 29.2014.2164
4141
MLNX_SPC2_FW_FILE = fw-SPC2-rel-$(subst .,_,$(MLNX_SPC2_FW_VERSION))-EVB.mfa
4242
$(MLNX_SPC2_FW_FILE)_PATH = $(MLNX_FW_BASE_PATH)
4343
$(MLNX_SPC2_FW_FILE)_URL = $(MLNX_FW_BASE_URL)/$(MLNX_SPC2_FW_FILE)
4444

45-
MLNX_SPC3_FW_VERSION = 30.2014.2110
45+
MLNX_SPC3_FW_VERSION = 30.2014.2164
4646
MLNX_SPC3_FW_FILE = fw-SPC3-rel-$(subst .,_,$(MLNX_SPC3_FW_VERSION))-EVB.mfa
4747
$(MLNX_SPC3_FW_FILE)_PATH = $(MLNX_FW_BASE_PATH)
4848
$(MLNX_SPC3_FW_FILE)_URL = $(MLNX_FW_BASE_URL)/$(MLNX_SPC3_FW_FILE)
4949

50-
MLNX_SPC4_FW_VERSION = 34.2014.2110
50+
MLNX_SPC4_FW_VERSION = 34.2014.2164
5151
MLNX_SPC4_FW_FILE = fw-SPC4-rel-$(subst .,_,$(MLNX_SPC4_FW_VERSION))-EVB.mfa
5252
$(MLNX_SPC4_FW_FILE)_PATH = $(MLNX_FW_BASE_PATH)
5353
$(MLNX_SPC4_FW_FILE)_URL = $(MLNX_FW_BASE_URL)/$(MLNX_SPC4_FW_FILE)

platform/mellanox/mlnx-sai.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Mellanox SAI
22

3-
MLNX_SAI_VERSION = SAIBuild2405.30.0.0
3+
MLNX_SAI_VERSION = SAIBuild2405.30.0.12
44
MLNX_SAI_ASSETS_GITHUB_URL = https://github.com/Mellanox/Spectrum-SDK-Drivers-SONiC-Bins
55
MLNX_SAI_ASSETS_RELEASE_TAG = sai-$(MLNX_SAI_VERSION)-$(BLDENV)-$(CONFIGURED_ARCH)
66
MLNX_SAI_ASSETS_URL = $(MLNX_SAI_ASSETS_GITHUB_URL)/releases/download/$(MLNX_SAI_ASSETS_RELEASE_TAG)

platform/mellanox/sdk.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#
17-
MLNX_SDK_VERSION = 4.7.2110
17+
MLNX_SDK_VERSION = 4.7.2164
1818
MLNX_SDK_ISSU_VERSION = 101
1919

2020
MLNX_SDK_DRIVERS_GITHUB_URL = https://github.com/Mellanox/Spectrum-SDK-Drivers

src/sonic-config-engine/tests/sample_output/py2/wait_for_intf.sh

-20
Original file line numberDiff line numberDiff line change
@@ -21,32 +21,12 @@ function wait_until_iface_ready
2121
echo "Interface ${IFACE_NAME} is ready!"
2222
}
2323

24-
function check_for_ipv6_link_local
25-
{
26-
IFACE_NAME=$1
27-
echo "Waiting until interface ${IFACE_NAME} has a link-local ipv6 address configured...."
28-
29-
# Status of link local address is not populated in STATE_DB
30-
while true; do
31-
HAS_LL=$(ip -6 addr show ${IFACE_NAME} scope link 2> /dev/null)
32-
RC=$?
33-
if [[ ${RC} == "0" ]] && [[ ! -z ${HAS_LL} ]]; then
34-
break
35-
fi
36-
37-
sleep 1
38-
done
39-
40-
echo "Link-Local address is configured on ${IFACE_NAME}"
41-
}
42-
4324
# Wait for all interfaces with IPv4 addresses to be up and ready
4425
# dhcp6relay binds to ipv6 addresses configured on these vlan ifaces
4526
# Thus check if they are ready before launching dhcp6relay
4627
wait_until_iface_ready Vlan2000 192.168.200.1/27
4728
wait_until_iface_ready Vlan1000 192.168.0.1/27
4829
wait_until_iface_ready Vlan1000 fc02:2000::2/24
49-
check_for_ipv6_link_local Vlan1000
5030
wait_until_iface_ready PortChannel02 10.0.0.58/31
5131
wait_until_iface_ready PortChannel03 10.0.0.60/31
5232
wait_until_iface_ready PortChannel04 10.0.0.62/31

src/sonic-config-engine/tests/sample_output/py3/wait_for_intf.sh

-20
Original file line numberDiff line numberDiff line change
@@ -21,30 +21,10 @@ function wait_until_iface_ready
2121
echo "Interface ${IFACE_NAME} is ready!"
2222
}
2323

24-
function check_for_ipv6_link_local
25-
{
26-
IFACE_NAME=$1
27-
echo "Waiting until interface ${IFACE_NAME} has a link-local ipv6 address configured...."
28-
29-
# Status of link local address is not populated in STATE_DB
30-
while true; do
31-
HAS_LL=$(ip -6 addr show ${IFACE_NAME} scope link 2> /dev/null)
32-
RC=$?
33-
if [[ ${RC} == "0" ]] && [[ ! -z ${HAS_LL} ]]; then
34-
break
35-
fi
36-
37-
sleep 1
38-
done
39-
40-
echo "Link-Local address is configured on ${IFACE_NAME}"
41-
}
42-
4324
# Wait for all interfaces with IPv4 addresses to be up and ready
4425
# dhcp6relay binds to ipv6 addresses configured on these vlan ifaces
4526
# Thus check if they are ready before launching dhcp6relay
4627
wait_until_iface_ready Vlan1000 fc02:2000::2/24
47-
check_for_ipv6_link_local Vlan1000
4828
wait_until_iface_ready Vlan1000 192.168.0.1/27
4929
wait_until_iface_ready Vlan2000 192.168.200.1/27
5030
wait_until_iface_ready PortChannel01 10.0.0.56/31

0 commit comments

Comments
 (0)