2020-05-08 23:24:05 -05:00
|
|
|
{% set namespace_cnt = NAMESPACE_COUNT|int %}
|
2023-11-17 11:10:03 -06:00
|
|
|
{% if NUM_DPU is defined %}
|
|
|
|
{% set dpu_cnt = NUM_DPU | int %}
|
|
|
|
{% else %}
|
|
|
|
{% set dpu_cnt = 0 %}
|
|
|
|
{% endif %}
|
2020-05-08 23:24:05 -05:00
|
|
|
{
|
|
|
|
"INCLUDES" : [
|
|
|
|
{
|
|
|
|
"include" : "../../redis/sonic-db/database_config.json"
|
|
|
|
},
|
2023-11-17 11:10:03 -06:00
|
|
|
|
2020-05-08 23:24:05 -05:00
|
|
|
{% if namespace_cnt > 1 %}
|
|
|
|
{% for ns in range(namespace_cnt) %}
|
|
|
|
{
|
|
|
|
"namespace" : "{{NAMESPACE_PREFIX}}{{ns}}",
|
|
|
|
"include" : "../../redis{{ns}}/sonic-db/database_config.json"
|
|
|
|
{% if ns == namespace_cnt-1 %}
|
|
|
|
}
|
|
|
|
{% else %}
|
|
|
|
},
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2023-11-17 11:10:03 -06:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if dpu_cnt > 0 %}
|
|
|
|
{% for dpu in range(dpu_cnt) %}
|
|
|
|
{
|
|
|
|
"database_type" : "dpudb",
|
|
|
|
"include" : "../../redisdpu{{dpu}}/sonic-db/database_config.json"
|
|
|
|
{% if dpu == dpu_cnt-1 %}
|
|
|
|
}
|
|
|
|
{% else %}
|
|
|
|
},
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
|
2020-05-08 23:24:05 -05:00
|
|
|
],
|
|
|
|
"VERSION" : "1.0"
|
|
|
|
}
|
2023-11-17 11:10:03 -06:00
|
|
|
|