File tree 7 files changed +53
-3
lines changed
7 files changed +53
-3
lines changed Original file line number Diff line number Diff line change 4
4
"buffer_model": {% if default_buffer_model == "dynamic" %} "dynamic"{% else %} "traditional"{% endif %} ,
5
5
{% - if include_p 4rt == "y" %} "synchronous_mode":"enable",{% endif %}
6
6
"default_bgp_status": {% if shutdown_bgp_on_start == "y" %} "down"{% else %} "up"{% endif %} ,
7
- "default_pfcwd_status": {% if enable_pfcwd_on_start == "y" %} "enable"{% else %} "disable"{% endif %}
7
+ "default_pfcwd_status": {% if enable_pfcwd_on_start == "y" %} "enable"{% else %} "disable"{% endif %} ,
8
+ "timezone": "UTC"
8
9
}
9
10
},
10
11
"CRM": {
Original file line number Diff line number Diff line change @@ -927,7 +927,8 @@ instance is supported in SONiC.
927
927
"bgp_adv_lo_prefix_as_128" : "true",
928
928
"buffer_model": "traditional",
929
929
"yang_config_validation": "disable",
930
- "rack_mgmt_map": "dummy_value"
930
+ "rack_mgmt_map": "dummy_value",
931
+ "timezome": "Europe/Kiev"
931
932
}
932
933
}
933
934
}
Original file line number Diff line number Diff line change 360
360
"dhcp_server" : " disabled" ,
361
361
"bgp_adv_lo_prefix_as_128" : " true" ,
362
362
"yang_config_validation" : " disable" ,
363
- "rack_mgmt_map" : " dummy_value"
363
+ "rack_mgmt_map" : " dummy_value" ,
364
+ "timezone" : " Europe/Kiev"
364
365
}
365
366
},
366
367
"VLAN" : {
Original file line number Diff line number Diff line change 142
142
"DEVICE_METADATA_INVALID_RACK_MGMT_MAP" : {
143
143
"desc" : " Verifying invalid rack_mgmt_map configuration." ,
144
144
"eStr" : " Invalid length for the rack mgmt map."
145
+ },
146
+ "DEVICE_METADATA_VALID_TIMEZONE" : {
147
+ "desc" : " Verifying valid timezone value"
148
+ },
149
+ "DEVICE_METADATA_INVALID_TIMEZONE" : {
150
+ "desc" : " Verifying invalid timezone value" ,
151
+ "eStrKey" : " Range"
145
152
}
146
153
}
Original file line number Diff line number Diff line change 372
372
}
373
373
}
374
374
},
375
+ "DEVICE_METADATA_VALID_TIMEZONE" : {
376
+ "sonic-device_metadata:sonic-device_metadata" : {
377
+ "sonic-device_metadata:DEVICE_METADATA" : {
378
+ "sonic-device_metadata:localhost" : {
379
+ "timezone" : " UTC"
380
+ }
381
+ }
382
+ }
383
+ },
375
384
"DEVICE_METADATA_INVALID_RACK_MGMT_MAP" : {
376
385
"sonic-device_metadata:sonic-device_metadata" : {
377
386
"sonic-device_metadata:DEVICE_METADATA" : {
380
389
}
381
390
}
382
391
}
392
+ },
393
+ "DEVICE_METADATA_INVALID_TIMEZONE" : {
394
+ "sonic-device_metadata:sonic-device_metadata" : {
395
+ "sonic-device_metadata:DEVICE_METADATA" : {
396
+ "sonic-device_metadata:localhost" : {
397
+ "timezone" : " "
398
+ }
399
+ }
400
+ }
383
401
}
384
402
}
Original file line number Diff line number Diff line change @@ -225,6 +225,15 @@ module sonic-device_metadata {
225
225
}
226
226
description "Information of rack mgmt map." ;
227
227
}
228
+
229
+ leaf timezone {
230
+ type stypes:timezone-name-type {
231
+ length 1 ..255 ;
232
+ }
233
+ default "UTC" ;
234
+ description "The TZ database name to use for the system, such as 'Europe/Stockholm'." ;
235
+ reference "IANA Time Zone Database http://www.iana.org/time-zones" ;
236
+ }
228
237
}
229
238
/* end of container localhost */
230
239
}
Original file line number Diff line number Diff line change @@ -334,6 +334,19 @@ module sonic-types {
334
334
}
335
335
}
336
336
337
+ typedef timezone-name-type {
338
+ type string;
339
+ description
340
+ "A time zone name as used by the Time Zone Database,
341
+ sometimes referred to as the 'Olson Database'.
342
+
343
+ The exact set of valid values is an implementation-specific
344
+ matter. Client discovery of the exact set of time zone names
345
+ for a particular server is out of scope.";
346
+ reference
347
+ "BCP 175: Procedures for Maintaining the Time Zone Database";
348
+ }
349
+
337
350
{% if yang_model_type == "cvl" %}
338
351
/* Required for CVL */
339
352
container operation {
You can’t perform that action at this time.
0 commit comments