2020-02-07 14:35:35 -06:00
|
|
|
{
|
|
|
|
"DEVICE_METADATA": {
|
|
|
|
"localhost": {
|
|
|
|
"default_bgp_status": {% if shutdown_bgp_on_start == "y" %}"down"{% else %}"up"{% endif %},
|
2020-09-10 03:26:10 -05:00
|
|
|
"default_pfcwd_status": {% if enable_pfcwd_on_start == "y" %}"enable"{% else %}"disable"{% endif %}
|
2020-02-07 14:35:35 -06:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"CRM": {
|
|
|
|
"Config": {
|
|
|
|
"polling_interval": "300",
|
|
|
|
{%- for crm_res in ["ipv4_route", "ipv6_route", "ipv4_nexthop", "ipv6_nexthop", "ipv4_neighbor",
|
|
|
|
"ipv6_neighbor", "nexthop_group_member", "nexthop_group", "acl_table",
|
|
|
|
"acl_group", "acl_entry", "acl_counter", "fdb_entry"] %}
|
|
|
|
"{{crm_res}}_threshold_type": "percentage",
|
|
|
|
"{{crm_res}}_low_threshold": "70",
|
|
|
|
"{{crm_res}}_high_threshold": "85"{% if not loop.last %},{% endif -%}
|
|
|
|
{% endfor %}
|
|
|
|
}
|
2020-02-11 13:05:21 -06:00
|
|
|
},
|
2020-08-19 21:27:59 -05:00
|
|
|
{%- set features = [("bgp", "enabled", false, "enabled"),
|
|
|
|
("database", "enabled", false, "disabled"),
|
|
|
|
("dhcp_relay", "enabled", false, "enabled"),
|
|
|
|
("lldp", "enabled", false, "enabled"),
|
|
|
|
("pmon", "enabled", false, "enabled"),
|
|
|
|
("radv", "enabled", false, "enabled"),
|
|
|
|
("snmp", "enabled", true, "enabled"),
|
|
|
|
("swss", "enabled", false, "enabled"),
|
|
|
|
("syncd", "enabled", false, "enabled"),
|
|
|
|
("teamd", "enabled", false, "enabled")] %}
|
|
|
|
{%- if include_iccpd == "y" %}{% do features.append(("iccpd", "disabled", false, "enabled")) %}{% endif %}
|
2020-08-27 13:53:58 -05:00
|
|
|
{%- if include_mgmt_framework == "y" %}{% do features.append(("mgmt-framework", "enabled", true, "enabled")) %}{% endif %}
|
2020-08-19 21:27:59 -05:00
|
|
|
{%- if include_nat == "y" %}{% do features.append(("nat", "disabled", false, "enabled")) %}{% endif %}
|
|
|
|
{%- if include_restapi == "y" %}{% do features.append(("restapi", "enabled", false, "enabled")) %}{% endif %}
|
|
|
|
{%- if include_sflow == "y" %}{% do features.append(("sflow", "disabled", false, "enabled")) %}{% endif %}
|
|
|
|
{%- if include_system_telemetry == "y" %}{% do features.append(("telemetry", "enabled", true, "enabled")) %}{% endif %}
|
2020-02-11 13:05:21 -06:00
|
|
|
"FEATURE": {
|
2020-08-19 21:27:59 -05:00
|
|
|
{# has_timer field if set, will start the feature systemd .timer unit instead of .service unit #}
|
|
|
|
{%- for feature, state, has_timer, autorestart in features %}
|
2020-02-11 13:05:21 -06:00
|
|
|
"{{feature}}": {
|
2020-08-05 15:23:12 -05:00
|
|
|
"state": "{{state}}",
|
2020-08-19 21:27:59 -05:00
|
|
|
"has_timer" : {{has_timer | lower()}},
|
2020-09-22 10:34:02 -05:00
|
|
|
"has_global_scope": {% if feature + '.service' in installer_services.split(' ') %}true{% else %}false{% endif %},
|
|
|
|
"has_per_asic_scope": {% if feature + '@.service' in installer_services.split(' ') %}true{% else %}false{% endif %},
|
2020-08-05 15:23:12 -05:00
|
|
|
"auto_restart": "{{autorestart}}",
|
2020-02-11 13:05:21 -06:00
|
|
|
"high_mem_alert": "disabled"
|
|
|
|
}{% if not loop.last %},{% endif -%}
|
|
|
|
{% endfor %}
|
2020-02-07 14:35:35 -06:00
|
|
|
}
|
|
|
|
}
|