acf465b43b
* Multi DB with namespace support, Introducing the database_global.json file for supporting accessing DB's in other namespaces for service running in linux host * Updates based on comments * Adding the j2 templates for database_config and database_global files. * Updating to retrieve the redis DIR's to be mounted from database_global.json file. * Additional check to see if asic.conf file exists before sourcing it. * Updates based on PR comments discussion. * Review comments update * Updates to the argument "-n" for namespace used in both context of parsing minigraph and multi DB access. * Update with the attribute "persistence_for_warm_boot" that was added to database_config.json file earlier. * Removing the database_config.json file to avioid confusion in future. We use the database_config.json.j2 file to generate database_config.json files dynamically. * Update the comments for sudo usage in docker_image_ctrl.j2 * Update with the new logic in PING PONG tests using sonic-db-cli. With this we wait till the PONG response is received when redis server is up. * Similar changes in swss and syncd scripts for the PING tests with sonic-db-cli * Updated with a missing , in the database_config.json.j2 file, Do pip install of j2cli in docker-base-buster.
22 lines
492 B
Django/Jinja
22 lines
492 B
Django/Jinja
{% set namespace_cnt = NAMESPACE_COUNT|int %}
|
|
{
|
|
"INCLUDES" : [
|
|
{
|
|
"include" : "../../redis/sonic-db/database_config.json"
|
|
},
|
|
{% 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 %}
|
|
],
|
|
"VERSION" : "1.0"
|
|
}
|
|
{% endif %}
|