From 973fb9e494ebf522a87eea6d8192e70961454a7a Mon Sep 17 00:00:00 2001
From: kellyyeh <42761586+kellyyeh@users.noreply.github.com>
Date: Wed, 24 Aug 2022 19:53:11 -0700
Subject: [PATCH 1/9] [dhcp_relay] Add "vlan missing ip helper" dhcp relay
unittest (#10654) (#11794)
---
.../docker-dhcp-relay/dhcp-relay.monitors.j2 | 5 +-
.../docker-dhcp-relay/dhcp-relay.programs.j2 | 10 +-
.../docker-dhcp-relay/dhcpv6-relay.agents.j2 | 9 +-
.../docker-dhcp-relay.supervisord.conf.j2 | 4 +-
...r-dhcp-relay-no-ip-helper.supervisord.conf | 80 ++
.../py2/docker-dhcp-relay.supervisord.conf | 30 +-
...r-dhcp-relay-no-ip-helper.supervisord.conf | 80 ++
.../py3/docker-dhcp-relay.supervisord.conf | 30 +-
.../tests/t0-sample-graph.xml | 3 +-
.../tests/t0-sample-no-ip-helper-graph.xml | 938 ++++++++++++++++++
src/sonic-config-engine/tests/test_j2files.py | 7 +
11 files changed, 1173 insertions(+), 23 deletions(-)
create mode 100644 src/sonic-config-engine/tests/sample_output/py2/docker-dhcp-relay-no-ip-helper.supervisord.conf
create mode 100644 src/sonic-config-engine/tests/sample_output/py3/docker-dhcp-relay-no-ip-helper.supervisord.conf
create mode 100644 src/sonic-config-engine/tests/t0-sample-no-ip-helper-graph.xml
diff --git a/dockers/docker-dhcp-relay/dhcp-relay.monitors.j2 b/dockers/docker-dhcp-relay/dhcp-relay.monitors.j2
index ae11105ae3ba..0928bac22d4d 100644
--- a/dockers/docker-dhcp-relay/dhcp-relay.monitors.j2
+++ b/dockers/docker-dhcp-relay/dhcp-relay.monitors.j2
@@ -6,7 +6,7 @@ programs=
{% if VLAN and vlan_name in VLAN and 'dhcp_servers' in VLAN[vlan_name] and VLAN[vlan_name]['dhcp_servers']|length > 0 %}
{% set _dummy = monitor_instance.update({'flag': True}) %}
{%- endif %}
-{% if VLAN and vlan_name in VLAN and 'dhcpv6_servers' in VLAN[vlan_name] and VLAN[vlan_name]['dhcpv6_servers']|length > 0 %}
+{% if DHCP_RELAY and vlan_name in DHCP_RELAY and DHCP_RELAY[vlan_name]['dhcpv6_servers']|length > 0 %}
{% set _dummy = monitor_instance.update({'flag': True}) %}
{%- endif %}
{% if monitor_instance.flag %}
@@ -31,7 +31,7 @@ dhcpmon-{{ vlan_name }}
{% endfor %}
{% endif %}
{# Check DHCPv6 agents #}
-{% if VLAN and vlan_name in VLAN and 'dhcpv6_servers' in VLAN[vlan_name] and VLAN[vlan_name]['dhcpv6_servers']|length > 0 %}
+{% if DHCP_RELAY and vlan_name in DHCP_RELAY and DHCP_RELAY[vlan_name]['dhcpv6_servers']|length > 0 %}
{% for dhcpv6_server in VLAN[vlan_name]['dhcpv6_servers'] %}
{% if dhcpv6_server | ipv6 %}
{% set _dummy = relay_for_ipv6.update({'flag': True}) %}
@@ -68,7 +68,6 @@ stderr_logfile=syslog
dependent_startup=true
dependent_startup_wait_for=
{%- if relay_for_ipv4.flag %}isc-dhcpv4-relay-{{ vlan_name }}:running {% endif %}
-{% if relay_for_ipv6.flag %}dhcp6relay:running{% endif %}
{% set _dummy = relay_for_ipv4.update({'flag': False}) %}
diff --git a/dockers/docker-dhcp-relay/dhcp-relay.programs.j2 b/dockers/docker-dhcp-relay/dhcp-relay.programs.j2
index 9cb0c03876d6..d539d895a5bb 100644
--- a/dockers/docker-dhcp-relay/dhcp-relay.programs.j2
+++ b/dockers/docker-dhcp-relay/dhcp-relay.programs.j2
@@ -1,5 +1,6 @@
[group:dhcp-relay]
programs=
+{%- set relay_for_ipv6 = { 'flag': False } %}
{%- set add_preceding_comma = { 'flag': False } %}
{% for vlan_name in VLAN_INTERFACE %}
{# Append DHCPv4 agents #}
@@ -8,10 +9,13 @@ programs=
{% set _dummy = add_preceding_comma.update({'flag': True}) %}
isc-dhcpv4-relay-{{ vlan_name }}
{%- endif %}
+{% if DHCP_RELAY and vlan_name in DHCP_RELAY and DHCP_RELAY[vlan_name]['dhcpv6_servers']|length > 0 %}
+{% set _dummy = relay_for_ipv6.update({'flag': True}) %}
+{%- endif %}
+{% endfor %}
{# Append DHCPv6 agents #}
-{% if VLAN and vlan_name in VLAN and 'dhcpv6_servers' in VLAN[vlan_name] and VLAN[vlan_name]['dhcpv6_servers']|length > 0 %}
+{% if relay_for_ipv6.flag %}
{% if add_preceding_comma.flag %},{% endif %}
{% set _dummy = add_preceding_comma.update({'flag': True}) %}
dhcp6relay
-{%- endif %}
-{% endfor %}
+{% endif %}
diff --git a/dockers/docker-dhcp-relay/dhcpv6-relay.agents.j2 b/dockers/docker-dhcp-relay/dhcpv6-relay.agents.j2
index 218c95320edc..cca0b1c4b21a 100644
--- a/dockers/docker-dhcp-relay/dhcpv6-relay.agents.j2
+++ b/dockers/docker-dhcp-relay/dhcpv6-relay.agents.j2
@@ -1,15 +1,17 @@
{# Append DHCPv6 agents #}
-{% if VLAN and vlan_name in VLAN and 'dhcpv6_servers' in VLAN[vlan_name] and VLAN[vlan_name]['dhcpv6_servers']|length > 0 %}
-{% for dhcpv6_server in VLAN[vlan_name]['dhcpv6_servers'] %}
+{% for vlan_name in VLAN_INTERFACE %}
+{% if DHCP_RELAY and vlan_name in DHCP_RELAY and DHCP_RELAY[vlan_name]['dhcpv6_servers']|length > 0 %}
+{% for dhcpv6_server in DHCP_RELAY[vlan_name]['dhcpv6_servers'] %}
{% if dhcpv6_server | ipv6 %}
{% set _dummy = relay_for_ipv6.update({'flag': True}) %}
{% endif %}
{% endfor %}
+{% endif %}
+{% endfor %}
{% if relay_for_ipv6.flag %}
{% set _dummy = relay_for_ipv6.update({'flag': False}) %}
[program:dhcp6relay]
command=/usr/sbin/dhcp6relay
-
priority=3
autostart=false
autorestart=false
@@ -19,4 +21,3 @@ dependent_startup=true
dependent_startup_wait_for=start:exited
{% endif %}
-{% endif %}
diff --git a/dockers/docker-dhcp-relay/docker-dhcp-relay.supervisord.conf.j2 b/dockers/docker-dhcp-relay/docker-dhcp-relay.supervisord.conf.j2
index 41a13dd496ad..ddd93bb28644 100644
--- a/dockers/docker-dhcp-relay/docker-dhcp-relay.supervisord.conf.j2
+++ b/dockers/docker-dhcp-relay/docker-dhcp-relay.supervisord.conf.j2
@@ -48,7 +48,7 @@ dependent_startup_wait_for=rsyslogd:running
{% if VLAN and vlan_name in VLAN and 'dhcp_servers' in VLAN[vlan_name] and VLAN[vlan_name]['dhcp_servers']|length > 0 %}
{% set _dummy = ipv4_num_relays.update({'count': ipv4_num_relays.count + 1}) %}
{% endif %}
-{% if VLAN and vlan_name in VLAN and 'dhcpv6_servers' in VLAN[vlan_name] and VLAN[vlan_name]['dhcpv6_servers']|length > 0 %}
+{% if DHCP_RELAY and vlan_name in DHCP_RELAY and DHCP_RELAY[vlan_name]['dhcpv6_servers']|length > 0 %}
{% set _dummy = ipv6_num_relays.update({'count': ipv6_num_relays.count + 1}) %}
{% endif %}
{% endfor %}
@@ -62,9 +62,9 @@ dependent_startup_wait_for=rsyslogd:running
{% set relay_for_ipv6 = { 'flag': False } %}
{% for vlan_name in VLAN_INTERFACE %}
{% include 'dhcpv4-relay.agents.j2' %}
-{% include 'dhcpv6-relay.agents.j2' %}
{% endfor %}
+{% include 'dhcpv6-relay.agents.j2' %}
{% include 'dhcp-relay.monitors.j2' %}
{% endif %}
{% endif %}
diff --git a/src/sonic-config-engine/tests/sample_output/py2/docker-dhcp-relay-no-ip-helper.supervisord.conf b/src/sonic-config-engine/tests/sample_output/py2/docker-dhcp-relay-no-ip-helper.supervisord.conf
new file mode 100644
index 000000000000..c36dbe22533b
--- /dev/null
+++ b/src/sonic-config-engine/tests/sample_output/py2/docker-dhcp-relay-no-ip-helper.supervisord.conf
@@ -0,0 +1,80 @@
+[supervisord]
+logfile_maxbytes=1MB
+logfile_backups=2
+nodaemon=true
+
+[eventlistener:dependent-startup]
+command=python3 -m supervisord_dependent_startup
+autostart=true
+autorestart=unexpected
+startretries=0
+exitcodes=0,3
+events=PROCESS_STATE
+buffer_size=1024
+
+[eventlistener:supervisor-proc-exit-listener]
+command=/usr/bin/supervisor-proc-exit-listener --container-name dhcp_relay
+events=PROCESS_STATE_EXITED,PROCESS_STATE_RUNNING
+autostart=true
+autorestart=unexpected
+buffer_size=1024
+
+[program:rsyslogd]
+command=/usr/sbin/rsyslogd -n -iNONE
+priority=1
+autostart=false
+autorestart=false
+stdout_logfile=syslog
+stderr_logfile=syslog
+dependent_startup=true
+
+[program:start]
+command=/usr/bin/start.sh
+priority=2
+autostart=false
+autorestart=false
+startsecs=0
+stdout_logfile=syslog
+stderr_logfile=syslog
+dependent_startup=true
+dependent_startup_wait_for=rsyslogd:running
+
+[group:dhcp-relay]
+programs=isc-dhcpv4-relay-Vlan1000,dhcp6relay
+
+
+[program:isc-dhcpv4-relay-Vlan1000]
+command=/usr/sbin/dhcrelay -d -m discard -a %%h:%%p %%P --name-alias-map-file /tmp/port-name-alias-map.txt -id Vlan1000 -iu Vlan2000 -iu PortChannel02 -iu PortChannel03 -iu PortChannel04 -iu PortChannel01 192.0.0.1 192.0.0.2
+priority=3
+autostart=false
+autorestart=false
+stdout_logfile=syslog
+stderr_logfile=syslog
+dependent_startup=true
+dependent_startup_wait_for=start:exited
+
+
+[program:dhcp6relay]
+command=/usr/sbin/dhcp6relay
+priority=3
+autostart=false
+autorestart=false
+stdout_logfile=syslog
+stderr_logfile=syslog
+dependent_startup=true
+dependent_startup_wait_for=start:exited
+
+[group:dhcpmon]
+programs=dhcpmon-Vlan1000
+
+[program:dhcpmon-Vlan1000]
+command=/usr/sbin/dhcpmon -id Vlan1000 -iu Vlan2000 -iu PortChannel02 -iu PortChannel03 -iu PortChannel04 -iu PortChannel01 -im eth0
+priority=4
+autostart=false
+autorestart=false
+stdout_logfile=syslog
+stderr_logfile=syslog
+dependent_startup=true
+dependent_startup_wait_for=isc-dhcpv4-relay-Vlan1000:running
+
+
diff --git a/src/sonic-config-engine/tests/sample_output/py2/docker-dhcp-relay.supervisord.conf b/src/sonic-config-engine/tests/sample_output/py2/docker-dhcp-relay.supervisord.conf
index 407ac2c80bc9..9d4a9d22de47 100644
--- a/src/sonic-config-engine/tests/sample_output/py2/docker-dhcp-relay.supervisord.conf
+++ b/src/sonic-config-engine/tests/sample_output/py2/docker-dhcp-relay.supervisord.conf
@@ -40,7 +40,8 @@ dependent_startup=true
dependent_startup_wait_for=rsyslogd:running
[group:dhcp-relay]
-programs=isc-dhcpv4-relay-Vlan1000,dhcp6relay
+programs=isc-dhcpv4-relay-Vlan1000,isc-dhcpv4-relay-Vlan2000,dhcp6relay
+
[program:isc-dhcpv4-relay-Vlan1000]
command=/usr/sbin/dhcrelay -d -m discard -a %%h:%%p %%P --name-alias-map-file /tmp/port-name-alias-map.txt -id Vlan1000 -iu Vlan2000 -iu PortChannel02 -iu PortChannel03 -iu PortChannel04 -iu PortChannel01 192.0.0.1 192.0.0.2
@@ -52,9 +53,19 @@ stderr_logfile=syslog
dependent_startup=true
dependent_startup_wait_for=start:exited
+[program:isc-dhcpv4-relay-Vlan2000]
+command=/usr/sbin/dhcrelay -d -m discard -a %%h:%%p %%P --name-alias-map-file /tmp/port-name-alias-map.txt -id Vlan2000 -iu Vlan1000 -iu PortChannel02 -iu PortChannel03 -iu PortChannel04 -iu PortChannel01 192.0.0.3 192.0.0.4
+priority=3
+autostart=false
+autorestart=false
+stdout_logfile=syslog
+stderr_logfile=syslog
+dependent_startup=true
+dependent_startup_wait_for=start:exited
+
+
[program:dhcp6relay]
command=/usr/sbin/dhcp6relay
-
priority=3
autostart=false
autorestart=false
@@ -63,9 +74,8 @@ stderr_logfile=syslog
dependent_startup=true
dependent_startup_wait_for=start:exited
-
[group:dhcpmon]
-programs=dhcpmon-Vlan1000
+programs=dhcpmon-Vlan1000,dhcpmon-Vlan2000
[program:dhcpmon-Vlan1000]
command=/usr/sbin/dhcpmon -id Vlan1000 -iu Vlan2000 -iu PortChannel02 -iu PortChannel03 -iu PortChannel04 -iu PortChannel01 -im eth0
@@ -75,6 +85,16 @@ autorestart=false
stdout_logfile=syslog
stderr_logfile=syslog
dependent_startup=true
-dependent_startup_wait_for=isc-dhcpv4-relay-Vlan1000:running dhcp6relay:running
+dependent_startup_wait_for=isc-dhcpv4-relay-Vlan1000:running
+
+[program:dhcpmon-Vlan2000]
+command=/usr/sbin/dhcpmon -id Vlan2000 -iu Vlan1000 -iu PortChannel02 -iu PortChannel03 -iu PortChannel04 -iu PortChannel01 -im eth0
+priority=4
+autostart=false
+autorestart=false
+stdout_logfile=syslog
+stderr_logfile=syslog
+dependent_startup=true
+dependent_startup_wait_for=isc-dhcpv4-relay-Vlan2000:running
diff --git a/src/sonic-config-engine/tests/sample_output/py3/docker-dhcp-relay-no-ip-helper.supervisord.conf b/src/sonic-config-engine/tests/sample_output/py3/docker-dhcp-relay-no-ip-helper.supervisord.conf
new file mode 100644
index 000000000000..35ad0c48b82f
--- /dev/null
+++ b/src/sonic-config-engine/tests/sample_output/py3/docker-dhcp-relay-no-ip-helper.supervisord.conf
@@ -0,0 +1,80 @@
+[supervisord]
+logfile_maxbytes=1MB
+logfile_backups=2
+nodaemon=true
+
+[eventlistener:dependent-startup]
+command=python3 -m supervisord_dependent_startup
+autostart=true
+autorestart=unexpected
+startretries=0
+exitcodes=0,3
+events=PROCESS_STATE
+buffer_size=1024
+
+[eventlistener:supervisor-proc-exit-listener]
+command=/usr/bin/supervisor-proc-exit-listener --container-name dhcp_relay
+events=PROCESS_STATE_EXITED,PROCESS_STATE_RUNNING
+autostart=true
+autorestart=unexpected
+buffer_size=1024
+
+[program:rsyslogd]
+command=/usr/sbin/rsyslogd -n -iNONE
+priority=1
+autostart=false
+autorestart=false
+stdout_logfile=syslog
+stderr_logfile=syslog
+dependent_startup=true
+
+[program:start]
+command=/usr/bin/start.sh
+priority=2
+autostart=false
+autorestart=false
+startsecs=0
+stdout_logfile=syslog
+stderr_logfile=syslog
+dependent_startup=true
+dependent_startup_wait_for=rsyslogd:running
+
+[group:dhcp-relay]
+programs=isc-dhcpv4-relay-Vlan1000,dhcp6relay
+
+
+[program:isc-dhcpv4-relay-Vlan1000]
+command=/usr/sbin/dhcrelay -d -m discard -a %%h:%%p %%P --name-alias-map-file /tmp/port-name-alias-map.txt -id Vlan1000 -iu Vlan2000 -iu PortChannel01 -iu PortChannel02 -iu PortChannel03 -iu PortChannel04 192.0.0.1 192.0.0.2
+priority=3
+autostart=false
+autorestart=false
+stdout_logfile=syslog
+stderr_logfile=syslog
+dependent_startup=true
+dependent_startup_wait_for=start:exited
+
+
+[program:dhcp6relay]
+command=/usr/sbin/dhcp6relay
+priority=3
+autostart=false
+autorestart=false
+stdout_logfile=syslog
+stderr_logfile=syslog
+dependent_startup=true
+dependent_startup_wait_for=start:exited
+
+[group:dhcpmon]
+programs=dhcpmon-Vlan1000
+
+[program:dhcpmon-Vlan1000]
+command=/usr/sbin/dhcpmon -id Vlan1000 -iu Vlan2000 -iu PortChannel01 -iu PortChannel02 -iu PortChannel03 -iu PortChannel04 -im eth0
+priority=4
+autostart=false
+autorestart=false
+stdout_logfile=syslog
+stderr_logfile=syslog
+dependent_startup=true
+dependent_startup_wait_for=isc-dhcpv4-relay-Vlan1000:running
+
+
diff --git a/src/sonic-config-engine/tests/sample_output/py3/docker-dhcp-relay.supervisord.conf b/src/sonic-config-engine/tests/sample_output/py3/docker-dhcp-relay.supervisord.conf
index 5456409738e6..7ea29dfcd635 100644
--- a/src/sonic-config-engine/tests/sample_output/py3/docker-dhcp-relay.supervisord.conf
+++ b/src/sonic-config-engine/tests/sample_output/py3/docker-dhcp-relay.supervisord.conf
@@ -40,7 +40,8 @@ dependent_startup=true
dependent_startup_wait_for=rsyslogd:running
[group:dhcp-relay]
-programs=isc-dhcpv4-relay-Vlan1000,dhcp6relay
+programs=isc-dhcpv4-relay-Vlan1000,isc-dhcpv4-relay-Vlan2000,dhcp6relay
+
[program:isc-dhcpv4-relay-Vlan1000]
command=/usr/sbin/dhcrelay -d -m discard -a %%h:%%p %%P --name-alias-map-file /tmp/port-name-alias-map.txt -id Vlan1000 -iu Vlan2000 -iu PortChannel01 -iu PortChannel02 -iu PortChannel03 -iu PortChannel04 192.0.0.1 192.0.0.2
@@ -52,9 +53,19 @@ stderr_logfile=syslog
dependent_startup=true
dependent_startup_wait_for=start:exited
+[program:isc-dhcpv4-relay-Vlan2000]
+command=/usr/sbin/dhcrelay -d -m discard -a %%h:%%p %%P --name-alias-map-file /tmp/port-name-alias-map.txt -id Vlan2000 -iu Vlan1000 -iu PortChannel01 -iu PortChannel02 -iu PortChannel03 -iu PortChannel04 192.0.0.3 192.0.0.4
+priority=3
+autostart=false
+autorestart=false
+stdout_logfile=syslog
+stderr_logfile=syslog
+dependent_startup=true
+dependent_startup_wait_for=start:exited
+
+
[program:dhcp6relay]
command=/usr/sbin/dhcp6relay
-
priority=3
autostart=false
autorestart=false
@@ -63,9 +74,8 @@ stderr_logfile=syslog
dependent_startup=true
dependent_startup_wait_for=start:exited
-
[group:dhcpmon]
-programs=dhcpmon-Vlan1000
+programs=dhcpmon-Vlan1000,dhcpmon-Vlan2000
[program:dhcpmon-Vlan1000]
command=/usr/sbin/dhcpmon -id Vlan1000 -iu Vlan2000 -iu PortChannel01 -iu PortChannel02 -iu PortChannel03 -iu PortChannel04 -im eth0
@@ -75,6 +85,16 @@ autorestart=false
stdout_logfile=syslog
stderr_logfile=syslog
dependent_startup=true
-dependent_startup_wait_for=isc-dhcpv4-relay-Vlan1000:running dhcp6relay:running
+dependent_startup_wait_for=isc-dhcpv4-relay-Vlan1000:running
+
+[program:dhcpmon-Vlan2000]
+command=/usr/sbin/dhcpmon -id Vlan2000 -iu Vlan1000 -iu PortChannel01 -iu PortChannel02 -iu PortChannel03 -iu PortChannel04 -im eth0
+priority=4
+autostart=false
+autorestart=false
+stdout_logfile=syslog
+stderr_logfile=syslog
+dependent_startup=true
+dependent_startup_wait_for=isc-dhcpv4-relay-Vlan2000:running
diff --git a/src/sonic-config-engine/tests/t0-sample-graph.xml b/src/sonic-config-engine/tests/t0-sample-graph.xml
index c06cc708c1ce..88d325b09d1b 100644
--- a/src/sonic-config-engine/tests/t0-sample-graph.xml
+++ b/src/sonic-config-engine/tests/t0-sample-graph.xml
@@ -270,7 +270,8 @@
0.0.0.0/0
-
+ 192.0.0.3;192.0.0.4
+ fc02:2000::3;fc02:2000::4
2000
2000
192.168.200.0/27
diff --git a/src/sonic-config-engine/tests/t0-sample-no-ip-helper-graph.xml b/src/sonic-config-engine/tests/t0-sample-no-ip-helper-graph.xml
new file mode 100644
index 000000000000..b02304a49e14
--- /dev/null
+++ b/src/sonic-config-engine/tests/t0-sample-no-ip-helper-graph.xml
@@ -0,0 +1,938 @@
+
+
+
+
+
+ switch-t0
+ 10.1.0.32
+ BGPMonitor
+ 10.20.30.40
+ 30
+ 10
+ 3
+
+
+ false
+ switch-t0
+ 10.0.0.56
+ ARISTA01T1
+ 10.0.0.57
+ 1
+ 180
+ 60
+
+
+ switch-t0
+ FC00::71
+ ARISTA01T1
+ FC00::72
+ 1
+ 180
+ 60
+
+
+ false
+ switch-t0
+ 10.0.0.58
+ ARISTA02T1
+ 10.0.0.59
+ 1
+ 180
+ 60
+
+
+ switch-t0
+ FC00::75
+ ARISTA02T1
+ FC00::76
+ 1
+ 180
+ 60
+
+
+ false
+ switch-t0
+ 10.0.0.60
+ ARISTA03T1
+ 10.0.0.61
+ 1
+ 180
+ 60
+
+
+ switch-t0
+ FC00::79
+ ARISTA03T1
+ FC00::7A
+ 1
+ 180
+ 60
+
+
+ false
+ switch-t0
+ 10.0.0.62
+ ARISTA04T1
+ 10.0.0.63
+ 1
+ 180
+ 60
+
+
+ switch-t0
+ FC00::7D
+ ARISTA04T1
+ FC00::7E
+ 1
+ 180
+ 60
+
+
+
+
+ 1
+
+ BGPMonitor
+
+
+ BGPPeer
+ 10.1.0.32
+
+
+
+
+
+
+
+
+ 65100
+ switch-t0
+
+
+ 10.0.0.57
+
+
+
+
+
+ 10.0.0.59
+
+
+
+
+
+ 10.0.0.61
+
+
+
+
+
+ 10.0.0.63
+
+
+
+
+
+
+
+
+ 64600
+ ARISTA01T1
+
+
+
+ 64600
+ ARISTA02T1
+
+
+
+ 64600
+ ARISTA03T1
+
+
+
+ 64600
+ ARISTA04T1
+
+
+
+
+
+
+
+
+
+ HostIP
+ Loopback0
+
+ 10.1.0.32/32
+
+ 10.1.0.32/32
+
+
+ HostIP1
+ Loopback0
+
+ FC00:1::32/128
+
+ FC00:1::32/128
+
+
+ LoopbackIP1
+ Loopback1
+
+ 10.10.0.99/32
+
+ 10.10.0.99/32
+
+
+ LoopbackIP2
+ Loopback2
+
+ 10.21.0.64/32
+
+ 10.21.0.64/32
+
+
+ LoopbackIP3
+ Loopback3
+
+ 10.21.64.2/32
+
+ 10.21.64.2/32
+
+
+
+
+ HostIP
+ eth0
+
+ 10.0.0.100/24
+
+ 10.0.0.100/24
+
+
+ HostIP
+ eth0
+
+ 2603:10e2:0:2902::8/64
+
+ 2603:10e2:0:2902::8/64
+
+
+
+
+
+
+ switch-t0
+
+
+ PortChannel01
+ fortyGigE0/112
+
+
+
+ PortChannel02
+ fortyGigE0/116
+
+
+
+ PortChannel03
+ fortyGigE0/120
+
+
+
+ PortChannel04
+ fortyGigE0/124
+
+
+
+
+
+ Vlan1000
+ fortyGigE0/4;fortyGigE0/8;fortyGigE0/12;fortyGigE0/16;fortyGigE0/20;fortyGigE0/24;fortyGigE0/28;fortyGigE0/32;fortyGigE0/36;fortyGigE0/40;fortyGigE0/44;fortyGigE0/48;fortyGigE0/52;fortyGigE0/56;fortyGigE0/60;fortyGigE0/64;fortyGigE0/68;fortyGigE0/72;fortyGigE0/76;fortyGigE0/80;fortyGigE0/84;fortyGigE0/88;fortyGigE0/92;fortyGigE0/96
+ False
+ 0.0.0.0/0
+
+
+ 192.0.0.1;192.0.0.2
+ fc02:2000::1;fc02:2000::2
+ 1000
+ 1000
+ 192.168.0.0/27
+
+
+
+
+ Vlan2000
+ fortyGigE0/112;fortyGigE0/116;fortyGigE0/120
+ False
+ 0.0.0.0/0
+
+
+
+
+ 2000
+ 2000
+ 192.168.200.0/27
+
+
+
+
+ Vlan99
+ fortyGigE0/100
+ False
+ 0.0.0.0/0
+
+ UserDefinedL2Vlan
+ 192.0.0.1;192.0.0.2
+ 99
+ 99
+
+
+
+
+
+ Vlan98
+ fortyGigE0/100;PortChannel01;PortChannel03
+ False
+ 0.0.0.0/0
+
+ UserDefinedL2Vlan
+ 192.0.0.1;192.0.0.2
+ 98
+ 98
+
+
+
+
+
+
+
+
+ PortChannel01
+ 10.0.0.56/31
+
+
+
+ PortChannel01
+ FC00::71/126
+
+
+
+ PortChannel02
+ 10.0.0.58/31
+
+
+
+ PortChannel02
+ FC00::75/126
+
+
+
+ PortChannel03
+ 10.0.0.60/31
+
+
+
+ PortChannel03
+ FC00::79/126
+
+
+
+ PortChannel04
+ 10.0.0.62/31
+
+
+
+ PortChannel04
+ FC00::7D/126
+
+
+
+ Vlan1000
+ 192.168.0.1/27
+
+
+
+ Vlan2000
+ 192.168.200.1/27
+
+
+
+
+
+ ERSPAN
+ everflow
+ Everflow
+
+
+ ERSPANv6
+ everflowV6
+ Everflow
+
+
+ EGRESS_ERSPAN
+ everflow_egress
+ Everflow
+
+
+ PortChannel01;PortChannel02;PortChannel03;PortChannel04
+ DataAclIngress
+ DataPlane
+
+
+ PortChannel01;PortChannel02;Vlan98
+ DataAclEgress
+ DataPlane
+
+
+ SNMP
+ SNMP_ACL
+ SNMP
+
+
+ NTP
+ NTP_ACL
+ NTP
+
+
+ SSH
+ SSH_ACL
+ SSH
+
+
+ SSH
+ ROUTER-PROTECT
+ SSH
+
+
+ SNMP
+ ROUTER-PROTECT
+ SNMP
+
+
+ NTP
+ NTP_ACL
+
+
+
+
+
+
+
+
+
+ DeviceInterfaceLink
+ ARISTA01T1
+ Ethernet1/1
+ switch-t0
+ fortyGigE0/112
+
+
+ DeviceInterfaceLink
+ ARISTA02T1
+ Ethernet1/1
+ switch-t0
+ fortyGigE0/116
+
+
+ DeviceInterfaceLink
+ ARISTA03T1
+ Ethernet1/1
+ switch-t0
+ fortyGigE0/120
+
+
+ DeviceInterfaceLink
+ ARISTA04T1
+ Ethernet1/1
+ switch-t0
+ fortyGigE0/124
+ 100000
+
+
+ DeviceInterfaceLink
+ 100000
+ switch-t0
+ fortyGigE0/4
+ true
+ ARISTA05T1
+ Ethernet1/33
+ true
+
+
+ DeviceInterfaceLink
+ Servers0
+ eth0
+ switch-t0
+ fortyGigE0/4
+
+
+ DeviceInterfaceLink
+ Servers100
+ eth0
+ switch-t0
+ fortyGigE0/100
+
+
+
+
+ switch-t0
+ Force10-S6000
+
+
+ ARISTA01T1
+ Arista
+
+
+ ARISTA02T1
+ Arista
+
+
+ ARISTA03T1
+ Arista
+
+
+ ARISTA04T1
+ Arista
+
+
+
+
+
+
+
+ DeviceInterface
+
+ true
+ 1
+ Ethernet0
+
+ false
+ 0
+ 0
+ 40000
+
+
+ DeviceInterface
+
+ true
+ 1
+ Ethernet8
+
+ false
+ 0
+ 0
+ 40000
+
+
+ DeviceInterface
+
+ true
+ 1
+ Ethernet12
+
+ false
+ 0
+ 0
+ 40000
+
+
+ DeviceInterface
+
+ true
+ 1
+ Ethernet16
+
+ false
+ 0
+ 0
+ 40000
+
+
+ DeviceInterface
+
+ true
+ 1
+ Ethernet20
+
+ false
+ 0
+ 0
+ 40000
+
+
+ DeviceInterface
+
+ true
+ 1
+ Ethernet24
+
+ false
+ 0
+ 0
+ 40000
+
+
+ DeviceInterface
+
+ true
+ 1
+ Ethernet28
+
+ false
+ 0
+ 0
+ 40000
+
+
+ DeviceInterface
+
+ true
+ 1
+ Ethernet32
+
+ false
+ 0
+ 0
+ 40000
+
+
+ DeviceInterface
+
+ true
+ 1
+ Ethernet36
+
+ false
+ 0
+ 0
+ 40000
+
+
+ DeviceInterface
+
+ true
+ 1
+ Ethernet40
+
+ false
+ 0
+ 0
+ 40000
+
+
+ DeviceInterface
+
+ true
+ 1
+ Ethernet44
+
+ false
+ 0
+ 0
+ 40000
+
+
+ DeviceInterface
+
+ true
+ 1
+ Ethernet48
+
+ false
+ 0
+ 0
+ 40000
+
+
+ DeviceInterface
+
+ true
+ 1
+ Ethernet52
+
+ false
+ 0
+ 0
+ 40000
+
+
+ DeviceInterface
+
+ true
+ 1
+ Ethernet56
+
+ false
+ 0
+ 0
+ 40000
+
+
+ DeviceInterface
+
+ true
+ 1
+ Ethernet60
+
+ false
+ 0
+ 0
+ 40000
+
+
+ DeviceInterface
+
+ true
+ 1
+ Ethernet64
+
+ false
+ 0
+ 0
+ 40000
+
+
+ DeviceInterface
+
+ true
+ 1
+ Ethernet68
+
+ false
+ 0
+ 0
+ 40000
+
+
+ DeviceInterface
+
+ true
+ 1
+ Ethernet72
+
+ false
+ 0
+ 0
+ 40000
+
+
+ DeviceInterface
+
+ true
+ 1
+ Ethernet76
+
+ false
+ 0
+ 0
+ 40000
+
+
+ DeviceInterface
+
+ true
+ 1
+ Ethernet80
+
+ false
+ 0
+ 0
+ 40000
+
+
+ DeviceInterface
+
+ true
+ 1
+ Ethernet84
+
+ false
+ 0
+ 0
+ 40000
+
+
+ DeviceInterface
+
+ true
+ 1
+ Ethernet88
+
+ false
+ 0
+ 0
+ 40000
+
+
+ DeviceInterface
+
+ true
+ 1
+ Ethernet92
+
+ false
+ 0
+ 0
+ 40000
+
+
+ DeviceInterface
+
+ true
+ 1
+ Ethernet96
+
+ false
+ 0
+ 0
+ 40000
+
+
+ DeviceInterface
+
+ true
+ 1
+ Ethernet100
+
+ false
+ 0
+ 0
+ 40000
+
+
+ DeviceInterface
+
+ true
+ 1
+ Ethernet104
+
+ false
+ 0
+ 0
+ 40000
+
+
+ DeviceInterface
+
+ true
+ 1
+ Ethernet108
+
+ false
+ 0
+ 0
+ 40000
+
+
+ DeviceInterface
+
+ true
+ 1
+ Ethernet112
+
+ false
+ 0
+ 0
+ 40000
+
+
+ DeviceInterface
+
+ true
+ 1
+ Ethernet116
+
+ false
+ 0
+ 0
+ 40000
+
+
+ DeviceInterface
+
+ true
+ 1
+ Ethernet120
+
+ false
+ 0
+ 0
+ 40000
+
+
+ Force10-S6000
+
+
+
+
+
+
+ switch-t0
+
+
+ ErspanDestinationIpv4
+
+ 2.2.2.2
+
+
+
+
+
+
+
+
+
+
+
+
+ AutoNegotiation
+
+ True
+
+
+ FECDisabled
+
+ True
+
+
+ ARISTA05T1:Ethernet1/33;switch-t0:fortyGigE0/4
+
+
+
+
+
+ AutoNegotiation
+
+ False
+
+
+ FECDisabled
+
+ True
+
+
+ ARISTA06T1:Ethernet1/34;switch-t0:fortyGigE0/8
+
+
+
+
+
+
+ switch-t0
+
+
+ DeploymentId
+
+ 1
+
+
+
+
+
+
+ switch-t0
+ Force10-S6000
+
diff --git a/src/sonic-config-engine/tests/test_j2files.py b/src/sonic-config-engine/tests/test_j2files.py
index 0bc849656575..d6a214809c69 100644
--- a/src/sonic-config-engine/tests/test_j2files.py
+++ b/src/sonic-config-engine/tests/test_j2files.py
@@ -24,6 +24,7 @@ def setUp(self):
self.multi_asic_minigraph = os.path.join(self.test_dir, 'multi_npu_data', 'sample-minigraph.xml')
self.multi_asic_port_config = os.path.join(self.test_dir, 'multi_npu_data', 'sample_port_config-0.ini')
self.radv_test_minigraph = os.path.join(self.test_dir, 'radv-test-sample-graph.xml')
+ self.no_ip_helper_minigraph = os.path.join(self.test_dir, 't0-sample-no-ip-helper-graph.xml')
self.output_file = os.path.join(self.test_dir, 'output')
os.environ["CFGGEN_UNIT_TESTING"] = "2"
@@ -107,6 +108,12 @@ def test_dhcp_relay(self):
self.run_script(argument)
self.assertTrue(utils.cmp(os.path.join(self.test_dir, 'sample_output', utils.PYvX_DIR, 'docker-dhcp-relay.supervisord.conf'), self.output_file))
+ # Test generation of docker-dhcp-relay.supervisord.conf when a vlan is missing ip/ipv6 helpers
+ template_path = os.path.join(self.test_dir, '..', '..', '..', 'dockers', 'docker-dhcp-relay', 'docker-dhcp-relay.supervisord.conf.j2')
+ argument = '-m ' + self.no_ip_helper_minigraph + ' -p ' + self.t0_port_config + ' -t ' + template_path + ' > ' + self.output_file
+ self.run_script(argument)
+ self.assertTrue(utils.cmp(os.path.join(self.test_dir, 'sample_output', utils.PYvX_DIR, 'docker-dhcp-relay-no-ip-helper.supervisord.conf'), self.output_file))
+
def test_radv(self):
# Test generation of radvd.conf with multiple ipv6 prefixes
template_path = os.path.join(self.test_dir, '..', '..', '..', 'dockers', 'docker-router-advertiser', 'radvd.conf.j2')
From 62c6fb2eabca7c36b592f020cb975286d17784a9 Mon Sep 17 00:00:00 2001
From: jhli-cisco <93410383+jhli-cisco@users.noreply.github.com>
Date: Thu, 25 Aug 2022 17:14:54 -0700
Subject: [PATCH 2/9] Update cisco-8000 submodule to v0.111 (#11835)
Update cisco-8000 submodule to v0.111 drop
---
platform/checkout/cisco-8000.ini | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/platform/checkout/cisco-8000.ini b/platform/checkout/cisco-8000.ini
index 39edd61f25e6..7327f59c4d95 100644
--- a/platform/checkout/cisco-8000.ini
+++ b/platform/checkout/cisco-8000.ini
@@ -1,3 +1,3 @@
[module]
repo=git@github.com:Cisco-8000-sonic/platform-cisco-8000.git
-ref=202012-v0.107
+ref=202012-v0.111
From 347b2dddcdcda77af655cc828cd472aa15e5dae8 Mon Sep 17 00:00:00 2001
From: mssonicbld <79238446+mssonicbld@users.noreply.github.com>
Date: Mon, 29 Aug 2022 14:08:14 +0800
Subject: [PATCH 3/9] [ci/build]: Upgrade SONiC package versions (#11757)
---
.../build/build-sonic-slave-buster/versions-git | 4 ++--
.../build/build-sonic-slave-buster/versions-py3 | 6 +++---
.../build-sonic-slave-buster/versions-py3-all-arm64 | 3 ++-
.../build-sonic-slave-buster/versions-py3-all-armhf | 3 ++-
files/build/versions/default/versions-docker | 12 ++++++------
files/build/versions/default/versions-git | 6 +++---
files/build/versions/default/versions-web | 2 +-
.../dockers/docker-config-engine-buster/versions-py3 | 2 +-
files/build/versions/dockers/docker-ptf/versions-py2 | 2 +-
.../dockers/docker-sonic-mgmt-framework/versions-py3 | 4 ++--
.../versions/dockers/docker-sonic-vs/versions-py2 | 2 +-
.../versions/dockers/docker-sonic-vs/versions-py3 | 4 ++--
.../dockers/sonic-slave-buster/versions-deb-buster | 11 +++++------
.../versions/dockers/sonic-slave-buster/versions-git | 2 +-
.../versions/dockers/sonic-slave-buster/versions-py3 | 2 +-
.../dockers/sonic-slave-stretch/versions-git | 2 +-
files/build/versions/host-image/versions-deb-buster | 2 +-
.../versions/host-image/versions-deb-buster-arm64 | 2 +-
.../versions/host-image/versions-deb-buster-armhf | 2 +-
files/build/versions/host-image/versions-py3 | 8 ++++----
20 files changed, 41 insertions(+), 40 deletions(-)
diff --git a/files/build/versions/build/build-sonic-slave-buster/versions-git b/files/build/versions/build/build-sonic-slave-buster/versions-git
index da70e218b7b1..0b4ee57fa9e7 100644
--- a/files/build/versions/build/build-sonic-slave-buster/versions-git
+++ b/files/build/versions/build/build-sonic-slave-buster/versions-git
@@ -5,10 +5,10 @@ https://github.com/jpirko/libteam.git==69a7494bb77dc10bb27076add07b380dbd778592
https://github.com/Mellanox/libpsample.git==62bb27d9a49424e45191eee81df7ce0d8c74e774
https://github.com/sflow/host-sflow==4ff2a940848fa9244a289f9c96fd9681d31a0264
https://github.com/sflow/sflowtool==5307b19399ffb0a1a873c9d09e78cb5011deaf6f
-https://github.com/thom311/libnl==3399f520bae2231c5b6a6c2adce52b383292c520
+https://github.com/thom311/libnl==cbafad9ddf24caef5230fef715d34f0539603be0
https://salsa.debian.org/debian/libteam.git==f8808df228b00873926b5e7b998ad8b61368d4c5
https://salsa.debian.org/dhcp-team/isc-dhcp.git==18ecb042065e51e088b7470566526cd00e297c14
-https://salsa.debian.org/kernel-team/ethtool/==5ead2b58847600ea0ccd0aa76b5bedce678f17ee
+https://salsa.debian.org/kernel-team/ethtool/==fb77fb17864600d7deb46729c28c677c7da367d5
https://salsa.debian.org/kernel-team/initramfs-tools.git==40e544e13611c1b2690eb99a8096fc16c1b9c74e
https://salsa.debian.org/sk-guest/monit.git==c9da7ebb1f35dfba17b50b5969a6e75e29cbec0d
https://salsa.debian.org/ssh-team/openssh.git==dd1e52af266a53671b162ddd95e4f6b01513e8e5
\ No newline at end of file
diff --git a/files/build/versions/build/build-sonic-slave-buster/versions-py3 b/files/build/versions/build/build-sonic-slave-buster/versions-py3
index a8d7da245960..31151b99f696 100644
--- a/files/build/versions/build/build-sonic-slave-buster/versions-py3
+++ b/files/build/versions/build/build-sonic-slave-buster/versions-py3
@@ -1,6 +1,6 @@
-charset-normalizer==2.1.0
+charset-normalizer==2.1.1
click==7.0
-docker==5.0.3
+docker==6.0.0
ijson==2.6.1
ipaddress==1.0.23
jsondiff==2.0.0
@@ -12,6 +12,6 @@ psutil==5.9.1
pyroute2==0.5.14
python-arptable==0.0.2
tabulate==0.8.10
-websocket-client==1.3.3
+websocket-client==1.4.0
xmltodict==0.12.0
zipp==1.2.0
\ No newline at end of file
diff --git a/files/build/versions/build/build-sonic-slave-buster/versions-py3-all-arm64 b/files/build/versions/build/build-sonic-slave-buster/versions-py3-all-arm64
index 1b5ad59ac9df..ab8db0a0df70 100644
--- a/files/build/versions/build/build-sonic-slave-buster/versions-py3-all-arm64
+++ b/files/build/versions/build/build-sonic-slave-buster/versions-py3-all-arm64
@@ -1,3 +1,4 @@
bitarray==1.5.3
lxml==4.6.3
-requests==2.28.1
\ No newline at end of file
+requests==2.28.1
+urllib3==1.26.12
\ No newline at end of file
diff --git a/files/build/versions/build/build-sonic-slave-buster/versions-py3-all-armhf b/files/build/versions/build/build-sonic-slave-buster/versions-py3-all-armhf
index 1b5ad59ac9df..ab8db0a0df70 100644
--- a/files/build/versions/build/build-sonic-slave-buster/versions-py3-all-armhf
+++ b/files/build/versions/build/build-sonic-slave-buster/versions-py3-all-armhf
@@ -1,3 +1,4 @@
bitarray==1.5.3
lxml==4.6.3
-requests==2.28.1
\ No newline at end of file
+requests==2.28.1
+urllib3==1.26.12
\ No newline at end of file
diff --git a/files/build/versions/default/versions-docker b/files/build/versions/default/versions-docker
index e22333a98bd9..06eb9bdc2c4d 100644
--- a/files/build/versions/default/versions-docker
+++ b/files/build/versions/default/versions-docker
@@ -1,10 +1,10 @@
-amd64:amd64/debian:buster==sha256:7e1f93236be2e4a04a2b83e7fda8c0186e72e4c1e8cc830e097710ccc71d2dcf
+amd64:amd64/debian:buster==sha256:faa416b9eeda2cbdb796544422eedd698e716dbd99841138521a94db51bf6123
amd64:amd64/debian:stretch==sha256:16ee3e11da473f6565ef94a715f1a38b3079e0664913be78869c336a71cb6085
-amd64:debian:buster==sha256:fb9654aac57319592f1d51497c62001e7033eddf059355408a0b53f7c71f8d5f
+amd64:debian:buster==sha256:fa8155031d12cd165c237e0b38688cade32912e990ffe21f9e31968d9a04da38
amd64:debian:stretch==sha256:c5c5200ff1e9c73ffbf188b4a67eb1c91531b644856b4aefe86a58d2f0cb05be
-arm64:arm64v8/debian:buster==sha256:d0f5ed350e7624e19f0f40c2c0cc31b0b2811f444ca929a083fefe449432333d
-arm64:debian:buster==sha256:fb9654aac57319592f1d51497c62001e7033eddf059355408a0b53f7c71f8d5f
+arm64:arm64v8/debian:buster==sha256:46f5b3c07b5e5aa83547cf697dcfe097052ff88018481fe615206c5651d75ba0
+arm64:debian:buster==sha256:fa8155031d12cd165c237e0b38688cade32912e990ffe21f9e31968d9a04da38
arm64:debian:stretch==sha256:c5c5200ff1e9c73ffbf188b4a67eb1c91531b644856b4aefe86a58d2f0cb05be
-armhf:arm32v7/debian:buster==sha256:1f7bef58f2040ee2d97c1f40eb5ff29f8c2aa51eeaa90931ac11e7c6680103aa
-armhf:debian:buster==sha256:fb9654aac57319592f1d51497c62001e7033eddf059355408a0b53f7c71f8d5f
+armhf:arm32v7/debian:buster==sha256:49b349ff803f83f12723092ee7a1052f06156c20fa788f24b795988a614279d6
+armhf:debian:buster==sha256:fa8155031d12cd165c237e0b38688cade32912e990ffe21f9e31968d9a04da38
armhf:debian:stretch==sha256:c5c5200ff1e9c73ffbf188b4a67eb1c91531b644856b4aefe86a58d2f0cb05be
\ No newline at end of file
diff --git a/files/build/versions/default/versions-git b/files/build/versions/default/versions-git
index debe56e88395..476ab6569fef 100644
--- a/files/build/versions/default/versions-git
+++ b/files/build/versions/default/versions-git
@@ -1,4 +1,4 @@
-https://chromium.googlesource.com/chromium/tools/depot_tools.git==268d645853ee8e1b884260049e5464a5ca2d8a30
+https://chromium.googlesource.com/chromium/tools/depot_tools.git==b7ec673cccc42bce346234209dfd194b7911e169
https://github.com/aristanetworks/swi-tools.git==b5f087e4774168bf536360d43c9c509c8f14ad9f
https://github.com/CESNET/libyang.git==0c609c35080f523c9696db48976de8257d174102
https://github.com/daveolson53/libnss-tacplus.git==19008ab68d9d504aa58eb34d5f564755a1613b8b
@@ -11,10 +11,10 @@ https://github.com/Mellanox/libpsample.git==62bb27d9a49424e45191eee81df7ce0d8c74
https://github.com/p4lang/scapy-vxlan.git==85ffe83da156568ee47a0750f638227e6e1d7479
https://github.com/sflow/host-sflow==4ff2a940848fa9244a289f9c96fd9681d31a0264
https://github.com/sflow/sflowtool==5307b19399ffb0a1a873c9d09e78cb5011deaf6f
-https://github.com/thom311/libnl==3399f520bae2231c5b6a6c2adce52b383292c520
+https://github.com/thom311/libnl==cbafad9ddf24caef5230fef715d34f0539603be0
https://salsa.debian.org/debian/libteam.git==f8808df228b00873926b5e7b998ad8b61368d4c5
https://salsa.debian.org/dhcp-team/isc-dhcp.git==18ecb042065e51e088b7470566526cd00e297c14
-https://salsa.debian.org/kernel-team/ethtool/==5ead2b58847600ea0ccd0aa76b5bedce678f17ee
+https://salsa.debian.org/kernel-team/ethtool/==fb77fb17864600d7deb46729c28c677c7da367d5
https://salsa.debian.org/kernel-team/initramfs-tools.git==40e544e13611c1b2690eb99a8096fc16c1b9c74e
https://salsa.debian.org/sk-guest/monit.git==c9da7ebb1f35dfba17b50b5969a6e75e29cbec0d
https://salsa.debian.org/ssh-team/openssh.git==dd1e52af266a53671b162ddd95e4f6b01513e8e5
\ No newline at end of file
diff --git a/files/build/versions/default/versions-web b/files/build/versions/default/versions-web
index 8b638e27a593..83bda16e5d92 100644
--- a/files/build/versions/default/versions-web
+++ b/files/build/versions/default/versions-web
@@ -20,7 +20,7 @@ https://deb.nodesource.com/gpgkey/nodesource.gpg.key==003b51a89a133b5db4cca98b2d
https://deb.nodesource.com/node_10.x/dists/stretch/Release==22738118af583db3bfad39d6fcb4fa5a
https://deb.nodesource.com/node_14.x/dists/buster/Release==2c6b9d29a3e20816e0ed35475d52e0d3
https://deb.nodesource.com/setup_10.x==6742c0148159980e8f6e886df1f8bbe1
-https://deb.nodesource.com/setup_14.x==badb28cf0604d9ff24c5fc3396b594d4
+https://deb.nodesource.com/setup_14.x==b692a224c718ad6e1cbd17eda8aaa673
https://download.docker.com/linux/debian/gpg==1afae06b34a13c1b3d9cb61a26285a15
https://github.com/barefootnetworks/sonic-release-pkgs/raw/dev/bfnplatform_20220221_sai.1.7.1_deb10.deb==65de37f7834823ba69ab5e55acc5c5f4
https://github.com/barefootnetworks/sonic-release-pkgs/raw/dev/bfnsdk_20220221_sai.1.7.1_deb10.deb==75df8156b85467b501dc67f1914d6ed7
diff --git a/files/build/versions/dockers/docker-config-engine-buster/versions-py3 b/files/build/versions/dockers/docker-config-engine-buster/versions-py3
index e71149dad247..80a4396adaf4 100644
--- a/files/build/versions/dockers/docker-config-engine-buster/versions-py3
+++ b/files/build/versions/dockers/docker-config-engine-buster/versions-py3
@@ -8,5 +8,5 @@ pyangbind==0.8.1
pyyaml==5.4.1
redis==3.5.3
redis-dump-load==1.1
-regex==2022.7.25
+regex==2022.8.17
six==1.16.0
\ No newline at end of file
diff --git a/files/build/versions/dockers/docker-ptf/versions-py2 b/files/build/versions/dockers/docker-ptf/versions-py2
index 87c8a5d16e7d..c44749bd76b1 100644
--- a/files/build/versions/dockers/docker-ptf/versions-py2
+++ b/files/build/versions/dockers/docker-ptf/versions-py2
@@ -6,7 +6,7 @@ click==7.1.2
contextlib2==0.6.0.post1
cryptography==3.3.2
decorator==4.4.2
-dpkt==1.9.7.2
+dpkt==1.9.8
enum34==1.1.6
exabgp==3.4.17
flask==1.0
diff --git a/files/build/versions/dockers/docker-sonic-mgmt-framework/versions-py3 b/files/build/versions/dockers/docker-sonic-mgmt-framework/versions-py3
index 456819069211..583032f524a1 100644
--- a/files/build/versions/dockers/docker-sonic-mgmt-framework/versions-py3
+++ b/files/build/versions/dockers/docker-sonic-mgmt-framework/versions-py3
@@ -1,6 +1,6 @@
attrs==22.1.0
certifi==2017.4.17
-charset-normalizer==2.1.0
+charset-normalizer==2.1.1
click==8.1.3
clickclick==20.10.2
connexion==2.7.0
@@ -12,7 +12,7 @@ importlib-metadata==4.12.0
importlib-resources==5.9.0
inflection==0.5.1
itsdangerous==2.1.2
-jsonschema==4.9.1
+jsonschema==4.14.0
openapi-schema-validator==0.2.3
openapi-spec-validator==0.4.0
pkgutil_resolve_name==1.3.10
diff --git a/files/build/versions/dockers/docker-sonic-vs/versions-py2 b/files/build/versions/dockers/docker-sonic-vs/versions-py2
index f6389557e01f..86bba8faec64 100644
--- a/files/build/versions/dockers/docker-sonic-vs/versions-py2
+++ b/files/build/versions/dockers/docker-sonic-vs/versions-py2
@@ -10,4 +10,4 @@ pyroute2==0.5.3
requests==2.27.1
scapy==2.4.0
six==1.16.0
-urllib3==1.26.11
\ No newline at end of file
+urllib3==1.26.12
\ No newline at end of file
diff --git a/files/build/versions/dockers/docker-sonic-vs/versions-py3 b/files/build/versions/dockers/docker-sonic-vs/versions-py3
index ee93e3c615cc..005f34eaba73 100644
--- a/files/build/versions/dockers/docker-sonic-vs/versions-py3
+++ b/files/build/versions/dockers/docker-sonic-vs/versions-py3
@@ -1,5 +1,5 @@
certifi==2022.6.15
-charset-normalizer==2.1.0
+charset-normalizer==2.1.1
click==7.0
idna==3.3
ijson==2.6.1
@@ -12,5 +12,5 @@ pyroute2==0.5.14
requests==2.28.1
scapy==2.4.4
tabulate==0.8.10
-urllib3==1.26.11
+urllib3==1.26.12
xmltodict==0.12.0
\ No newline at end of file
diff --git a/files/build/versions/dockers/sonic-slave-buster/versions-deb-buster b/files/build/versions/dockers/sonic-slave-buster/versions-deb-buster
index 7892d9233999..15e1145efac5 100644
--- a/files/build/versions/dockers/sonic-slave-buster/versions-deb-buster
+++ b/files/build/versions/dockers/sonic-slave-buster/versions-deb-buster
@@ -50,7 +50,7 @@ cmake==3.13.4-1
cmake-data==3.13.4-1
cmocka-doc==1.1.3-1
comerr-dev==2.1-1.44.5-1+deb10u3
-containerd.io==1.6.7-1
+containerd.io==1.6.8-1
cowbuilder==0.88
cowdancer==0.88
cpio==2.12+dfsg-9
@@ -102,9 +102,9 @@ dwz==0.12-3
eatmydata==105-7
emacsen-common==3.0.4
equivs==2.2.0
-exim4-base==4.92-8+deb10u6
-exim4-config==4.92-8+deb10u6
-exim4-daemon-light==4.92-8+deb10u6
+exim4-base==4.92-8+deb10u7
+exim4-config==4.92-8+deb10u7
+exim4-daemon-light==4.92-8+deb10u7
expat==2.2.6-2+deb10u4
exuberant-ctags==1:5.9~svn20110310-12
fakeroot==1.23-1
@@ -556,7 +556,6 @@ libgmpxx4ldbl==2:6.1.2+dfsg-4+deb10u1
libgnutls-dane0==3.6.7-4+deb10u9
libgnutls-openssl27==3.6.7-4+deb10u9
libgnutls28-dev==3.6.7-4+deb10u9
-libgnutls30==3.6.7-4+deb10u9
libgnutlsxx28==3.6.7-4+deb10u9
libgomp1==8.3.0-6
libgoogle-perftools4==2.7-1
@@ -664,7 +663,7 @@ libjbig0==2.1-3.1+b2
libjbig2dec0==0.16-1+deb10u1
libjemalloc-dev==5.1.0-3
libjemalloc2==5.1.0-3
-libjetty9-java==9.4.16-0+deb10u1
+libjetty9-java==9.4.16-0+deb10u2
libjpeg62-turbo==1:1.5.2-2+deb10u1
libjs-bootstrap==3.4.1+dfsg-1
libjs-jquery==3.3.1~dfsg-3+deb10u1
diff --git a/files/build/versions/dockers/sonic-slave-buster/versions-git b/files/build/versions/dockers/sonic-slave-buster/versions-git
index b6445f629357..b891abb29c8f 100644
--- a/files/build/versions/dockers/sonic-slave-buster/versions-git
+++ b/files/build/versions/dockers/sonic-slave-buster/versions-git
@@ -1,2 +1,2 @@
-https://chromium.googlesource.com/chromium/tools/depot_tools.git==268d645853ee8e1b884260049e5464a5ca2d8a30
+https://chromium.googlesource.com/chromium/tools/depot_tools.git==b7ec673cccc42bce346234209dfd194b7911e169
https://github.com/aristanetworks/swi-tools.git==b5f087e4774168bf536360d43c9c509c8f14ad9f
\ No newline at end of file
diff --git a/files/build/versions/dockers/sonic-slave-buster/versions-py3 b/files/build/versions/dockers/sonic-slave-buster/versions-py3
index 6bb93e7b15f4..691707dc8da8 100644
--- a/files/build/versions/dockers/sonic-slave-buster/versions-py3
+++ b/files/build/versions/dockers/sonic-slave-buster/versions-py3
@@ -58,7 +58,7 @@ pytz==2019.1
pyxdg==0.25
pyyaml==5.4.1
redis==3.5.3
-regex==2022.7.25
+regex==2022.8.17
requests==2.21.0
roman==2.0.0
secretstorage==2.3.1
diff --git a/files/build/versions/dockers/sonic-slave-stretch/versions-git b/files/build/versions/dockers/sonic-slave-stretch/versions-git
index b6445f629357..b891abb29c8f 100644
--- a/files/build/versions/dockers/sonic-slave-stretch/versions-git
+++ b/files/build/versions/dockers/sonic-slave-stretch/versions-git
@@ -1,2 +1,2 @@
-https://chromium.googlesource.com/chromium/tools/depot_tools.git==268d645853ee8e1b884260049e5464a5ca2d8a30
+https://chromium.googlesource.com/chromium/tools/depot_tools.git==b7ec673cccc42bce346234209dfd194b7911e169
https://github.com/aristanetworks/swi-tools.git==b5f087e4774168bf536360d43c9c509c8f14ad9f
\ No newline at end of file
diff --git a/files/build/versions/host-image/versions-deb-buster b/files/build/versions/host-image/versions-deb-buster
index 66df5e12d018..e30005ad69e9 100644
--- a/files/build/versions/host-image/versions-deb-buster
+++ b/files/build/versions/host-image/versions-deb-buster
@@ -14,7 +14,7 @@ bzip2==1.0.6-9.2~deb10u1
ca-certificates==20200601~deb10u2
cgroup-tools==0.41-8.1
conntrack==1:1.4.5-2
-containerd.io==1.6.7-1
+containerd.io==1.6.8-1
cpio==2.12+dfsg-9
cpp==4:8.3.0-1
cpp-8==8.3.0-6
diff --git a/files/build/versions/host-image/versions-deb-buster-arm64 b/files/build/versions/host-image/versions-deb-buster-arm64
index 8f0adeed12e2..f8897af63372 100644
--- a/files/build/versions/host-image/versions-deb-buster-arm64
+++ b/files/build/versions/host-image/versions-deb-buster-arm64
@@ -30,6 +30,6 @@ openssl==1.1.1n-0+deb10u1
pkg-config==0.29-6
rsyslog==8.1901.0-1+deb10u1
tsingma-bsp==1.0
-tzdata==2021a-0+deb10u5
+tzdata==2021a-0+deb10u6
xz-utils==5.2.4-1
zlib1g-dev==1:1.2.11.dfsg-1
\ No newline at end of file
diff --git a/files/build/versions/host-image/versions-deb-buster-armhf b/files/build/versions/host-image/versions-deb-buster-armhf
index fdf7ab9b15b9..4fcd3403440c 100644
--- a/files/build/versions/host-image/versions-deb-buster-armhf
+++ b/files/build/versions/host-image/versions-deb-buster-armhf
@@ -30,6 +30,6 @@ mrvlprestera==1.0
openssl==1.1.1n-0+deb10u1
pkg-config==0.29-6
rsyslog==8.1901.0-1+deb10u1
-tzdata==2021a-0+deb10u5
+tzdata==2021a-0+deb10u6
xz-utils==5.2.4-1
zlib1g-dev==1:1.2.11.dfsg-1
\ No newline at end of file
diff --git a/files/build/versions/host-image/versions-py3 b/files/build/versions/host-image/versions-py3
index 41d78ade9df5..9359a4fb15fe 100644
--- a/files/build/versions/host-image/versions-py3
+++ b/files/build/versions/host-image/versions-py3
@@ -4,7 +4,7 @@ azure-storage==0.36.0
bitarray==1.5.3
certifi==2022.6.15
cffi==1.15.1
-charset-normalizer==2.1.0
+charset-normalizer==2.1.1
click==7.0
cryptography==37.0.4
docker==4.3.1
@@ -32,13 +32,13 @@ pyroute2==0.5.14
python-dateutil==2.8.2
pyyaml==5.4.1
redis==3.5.3
-regex==2022.7.25
+regex==2022.8.17
requests==2.28.1
scapy==2.4.4
six==1.16.0
tabulate==0.8.10
thrift==0.13.0
-urllib3==1.26.11
+urllib3==1.26.12
watchdog==0.10.3
-websocket-client==1.3.3
+websocket-client==1.4.0
xmltodict==0.12.0
\ No newline at end of file
From 8e0393927f7454911529a70d2b19b470d54ac085 Mon Sep 17 00:00:00 2001
From: Liu Shilong
Date: Tue, 30 Aug 2022 16:28:11 +0800
Subject: [PATCH 4/9] [submodules] Upgrade HEAD pointer of sonic-mgmt-framework
to fix CG alert (#11871)
---
src/sonic-mgmt-framework | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/sonic-mgmt-framework b/src/sonic-mgmt-framework
index 3c3384cec8d1..bd79561c70aa 160000
--- a/src/sonic-mgmt-framework
+++ b/src/sonic-mgmt-framework
@@ -1 +1 @@
-Subproject commit 3c3384cec8d15e493e6889bff6361a5a280a8811
+Subproject commit bd79561c70aa3da2267c8c767a899833f432dd0f
From ed68e4c97c9af46e63988d71599a2947114bb247 Mon Sep 17 00:00:00 2001
From: mssonicbld <79238446+mssonicbld@users.noreply.github.com>
Date: Tue, 30 Aug 2022 22:44:47 +0800
Subject: [PATCH 5/9] [ci/build]: Upgrade SONiC package versions (#11896)
---
files/build/versions/default/versions-git | 2 +-
.../dockers/docker-base-buster/versions-deb-buster | 4 ++--
.../dockers/docker-syncd-bfn/versions-deb-buster | 4 ++--
.../dockers/sonic-slave-buster/versions-deb-buster | 12 ++++++------
.../versions/dockers/sonic-slave-buster/versions-git | 2 +-
.../dockers/sonic-slave-stretch/versions-git | 2 +-
files/build/versions/host-image/versions-deb-buster | 6 +++---
.../versions/host-image/versions-deb-buster-arm64 | 3 +++
.../versions/host-image/versions-deb-buster-armhf | 3 +++
9 files changed, 22 insertions(+), 16 deletions(-)
diff --git a/files/build/versions/default/versions-git b/files/build/versions/default/versions-git
index 476ab6569fef..0a75d6d99f09 100644
--- a/files/build/versions/default/versions-git
+++ b/files/build/versions/default/versions-git
@@ -1,4 +1,4 @@
-https://chromium.googlesource.com/chromium/tools/depot_tools.git==b7ec673cccc42bce346234209dfd194b7911e169
+https://chromium.googlesource.com/chromium/tools/depot_tools.git==f41670fdadc9eca7fff99ab8563190dd41d27ee8
https://github.com/aristanetworks/swi-tools.git==b5f087e4774168bf536360d43c9c509c8f14ad9f
https://github.com/CESNET/libyang.git==0c609c35080f523c9696db48976de8257d174102
https://github.com/daveolson53/libnss-tacplus.git==19008ab68d9d504aa58eb34d5f564755a1613b8b
diff --git a/files/build/versions/dockers/docker-base-buster/versions-deb-buster b/files/build/versions/dockers/docker-base-buster/versions-deb-buster
index 933f061ad6cf..b73b037c50c9 100644
--- a/files/build/versions/dockers/docker-base-buster/versions-deb-buster
+++ b/files/build/versions/dockers/docker-base-buster/versions-deb-buster
@@ -1,9 +1,9 @@
ca-certificates==20200601~deb10u2
-curl==7.64.0-4+deb10u2
+curl==7.64.0-4+deb10u3
jq==1.5+dfsg-2+b1
less==487-0.1+b1
libatomic1==8.3.0-6
-libcurl4==7.64.0-4+deb10u2
+libcurl4==7.64.0-4+deb10u3
libdaemon0==0.14-7
libdbus-1-3==1.12.20-0+deb10u1
libestr0==0.1.10-2.1
diff --git a/files/build/versions/dockers/docker-syncd-bfn/versions-deb-buster b/files/build/versions/dockers/docker-syncd-bfn/versions-deb-buster
index 714e0de0a715..77895b42f41c 100644
--- a/files/build/versions/dockers/docker-syncd-bfn/versions-deb-buster
+++ b/files/build/versions/dockers/docker-syncd-bfn/versions-deb-buster
@@ -3,8 +3,8 @@ bfnsdk==1.0.0
libc-ares2==1.14.0-1+deb10u1
libc-dev-bin==2.28-10+deb10u1
libc6-dev==2.28-10+deb10u1
-libcurl3-gnutls==7.64.0-4+deb10u2
-libcurl4-gnutls-dev==7.64.0-4+deb10u2
+libcurl3-gnutls==7.64.0-4+deb10u3
+libcurl4-gnutls-dev==7.64.0-4+deb10u3
libgoogle-perftools4==2.7-1
libicu63==63.1-6+deb10u3
liblzma-dev==5.2.4-1+deb10u1
diff --git a/files/build/versions/dockers/sonic-slave-buster/versions-deb-buster b/files/build/versions/dockers/sonic-slave-buster/versions-deb-buster
index 15e1145efac5..3d832de2a610 100644
--- a/files/build/versions/dockers/sonic-slave-buster/versions-deb-buster
+++ b/files/build/versions/dockers/sonic-slave-buster/versions-deb-buster
@@ -58,7 +58,7 @@ cpp==4:8.3.0-1
cpp-8==8.3.0-6
cppcheck==1.86-1
cron==3.0pl1-134+deb10u1
-curl==7.64.0-4+deb10u2
+curl==7.64.0-4+deb10u3
dbus==1.12.20-0+deb10u1
dbus-user-session==1.12.20-0+deb10u1
dconf-gsettings-backend==0.30.1-2
@@ -398,10 +398,10 @@ libcrystalhd3==1:0.0~git20110715.fdd2f19-13
libcups2==2.2.10-6+deb10u6
libcupsfilters1==1.21.6-5
libcupsimage2==2.2.10-6+deb10u6
-libcurl3-gnutls==7.64.0-4+deb10u2
-libcurl3-nss==7.64.0-4+deb10u2
-libcurl4==7.64.0-4+deb10u2
-libcurl4-nss-dev==7.64.0-4+deb10u2
+libcurl3-gnutls==7.64.0-4+deb10u3
+libcurl3-nss==7.64.0-4+deb10u3
+libcurl4==7.64.0-4+deb10u3
+libcurl4-nss-dev==7.64.0-4+deb10u3
libdaemon-dev==0.14-7
libdaemon0==0.14-7
libdata-dump-perl==1.23-1
@@ -755,7 +755,7 @@ libmaven-reporting-impl-java==3.0.0-2
libmaven-resolver-java==1.3.1-1
libmaven-resources-plugin-java==3.1.0-1
libmaven-shared-incremental-java==1.1-3
-libmaven-shared-utils-java==3.3.0-1
+libmaven-shared-utils-java==3.3.0-1+deb10u1
libmaven-site-plugin-java==3.6-3
libmaven3-core-java==3.6.0-1
libmime-tools-perl==5.509-1
diff --git a/files/build/versions/dockers/sonic-slave-buster/versions-git b/files/build/versions/dockers/sonic-slave-buster/versions-git
index b891abb29c8f..7a060c49256a 100644
--- a/files/build/versions/dockers/sonic-slave-buster/versions-git
+++ b/files/build/versions/dockers/sonic-slave-buster/versions-git
@@ -1,2 +1,2 @@
-https://chromium.googlesource.com/chromium/tools/depot_tools.git==b7ec673cccc42bce346234209dfd194b7911e169
+https://chromium.googlesource.com/chromium/tools/depot_tools.git==f41670fdadc9eca7fff99ab8563190dd41d27ee8
https://github.com/aristanetworks/swi-tools.git==b5f087e4774168bf536360d43c9c509c8f14ad9f
\ No newline at end of file
diff --git a/files/build/versions/dockers/sonic-slave-stretch/versions-git b/files/build/versions/dockers/sonic-slave-stretch/versions-git
index b891abb29c8f..7a060c49256a 100644
--- a/files/build/versions/dockers/sonic-slave-stretch/versions-git
+++ b/files/build/versions/dockers/sonic-slave-stretch/versions-git
@@ -1,2 +1,2 @@
-https://chromium.googlesource.com/chromium/tools/depot_tools.git==b7ec673cccc42bce346234209dfd194b7911e169
+https://chromium.googlesource.com/chromium/tools/depot_tools.git==f41670fdadc9eca7fff99ab8563190dd41d27ee8
https://github.com/aristanetworks/swi-tools.git==b5f087e4774168bf536360d43c9c509c8f14ad9f
\ No newline at end of file
diff --git a/files/build/versions/host-image/versions-deb-buster b/files/build/versions/host-image/versions-deb-buster
index e30005ad69e9..9db16421eed4 100644
--- a/files/build/versions/host-image/versions-deb-buster
+++ b/files/build/versions/host-image/versions-deb-buster
@@ -19,7 +19,7 @@ cpio==2.12+dfsg-9
cpp==4:8.3.0-1
cpp-8==8.3.0-6
cron==3.0pl1-134+deb10u1
-curl==7.64.0-4+deb10u2
+curl==7.64.0-4+deb10u3
dbus==1.12.20-0+deb10u1
device-tree-compiler==1.4.7-4
dh-python==3.20190308
@@ -101,8 +101,8 @@ libcap2-bin==1:2.25-2
libcc1-0==8.3.0-6
libcgroup1==0.41-8.1
libcryptsetup12==2:2.1.0-5+deb10u2
-libcurl3-gnutls==7.64.0-4+deb10u2
-libcurl4==7.64.0-4+deb10u2
+libcurl3-gnutls==7.64.0-4+deb10u3
+libcurl4==7.64.0-4+deb10u3
libdbd-sqlite3-perl==1.62-3
libdbi-perl==1.642-1+deb10u2
libdbus-1-3==1.12.20-0+deb10u1
diff --git a/files/build/versions/host-image/versions-deb-buster-arm64 b/files/build/versions/host-image/versions-deb-buster-arm64
index f8897af63372..a559cd4126a6 100644
--- a/files/build/versions/host-image/versions-deb-buster-arm64
+++ b/files/build/versions/host-image/versions-deb-buster-arm64
@@ -1,4 +1,5 @@
binutils-aarch64-linux-gnu==2.31.1-16
+curl==7.64.0-4+deb10u2
dirmngr==2.2.12-1+deb10u1
dpkg-dev==1.19.7
gnupg==2.2.12-1+deb10u1
@@ -13,6 +14,8 @@ gpgconf==2.2.12-1+deb10u1
gpgsm==2.2.12-1+deb10u1
icu-devtools==63.1-6+deb10u3
libcryptsetup12==2:2.3.7-1+deb11u1~bpo10+1
+libcurl3-gnutls==7.64.0-4+deb10u2
+libcurl4==7.64.0-4+deb10u2
libdpkg-perl==1.19.7
libicu-dev==63.1-6+deb10u3
libicu63==63.1-6+deb10u3
diff --git a/files/build/versions/host-image/versions-deb-buster-armhf b/files/build/versions/host-image/versions-deb-buster-armhf
index 4fcd3403440c..8516bf3e77b9 100644
--- a/files/build/versions/host-image/versions-deb-buster-armhf
+++ b/files/build/versions/host-image/versions-deb-buster-armhf
@@ -1,4 +1,5 @@
binutils-arm-linux-gnueabihf==2.31.1-16
+curl==7.64.0-4+deb10u2
dirmngr==2.2.12-1+deb10u1
dpkg-dev==1.19.7
gnupg==2.2.12-1+deb10u1
@@ -13,6 +14,8 @@ gpgconf==2.2.12-1+deb10u1
gpgsm==2.2.12-1+deb10u1
icu-devtools==63.1-6+deb10u3
libcryptsetup12==2:2.3.7-1+deb11u1~bpo10+1
+libcurl3-gnutls==7.64.0-4+deb10u2
+libcurl4==7.64.0-4+deb10u2
libdpkg-perl==1.19.7
libicu-dev==63.1-6+deb10u3
libicu63==63.1-6+deb10u3
From 932af450ed06138017fbf77d4ec6c67baec93898 Mon Sep 17 00:00:00 2001
From: Liu Shilong
Date: Wed, 31 Aug 2022 16:31:48 +0800
Subject: [PATCH 6/9] [actions] Update github actions label and automerge.
(#11736) (#11909)
1. Add auto approve step when adding label to version upgrading PR.
2. Use mssonicbld TOKEN to merge version upgrading PR instead of 'github actions'
---
.github/workflows/label.yml | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml
index f8ae8e7199a2..ee4857fe23f1 100644
--- a/.github/workflows/label.yml
+++ b/.github/workflows/label.yml
@@ -20,6 +20,13 @@ jobs:
label:
runs-on: ubuntu-latest
steps:
+ - name: approve
+ run: |
+ set -e
+ echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token
+ url=$(echo $GITHUB_CONTEXT | jq -r '.event.pull_request._links.html.href')
+ echo PR: $url
+ gh pr review $url --approve
- uses: actions/labeler@main
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
From c1712b8c9a556c9b56f9c51af7fcad5d240d0c15 Mon Sep 17 00:00:00 2001
From: Arun Saravanan Balachandran
<52521751+ArunSaravananBalachandran@users.noreply.github.com>
Date: Wed, 31 Aug 2022 21:36:47 +0530
Subject: [PATCH 7/9] [202012] DellEMC: S6000, S6100, Z9332f - Add capabilities
fields in platform.json (#11772)
---
.../x86_64-dell_s6000_s1220-r0/platform.json | 238 +++++++--
.../x86_64-dell_s6100_c2538-r0/platform.json | 179 ++++++-
.../platform.json | 483 ++++++++++++++----
.../system_health_monitoring_config.json | 2 +-
.../z9332f/sonic_platform/chassis.py | 12 +-
5 files changed, 750 insertions(+), 164 deletions(-)
diff --git a/device/dell/x86_64-dell_s6000_s1220-r0/platform.json b/device/dell/x86_64-dell_s6000_s1220-r0/platform.json
index 62a53fe328fc..283906c407e0 100644
--- a/device/dell/x86_64-dell_s6000_s1220-r0/platform.json
+++ b/device/dell/x86_64-dell_s6000_s1220-r0/platform.json
@@ -1,6 +1,10 @@
{
"chassis": {
"name": "S6000",
+ "status_led": {
+ "controllable": true,
+ "colors": ["amber", "blinking amber", "green", "blinking green"]
+ },
"components": [
{
"name": "BIOS"
@@ -17,55 +21,151 @@
],
"fans": [
{
- "name": "FanTray1-Fan1"
- },
- {
- "name": "FanTray1-Fan2"
- },
- {
- "name": "FanTray2-Fan1"
- },
- {
- "name": "FanTray2-Fan2"
- },
- {
- "name": "FanTray3-Fan1"
- },
- {
- "name": "FanTray3-Fan2"
+ "name": "FanTray1-Fan1",
+ "speed": {
+ "controllable": true,
+ "minimum": 40
+ },
+ "status_led": {
+ "available": false
+ }
+ },
+ {
+ "name": "FanTray1-Fan2",
+ "speed": {
+ "controllable": true,
+ "minimum": 40
+ },
+ "status_led": {
+ "available": false
+ }
+ },
+ {
+ "name": "FanTray2-Fan1",
+ "speed": {
+ "controllable": true,
+ "minimum": 40
+ },
+ "status_led": {
+ "available": false
+ }
+ },
+ {
+ "name": "FanTray2-Fan2",
+ "speed": {
+ "controllable": true,
+ "minimum": 40
+ },
+ "status_led": {
+ "available": false
+ }
+ },
+ {
+ "name": "FanTray3-Fan1",
+ "speed": {
+ "controllable": true,
+ "minimum": 40
+ },
+ "status_led": {
+ "available": false
+ }
+ },
+ {
+ "name": "FanTray3-Fan2",
+ "speed": {
+ "controllable": true,
+ "minimum": 40
+ },
+ "status_led": {
+ "available": false
+ }
}
],
"fan_drawers":[
{
"name": "FanTray1",
+ "status_led": {
+ "controllable": true,
+ "colors": ["amber", "green", "off"]
+ },
"fans": [
{
- "name": "FanTray1-Fan1"
+ "name": "FanTray1-Fan1",
+ "speed": {
+ "controllable": true,
+ "minimum": 40
+ },
+ "status_led": {
+ "available": false
+ }
},
{
- "name": "FanTray1-Fan2"
+ "name": "FanTray1-Fan2",
+ "speed": {
+ "controllable": true,
+ "minimum": 40
+ },
+ "status_led": {
+ "available": false
+ }
}
]
},
{
"name": "FanTray2",
+ "status_led": {
+ "controllable": true,
+ "colors": ["amber", "green", "off"]
+ },
"fans": [
{
- "name": "FanTray2-Fan1"
+ "name": "FanTray2-Fan1",
+ "speed": {
+ "controllable": true,
+ "minimum": 40
+ },
+ "status_led": {
+ "available": false
+ }
},
{
- "name": "FanTray2-Fan2"
+ "name": "FanTray2-Fan2",
+ "speed": {
+ "controllable": true,
+ "minimum": 40
+ },
+ "status_led": {
+ "available": false
+ }
}
]
},
{
"name": "FanTray3",
+ "status_led": {
+ "controllable": true,
+ "colors": ["amber", "green", "off"]
+ },
"fans": [
{
- "name": "FanTray3-Fan1"
+ "name": "FanTray3-Fan1",
+ "speed": {
+ "controllable": true,
+ "minimum": 40
+ },
+ "status_led": {
+ "available": false
+ }
},
{
- "name": "FanTray3-Fan2"
+ "name": "FanTray3-Fan2",
+ "speed": {
+ "controllable": true,
+ "minimum": 40
+ },
+ "status_led": {
+ "available": false
+ }
}
]
}
@@ -73,55 +173,125 @@
"psus": [
{
"name": "PSU1",
+ "status_led": {
+ "controllable": false
+ },
"fans": [
{
- "name": "PSU1 Fan"
+ "name": "PSU1 Fan",
+ "speed": {
+ "controllable": true,
+ "minimum": 40
+ },
+ "status_led": {
+ "available": false
+ }
}
],
"thermals": [
{
- "name": "PSU1-Sensor 1"
+ "name": "PSU1-Sensor 1",
+ "controllable": false,
+ "low-crit-threshold": false,
+ "high-crit-threshold": false,
+ "minimum-recorded": false,
+ "maximum-recorded": false
},
{
- "name": "PSU1-Sensor 2"
+ "name": "PSU1-Sensor 2",
+ "controllable": false,
+ "low-crit-threshold": false,
+ "high-crit-threshold": false,
+ "minimum-recorded": false,
+ "maximum-recorded": false
}
]
},
{
"name": "PSU2",
+ "status_led": {
+ "controllable": false
+ },
"fans": [
{
- "name": "PSU2 Fan"
+ "name": "PSU2 Fan",
+ "speed": {
+ "controllable": true,
+ "minimum": 40
+ },
+ "status_led": {
+ "available": false
+ }
}
],
"thermals": [
{
- "name": "PSU2-Sensor 1"
+ "name": "PSU2-Sensor 1",
+ "controllable": false,
+ "low-crit-threshold": false,
+ "high-crit-threshold": false,
+ "minimum-recorded": false,
+ "maximum-recorded": false
},
{
- "name": "PSU2-Sensor 2"
+ "name": "PSU2-Sensor 2",
+ "controllable": false,
+ "low-crit-threshold": false,
+ "high-crit-threshold": false,
+ "minimum-recorded": false,
+ "maximum-recorded": false
}
]
}
],
"thermals": [
{
- "name": "ASIC On-board"
+ "name": "ASIC On-board",
+ "controllable": false,
+ "low-crit-threshold": false,
+ "high-crit-threshold": false,
+ "minimum-recorded": false,
+ "maximum-recorded": false
},
{
- "name": "NIC"
+ "name": "NIC",
+ "controllable": false,
+ "low-crit-threshold": false,
+ "high-crit-threshold": false,
+ "minimum-recorded": false,
+ "maximum-recorded": false
},
{
- "name": "System Front"
+ "name": "System Front",
+ "controllable": false,
+ "low-crit-threshold": false,
+ "high-crit-threshold": false,
+ "minimum-recorded": false,
+ "maximum-recorded": false
},
{
- "name": "DIMM"
+ "name": "DIMM",
+ "controllable": false,
+ "low-crit-threshold": false,
+ "high-crit-threshold": false,
+ "minimum-recorded": false,
+ "maximum-recorded": false
},
{
- "name": "CPU Core 0"
+ "name": "CPU Core 0",
+ "controllable": false,
+ "low-crit-threshold": false,
+ "high-crit-threshold": false,
+ "minimum-recorded": false,
+ "maximum-recorded": false
},
{
- "name": "CPU Core 1"
+ "name": "CPU Core 1",
+ "controllable": false,
+ "low-crit-threshold": false,
+ "high-crit-threshold": false,
+ "minimum-recorded": false,
+ "maximum-recorded": false
}
],
"modules": [],
diff --git a/device/dell/x86_64-dell_s6100_c2538-r0/platform.json b/device/dell/x86_64-dell_s6100_c2538-r0/platform.json
index 24e32b16bb15..8e9a0f17db16 100644
--- a/device/dell/x86_64-dell_s6100_c2538-r0/platform.json
+++ b/device/dell/x86_64-dell_s6100_c2538-r0/platform.json
@@ -1,6 +1,11 @@
{
"chassis": {
"name": "S6100-ON",
+ "status_led": {
+ "controllable": true,
+ "colors": ["amber", "blinking amber", "green", "blinking green"]
+ },
+ "thermal_manager" : false,
"components": [
{
"name": "BIOS"
@@ -14,48 +19,108 @@
],
"fans": [
{
- "name": "FanTray1-Fan1"
- },
- {
- "name": "FanTray2-Fan1"
- },
- {
- "name": "FanTray3-Fan1"
- },
- {
- "name": "FanTray4-Fan1"
+ "name": "FanTray1-Fan1",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
+ },
+ {
+ "name": "FanTray2-Fan1",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
+ },
+ {
+ "name": "FanTray3-Fan1",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
+ },
+ {
+ "name": "FanTray4-Fan1",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
}
],
"fan_drawers":[
{
"name": "FanTray1",
+ "status_led": {
+ "controllable": false
+ },
"fans": [
{
- "name": "FanTray1-Fan1"
+ "name": "FanTray1-Fan1",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
}
]
},
{
"name": "FanTray2",
+ "status_led": {
+ "controllable": false
+ },
"fans": [
{
- "name": "FanTray2-Fan1"
+ "name": "FanTray2-Fan1",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
}
]
},
{
"name": "FanTray3",
+ "status_led": {
+ "controllable": false
+ },
"fans": [
{
- "name": "FanTray3-Fan1"
+ "name": "FanTray3-Fan1",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
}
]
},
{
"name": "FanTray4",
+ "status_led": {
+ "controllable": false
+ },
"fans": [
{
- "name": "FanTray4-Fan1"
+ "name": "FanTray4-Fan1",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
}
]
}
@@ -63,51 +128,113 @@
"psus": [
{
"name": "PSU1",
+ "status_led": {
+ "controllable": false
+ },
"fans": [
{
- "name": "PSU1 Fan"
+ "name": "PSU1 Fan",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
}
]
},
{
"name": "PSU2",
+ "status_led": {
+ "controllable": false
+ },
"fans": [
{
- "name": "PSU2 Fan"
+ "name": "PSU2 Fan",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
}
]
}
],
"thermals": [
{
- "name": "CPU On-board"
+ "name": "CPU On-board",
+ "controllable": false,
+ "low-crit-threshold": false,
+ "minimum-recorded": false,
+ "maximum-recorded": false
},
{
- "name": "ASIC On-board Front"
+ "name": "ASIC On-board Front",
+ "controllable": false,
+ "low-crit-threshold": false,
+ "minimum-recorded": false,
+ "maximum-recorded": false
},
{
- "name": "System Front"
+ "name": "System Front",
+ "controllable": false,
+ "low-crit-threshold": false,
+ "minimum-recorded": false,
+ "maximum-recorded": false
},
{
- "name": "ASIC On-board Rear"
+ "name": "ASIC On-board Rear",
+ "controllable": false,
+ "low-crit-threshold": false,
+ "minimum-recorded": false,
+ "maximum-recorded": false
},
{
- "name": "Front GE board"
+ "name": "Front GE board",
+ "controllable": false,
+ "low-crit-threshold": false,
+ "minimum-recorded": false,
+ "maximum-recorded": false
},
{
- "name": "Front SFP+ board"
+ "name": "Front SFP+ board",
+ "controllable": false,
+ "low-crit-threshold": false,
+ "minimum-recorded": false,
+ "maximum-recorded": false
},
{
- "name": "CPU Core 0"
+ "name": "CPU Core 0",
+ "controllable": false,
+ "low-crit-threshold": false,
+ "high-crit-threshold": false,
+ "minimum-recorded": false,
+ "maximum-recorded": false
},
{
- "name": "CPU Core 1"
+ "name": "CPU Core 1",
+ "controllable": false,
+ "low-crit-threshold": false,
+ "high-crit-threshold": false,
+ "minimum-recorded": false,
+ "maximum-recorded": false
},
{
- "name": "CPU Core 2"
+ "name": "CPU Core 2",
+ "controllable": false,
+ "low-crit-threshold": false,
+ "high-crit-threshold": false,
+ "minimum-recorded": false,
+ "maximum-recorded": false
},
{
- "name": "CPU Core 3"
+ "name": "CPU Core 3",
+ "controllable": false,
+ "low-crit-threshold": false,
+ "high-crit-threshold": false,
+ "minimum-recorded": false,
+ "maximum-recorded": false
}
],
"modules": [
diff --git a/device/dell/x86_64-dellemc_z9332f_d1508-r0/platform.json b/device/dell/x86_64-dellemc_z9332f_d1508-r0/platform.json
index 2c603dd722fa..98a3322bf334 100644
--- a/device/dell/x86_64-dellemc_z9332f_d1508-r0/platform.json
+++ b/device/dell/x86_64-dellemc_z9332f_d1508-r0/platform.json
@@ -1,6 +1,11 @@
{
"chassis": {
"name": "Z9332F-ON",
+ "status_led": {
+ "controllable": true,
+ "colors": ["green", "flashing green", "yellow", "flashing yellow"]
+ },
+ "thermal_manager" : false,
"components": [
{
"name": "BIOS"
@@ -29,123 +34,312 @@
],
"fans": [
{
- "name": "FanTray1-Fan1"
- },
- {
- "name": "FanTray1-Fan2"
- },
- {
- "name": "FanTray2-Fan1"
- },
- {
- "name": "FanTray2-Fan2"
- },
- {
- "name": "FanTray3-Fan1"
- },
- {
- "name": "FanTray3-Fan2"
- },
- {
- "name": "FanTray4-Fan1"
- },
- {
- "name": "FanTray4-Fan2"
- },
- {
- "name": "FanTray5-Fan1"
- },
- {
- "name": "FanTray5-Fan2"
- },
- {
- "name": "FanTray6-Fan1"
- },
- {
- "name": "FanTray6-Fan2"
- },
- {
- "name": "FanTray7-Fan1"
- },
- {
- "name": "FanTray7-Fan2"
+ "name": "FanTray1-Fan1",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
+ },
+ {
+ "name": "FanTray1-Fan2",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
+ },
+ {
+ "name": "FanTray2-Fan1",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
+ },
+ {
+ "name": "FanTray2-Fan2",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
+ },
+ {
+ "name": "FanTray3-Fan1",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
+ },
+ {
+ "name": "FanTray3-Fan2",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
+ },
+ {
+ "name": "FanTray4-Fan1",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
+ },
+ {
+ "name": "FanTray4-Fan2",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
+ },
+ {
+ "name": "FanTray5-Fan1",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
+ },
+ {
+ "name": "FanTray5-Fan2",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
+ },
+ {
+ "name": "FanTray6-Fan1",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
+ },
+ {
+ "name": "FanTray6-Fan2",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
+ },
+ {
+ "name": "FanTray7-Fan1",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
+ },
+ {
+ "name": "FanTray7-Fan2",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
}
],
"fan_drawers":[
{
"name": "FanTray1",
+ "status_led": {
+ "controllable": false
+ },
"fans": [
{
- "name": "FanTray1-Fan1"
+ "name": "FanTray1-Fan1",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
},
{
- "name": "FanTray1-Fan2"
+ "name": "FanTray1-Fan2",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
}
]
},
{
"name": "FanTray2",
+ "status_led": {
+ "controllable": false
+ },
"fans": [
{
- "name": "FanTray2-Fan1"
+ "name": "FanTray2-Fan1",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
},
{
- "name": "FanTray2-Fan2"
+ "name": "FanTray2-Fan2",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
}
]
},
{
"name": "FanTray3",
+ "status_led": {
+ "controllable": false
+ },
"fans": [
{
- "name": "FanTray3-Fan1"
+ "name": "FanTray3-Fan1",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
},
{
- "name": "FanTray3-Fan2"
+ "name": "FanTray3-Fan2",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
}
]
},
{
"name": "FanTray4",
+ "status_led": {
+ "controllable": false
+ },
"fans": [
{
- "name": "FanTray4-Fan1"
+ "name": "FanTray4-Fan1",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
},
{
- "name": "FanTray4-Fan2"
+ "name": "FanTray4-Fan2",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
}
]
},
- {
+ {
"name": "FanTray5",
+ "status_led": {
+ "controllable": false
+ },
"fans": [
{
- "name": "FanTray5-Fan1"
+ "name": "FanTray5-Fan1",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
},
{
- "name": "FanTray5-Fan2"
+ "name": "FanTray5-Fan2",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
}
]
},
{
"name": "FanTray6",
+ "status_led": {
+ "controllable": false
+ },
"fans": [
{
- "name": "FanTray6-Fan1"
+ "name": "FanTray6-Fan1",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
},
{
- "name": "FanTray6-Fan2"
+ "name": "FanTray6-Fan2",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
}
]
},
{
"name": "FanTray7",
+ "status_led": {
+ "controllable": false
+ },
"fans": [
{
- "name": "FanTray7-Fan1"
+ "name": "FanTray7-Fan1",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
},
{
- "name": "FanTray7-Fan2"
+ "name": "FanTray7-Fan2",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
}
]
}
@@ -153,63 +347,158 @@
"psus": [
{
"name": "PSU1",
+ "status_led": {
+ "controllable": false
+ },
"fans": [
{
- "name": "PSU1 Fan"
+ "name": "PSU1 Fan",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
}
]
},
{
"name": "PSU2",
+ "status_led": {
+ "controllable": false
+ },
"fans": [
{
- "name": "PSU2 Fan"
+ "name": "PSU2 Fan",
+ "speed": {
+ "controllable": false
+ },
+ "status_led": {
+ "available": false
+ }
}
]
}
],
"thermals": [
{
- "name": "CPU On-board"
- },
- {
- "name": "Baseboard U3"
- },
- {
- "name": "SW Internal"
- },
- {
- "name": "Fan U52"
- },
- {
- "name": "Fan U17"
- },
- {
- "name": "SW U52"
- },
- {
- "name": "SW U16"
- },
- {
- "name": "PSU1 Inlet"
- },
- {
- "name": "PSU1 Hotspot"
- },
- {
- "name": "PSU2 Inlet"
- },
- {
- "name": "PSU2 Hotspot"
- },
- {
- "name": "SW U04"
- },
- {
- "name": "SW U14"
- },
- {
- "name": "SW U4403"
+ "name": "CPU On-board",
+ "controllable": false,
+ "low-crit-threshold": false,
+ "high-threshold": false,
+ "minimum-recorded": false,
+ "maximum-recorded": false
+ },
+ {
+ "name": "Baseboard U3",
+ "controllable": false,
+ "low-crit-threshold": false,
+ "high-threshold": false,
+ "high-crit-threshold": false,
+ "minimum-recorded": false,
+ "maximum-recorded": false
+ },
+ {
+ "name": "SW Internal",
+ "controllable": false,
+ "low-crit-threshold": false,
+ "minimum-recorded": false,
+ "maximum-recorded": false
+ },
+ {
+ "name": "Fan U52",
+ "controllable": false,
+ "low-crit-threshold": false,
+ "minimum-recorded": false,
+ "maximum-recorded": false
+ },
+ {
+ "name": "Fan U17",
+ "controllable": false,
+ "low-crit-threshold": false,
+ "high-threshold": false,
+ "high-crit-threshold": false,
+ "minimum-recorded": false,
+ "maximum-recorded": false
+ },
+ {
+ "name": "SW U52",
+ "controllable": false,
+ "low-crit-threshold": false,
+ "high-threshold": false,
+ "high-crit-threshold": false,
+ "minimum-recorded": false,
+ "maximum-recorded": false
+ },
+ {
+ "name": "SW U16",
+ "controllable": false,
+ "low-crit-threshold": false,
+ "minimum-recorded": false,
+ "maximum-recorded": false
+ },
+ {
+ "name": "PSU1 Inlet",
+ "controllable": false,
+ "low-crit-threshold": false,
+ "high-threshold": false,
+ "high-crit-threshold": false,
+ "minimum-recorded": false,
+ "maximum-recorded": false
+ },
+ {
+ "name": "PSU1 Hotspot",
+ "controllable": false,
+ "low-crit-threshold": false,
+ "high-threshold": false,
+ "high-crit-threshold": false,
+ "minimum-recorded": false,
+ "maximum-recorded": false
+ },
+ {
+ "name": "PSU2 Inlet",
+ "controllable": false,
+ "low-crit-threshold": false,
+ "high-threshold": false,
+ "high-crit-threshold": false,
+ "minimum-recorded": false,
+ "maximum-recorded": false
+ },
+ {
+ "name": "PSU2 Hotspot",
+ "controllable": false,
+ "low-crit-threshold": false,
+ "high-threshold": false,
+ "high-crit-threshold": false,
+ "minimum-recorded": false,
+ "maximum-recorded": false
+ },
+ {
+ "name": "SW U04",
+ "controllable": false,
+ "low-crit-threshold": false,
+ "high-threshold": false,
+ "high-crit-threshold": false,
+ "minimum-recorded": false,
+ "maximum-recorded": false
+ },
+ {
+ "name": "SW U14",
+ "controllable": false,
+ "low-crit-threshold": false,
+ "high-threshold": false,
+ "high-crit-threshold": false,
+ "minimum-recorded": false,
+ "maximum-recorded": false
+ },
+ {
+ "name": "SW U4403",
+ "controllable": false,
+ "low-crit-threshold": false,
+ "high-threshold": false,
+ "high-crit-threshold": false,
+ "minimum-recorded": false,
+ "maximum-recorded": false
}
],
"modules": [],
diff --git a/device/dell/x86_64-dellemc_z9332f_d1508-r0/system_health_monitoring_config.json b/device/dell/x86_64-dellemc_z9332f_d1508-r0/system_health_monitoring_config.json
index d52b24cf905d..4f82136007a3 100644
--- a/device/dell/x86_64-dellemc_z9332f_d1508-r0/system_health_monitoring_config.json
+++ b/device/dell/x86_64-dellemc_z9332f_d1508-r0/system_health_monitoring_config.json
@@ -6,6 +6,6 @@
"led_color": {
"fault": "yellow",
"normal": "green",
- "booting": "flash_green"
+ "booting": "flashing green"
}
}
diff --git a/platform/broadcom/sonic-platform-modules-dell/z9332f/sonic_platform/chassis.py b/platform/broadcom/sonic-platform-modules-dell/z9332f/sonic_platform/chassis.py
index 72f46653d51a..e14ce1ce4ddb 100755
--- a/platform/broadcom/sonic-platform-modules-dell/z9332f/sonic_platform/chassis.py
+++ b/platform/broadcom/sonic-platform-modules-dell/z9332f/sonic_platform/chassis.py
@@ -59,17 +59,17 @@ class Chassis(ChassisBase):
SYSLED_COLOR_TO_REG = {
"green": 0xd0,
"yellow": 0xe0,
- "flash_green": 0xd2,
- "flash_yellow": 0xe2
+ "flashing green": 0xd2,
+ "flashing yellow": 0xe2
}
REG_TO_SYSLED_COLOR = {
0xd0 : "green",
0xe0 : "yellow",
- 0xd2 : "flash_green",
- 0xd1 : "flash_green",
- 0xe2 : "flash_yellow",
- 0xe1 : "flash_yellow"
+ 0xd2 : "flashing green",
+ 0xd1 : "flashing green",
+ 0xe2 : "flashing yellow",
+ 0xe1 : "flashing yellow"
}
_global_port_pres_dict = {}
From 8c57f0521f3be4daca3db94aac35e97db6b285f8 Mon Sep 17 00:00:00 2001
From: Dev Ojha <47282568+developfast@users.noreply.github.com>
Date: Wed, 31 Aug 2022 11:08:32 -0700
Subject: [PATCH 8/9] [Arista7050cx3] TD3 SKU changes for pg headroom value
after interop testing with cisco 8102 (#11901)
Why I did it
After PFC interop testing between 8102 and 7050cx3, data packet losses were observed on the Rx ports of the 7050cx3 (inflow from 8102) during testing. This was primarily due to the slower response times to react to PFC pause packets for the 8102, when receiving such frames from neighboring devices. To solve for the packet drops, the 7050cx3 pg headroom size has to be increased to 160kB.
How I did it
Modified the xoff threshold value to 160kB in the pg_profile file to allow for the buffer manager to read that value when building the image, and configuring the device
How to verify it
run "mmuconfig -l" once image is built
Signed-off-by: dojha
---
.../Arista-7050CX3-32S-C32/pg_profile_lookup.ini | 12 ++++++------
.../Arista-7050CX3-32S-D48C8/pg_profile_lookup.ini | 12 ++++++------
2 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/device/arista/x86_64-arista_7050cx3_32s/Arista-7050CX3-32S-C32/pg_profile_lookup.ini b/device/arista/x86_64-arista_7050cx3_32s/Arista-7050CX3-32S-C32/pg_profile_lookup.ini
index dd405301f720..5b4482bc74c7 100644
--- a/device/arista/x86_64-arista_7050cx3_32s/Arista-7050CX3-32S-C32/pg_profile_lookup.ini
+++ b/device/arista/x86_64-arista_7050cx3_32s/Arista-7050CX3-32S-C32/pg_profile_lookup.ini
@@ -1,8 +1,8 @@
# PG lossless profiles.
# speed cable size xon xoff threshold xon_offset
- 50000 5m 4608 4608 33792 0 4608
- 100000 5m 4608 4608 49408 0 4608
- 50000 40m 4608 4608 36352 0 4608
- 100000 40m 4608 4608 54528 0 4608
- 50000 300m 4608 4608 55296 0 4608
- 100000 300m 4608 4608 92672 0 4608
+ 50000 5m 4608 4608 160000 0 4608
+ 100000 5m 4608 4608 160000 0 4608
+ 50000 40m 4608 4608 160000 0 4608
+ 100000 40m 4608 4608 160000 0 4608
+ 50000 300m 4608 4608 160000 0 4608
+ 100000 300m 4608 4608 160000 0 4608
diff --git a/device/arista/x86_64-arista_7050cx3_32s/Arista-7050CX3-32S-D48C8/pg_profile_lookup.ini b/device/arista/x86_64-arista_7050cx3_32s/Arista-7050CX3-32S-D48C8/pg_profile_lookup.ini
index 8ee7a6714b1e..5b4482bc74c7 100644
--- a/device/arista/x86_64-arista_7050cx3_32s/Arista-7050CX3-32S-D48C8/pg_profile_lookup.ini
+++ b/device/arista/x86_64-arista_7050cx3_32s/Arista-7050CX3-32S-D48C8/pg_profile_lookup.ini
@@ -1,8 +1,8 @@
# PG lossless profiles.
# speed cable size xon xoff threshold xon_offset
- 50000 5m 4608 4608 79872 0 4608
- 100000 5m 4608 4608 54528 0 4608
- 50000 40m 4608 4608 39936 0 4608
- 100000 40m 4608 4608 60416 0 4608
- 50000 300m 4608 4608 61440 0 4608
- 100000 300m 4608 4608 103680 0 4608
+ 50000 5m 4608 4608 160000 0 4608
+ 100000 5m 4608 4608 160000 0 4608
+ 50000 40m 4608 4608 160000 0 4608
+ 100000 40m 4608 4608 160000 0 4608
+ 50000 300m 4608 4608 160000 0 4608
+ 100000 300m 4608 4608 160000 0 4608
From c4e2c33319b37104d9bf9f28ea5ea7421ed3a63d Mon Sep 17 00:00:00 2001
From: kellyyeh
Date: Thu, 1 Sep 2022 22:24:30 +0000
Subject: [PATCH 9/9] Fix dhcrelay unittest conflict
---
.../docker-dhcp-relay/docker-dhcp-relay.supervisord.conf.j2 | 2 +-
.../py2/docker-dhcp-relay-no-ip-helper.supervisord.conf | 4 ++++
.../py3/docker-dhcp-relay-no-ip-helper.supervisord.conf | 4 ++++
3 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/dockers/docker-dhcp-relay/docker-dhcp-relay.supervisord.conf.j2 b/dockers/docker-dhcp-relay/docker-dhcp-relay.supervisord.conf.j2
index cf5bb9b68e00..56230db99780 100644
--- a/dockers/docker-dhcp-relay/docker-dhcp-relay.supervisord.conf.j2
+++ b/dockers/docker-dhcp-relay/docker-dhcp-relay.supervisord.conf.j2
@@ -93,9 +93,9 @@ programs=
{% if 'dhcp_server' not in DEVICE_METADATA['localhost'] or 'enable' not in DEVICE_METADATA['localhost']['dhcp_server'] %}
{% include 'dhcpv4-relay.agents.j2' %}
{% endif %}
-{% include 'dhcpv6-relay.agents.j2' %}
{% endfor %}
+{% include 'dhcpv6-relay.agents.j2' %}
{% include 'dhcp-relay.monitors.j2' %}
{% endif %}
{% endif %}
diff --git a/src/sonic-config-engine/tests/sample_output/py2/docker-dhcp-relay-no-ip-helper.supervisord.conf b/src/sonic-config-engine/tests/sample_output/py2/docker-dhcp-relay-no-ip-helper.supervisord.conf
index c36dbe22533b..54b6a29b3a1b 100644
--- a/src/sonic-config-engine/tests/sample_output/py2/docker-dhcp-relay-no-ip-helper.supervisord.conf
+++ b/src/sonic-config-engine/tests/sample_output/py2/docker-dhcp-relay-no-ip-helper.supervisord.conf
@@ -39,6 +39,10 @@ stderr_logfile=syslog
dependent_startup=true
dependent_startup_wait_for=rsyslogd:running
+
+[group:dhcp-server]
+programs=
+
[group:dhcp-relay]
programs=isc-dhcpv4-relay-Vlan1000,dhcp6relay
diff --git a/src/sonic-config-engine/tests/sample_output/py3/docker-dhcp-relay-no-ip-helper.supervisord.conf b/src/sonic-config-engine/tests/sample_output/py3/docker-dhcp-relay-no-ip-helper.supervisord.conf
index 35ad0c48b82f..8d08ac869690 100644
--- a/src/sonic-config-engine/tests/sample_output/py3/docker-dhcp-relay-no-ip-helper.supervisord.conf
+++ b/src/sonic-config-engine/tests/sample_output/py3/docker-dhcp-relay-no-ip-helper.supervisord.conf
@@ -39,6 +39,10 @@ stderr_logfile=syslog
dependent_startup=true
dependent_startup_wait_for=rsyslogd:running
+
+[group:dhcp-server]
+programs=
+
[group:dhcp-relay]
programs=isc-dhcpv4-relay-Vlan1000,dhcp6relay