File tree 2 files changed +6
-2
lines changed
src/sonic-py-common/sonic_py_common
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 4
4
"hostname" : "{{HOST_IP}}",
5
5
"port" : {{REDIS_PORT}},
6
6
"unix_socket_path" : "/var/run/redis{{DEV}}/redis.sock",
7
- "persistence_for_warm_boot" : "yes",
8
- "database_type": "{{DATABASE_TYPE}}"
7
+ "persistence_for_warm_boot" : "yes"
8
+ {% if DATABASE_TYPE is defined and DATABASE_TYPE != "" %}
9
+ ,"database_type": "{{DATABASE_TYPE}}"
10
+ {% endif %}
9
11
},
10
12
"redis_chassis":{
11
13
"hostname" : "redis_chassis.server",
Original file line number Diff line number Diff line change @@ -847,6 +847,8 @@ def is_frontend_port_present_in_host():
847
847
848
848
849
849
def get_num_dpus ():
850
+ # Todo: we should use platform api to get the dpu number
851
+ # instead of rely on the platform env config.
850
852
num_dpus = 0
851
853
platform_env_conf_file_path = get_platform_env_conf_file_path ()
852
854
You can’t perform that action at this time.
0 commit comments