Skip to content

Commit a468631

Browse files
Merge branch 'master' of github.com:sonic-net/sonic-buildimage into sonic-mgmt-dash
2 parents 10bcf1a + 5e8e658 commit a468631

File tree

8 files changed

+44
-20
lines changed

8 files changed

+44
-20
lines changed

device/nokia/x86_64-nokia_ixr7250e_36x400g-r0/platform_reboot

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ sleep 2
4444
echo "w" > /dev/watchdog
4545
kick_date=`date -u`
4646
echo "last watchdog kick $kick_date" > /var/log/nokia-watchdog-last.log
47-
rm -f /sys/firmware/efi/efivars/dump-*
47+
# rm -f /sys/firmware/efi/efivars/dump-*
4848
sync
4949
exec /sbin/reboot $@

device/nokia/x86_64-nokia_ixr7250e_sup-r0/platform_reboot

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ sleep 2
3333
echo "w" > /dev/watchdog
3434
kick_date=`date -u`
3535
echo "last watchdog kick $kick_date" > /var/log/nokia-watchdog-last.log
36-
rm -f /sys/firmware/efi/efivars/dump-*
36+
# rm -f /sys/firmware/efi/efivars/dump-*
3737
echo "Shutdown midplane"
3838
ifconfig xe0 down
3939
sync

files/build_templates/bmp.service.j2

-16
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[Unit]
2+
Description=BMP container
3+
Requires=database{% if multi_instance == 'true' %}@%i{% endif %}.service
4+
After=database{% if multi_instance == 'true' %}@%i{% endif %}.service
5+
Before=ntp-config.service
6+
BindsTo=sonic.target
7+
After=sonic.target
8+
StartLimitIntervalSec=1200
9+
StartLimitBurst=3
10+
11+
[Service]
12+
User={{ sonicadmin_user }}
13+
ExecStartPre=/usr/local/bin/{{docker_container_name}}.sh start{% if multi_instance == 'true' %} %i{% endif %}
14+
ExecStart=/usr/local/bin/{{docker_container_name}}.sh wait{% if multi_instance == 'true' %} %i{% endif %}
15+
ExecStop=/usr/local/bin/{{docker_container_name}}.sh stop{% if multi_instance == 'true' %} %i{% endif %}
16+
RestartSec=30

src/sonic-config-engine/portconfig.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ def parse_platform_json_file(hwsku_json_file, platform_json_file):
417417

418418
for intf in port_dict[INTF_KEY]:
419419
if intf not in hwsku_dict[INTF_KEY]:
420-
raise Exception("{} is not available in hwsku_dict".format(intf))
420+
continue
421421

422422
# take default_brkout_mode from hwsku.json
423423
brkout_mode = hwsku_dict[INTF_KEY][intf][BRKOUT_MODE]

src/sonic-yang-models/tests/yang_model_tests/tests_config/flex_counter.json

+1
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@
163163
"PORT": {
164164
"FLEX_COUNTER_STATUS": "enable",
165165
"BULK_CHUNK_SIZE": 100,
166+
"BULK_CHUNK_SIZE_PER_PREFIX": "SAI_PORT_STAT_IF_OUT_QLEN:0;SAI_PORT_STAT_IF_IN_FEC:32",
166167
"POLL_INTERVAL": 1000
167168
},
168169
"PORT_BUFFER_DROP": {

src/sonic-yang-models/yang-models/sonic-flex_counter.yang

+23
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ module sonic-flex_counter {
4747
}
4848
}
4949

50+
typedef bulk_chunk_size_per_prefix {
51+
type string;
52+
description "Bulk chunk size per counter name prefix";
53+
}
54+
5055
description "FLEX_COUNTER_TABLE part of config_db.json";
5156

5257
/* below are in alphabetical order */
@@ -111,6 +116,9 @@ module sonic-flex_counter {
111116
leaf BULK_CHUNK_SIZE {
112117
type bulk_chunk_size;
113118
}
119+
leaf BULK_CHUNK_SIZE_PER_PREFIX {
120+
type bulk_chunk_size_per_prefix;
121+
}
114122
}
115123

116124
container PG_WATERMARK {
@@ -127,6 +135,9 @@ module sonic-flex_counter {
127135
leaf BULK_CHUNK_SIZE {
128136
type bulk_chunk_size;
129137
}
138+
leaf BULK_CHUNK_SIZE_PER_PREFIX {
139+
type bulk_chunk_size_per_prefix;
140+
}
130141
}
131142

132143
container PORT {
@@ -143,6 +154,9 @@ module sonic-flex_counter {
143154
leaf BULK_CHUNK_SIZE {
144155
type bulk_chunk_size;
145156
}
157+
leaf BULK_CHUNK_SIZE_PER_PREFIX {
158+
type bulk_chunk_size_per_prefix;
159+
}
146160
}
147161

148162
container PORT_RATES {
@@ -169,6 +183,9 @@ module sonic-flex_counter {
169183
leaf BULK_CHUNK_SIZE {
170184
type bulk_chunk_size;
171185
}
186+
leaf BULK_CHUNK_SIZE_PER_PREFIX {
187+
type bulk_chunk_size_per_prefix;
188+
}
172189
}
173190

174191
container QUEUE {
@@ -185,6 +202,9 @@ module sonic-flex_counter {
185202
leaf BULK_CHUNK_SIZE {
186203
type bulk_chunk_size;
187204
}
205+
leaf BULK_CHUNK_SIZE_PER_PREFIX {
206+
type bulk_chunk_size_per_prefix;
207+
}
188208
}
189209

190210
container QUEUE_WATERMARK {
@@ -201,6 +221,9 @@ module sonic-flex_counter {
201221
leaf BULK_CHUNK_SIZE {
202222
type bulk_chunk_size;
203223
}
224+
leaf BULK_CHUNK_SIZE_PER_PREFIX {
225+
type bulk_chunk_size_per_prefix;
226+
}
204227
}
205228

206229
container RIF {

0 commit comments

Comments
 (0)