From 984c43e01da4a37651fd3bda50a3e67bf7cc5fc8 Mon Sep 17 00:00:00 2001 From: yozhao101 <56170650+yozhao101@users.noreply.github.com> Date: Tue, 11 Feb 2020 11:05:21 -0800 Subject: [PATCH] [init_cfg.json] Add new FEATURE and CONTAINER_FEATURE tables (#4137) * [init_cfg.json] Add a new table CONTAINER_FEATURE. Signed-off-by: Yong Zhao * [init_cfg.json] Update the content of table CONTAINER_FEATURE. Signed-off-by: Yong Zhao * [init_cfg.json] Use the template to generate the table CONTAINER_FEATURE. Signed-off-by: Yong Zhao * [init_cfg.json] Add a new table FEATURE. Signed-off-by: Yong Zhao * [init_cfg.json] Change the order of container names according to alphabetical order. Signed-off-by: Yong Zhao * [init_cfg.json] Change the dhcp_relay container name and add rest-api. Signed-off-by: Yong Zhao --- files/build_templates/init_cfg.json.j2 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/files/build_templates/init_cfg.json.j2 b/files/build_templates/init_cfg.json.j2 index 33cfe990f900..bc2eff3ede56 100644 --- a/files/build_templates/init_cfg.json.j2 +++ b/files/build_templates/init_cfg.json.j2 @@ -16,5 +16,21 @@ "{{crm_res}}_high_threshold": "85"{% if not loop.last %},{% endif -%} {% endfor %} } + }, + "FEATURE": { +{%- for feature in ["sflow", "telemetry"] %} + "{{feature}}": { + "status": "disabled" + }{% if not loop.last %},{% endif -%} +{% endfor %} + }, + "CONTAINER_FEATURE": { +{%- for container in ["bgp", "database", "dhcp_relay", "lldp", "pmon", "radv", "rest-api", "sflow", + "snmp", "swss", "syncd", "teamd", "telemetry"] %} + "{{container}}": { + "auto_restart": "disabled", + "high_mem_alert": "disabled" + }{% if not loop.last %},{% endif -%} +{% endfor %} } }