2020-02-07 14:35:35 -06:00
|
|
|
{
|
|
|
|
"DEVICE_METADATA": {
|
|
|
|
"localhost": {
|
|
|
|
"default_bgp_status": {% if shutdown_bgp_on_start == "y" %}"down"{% else %}"up"{% endif %},
|
|
|
|
"default_pfcwd_status": {% if enable_pfcwd_on_start == "y" %}"enable"{% else %}"disable"{% endif %}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"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
|
|
|
},
|
|
|
|
"FEATURE": {
|
2020-06-12 18:20:31 -05:00
|
|
|
{%- for feature, status in [("sflow", "disabled"), ("telemetry", "enabled")] %}
|
2020-02-11 13:05:21 -06:00
|
|
|
"{{feature}}": {
|
2020-06-12 18:20:31 -05:00
|
|
|
"status": "{{status}}"
|
2020-02-11 13:05:21 -06:00
|
|
|
}{% if not loop.last %},{% endif -%}
|
|
|
|
{% endfor %}
|
|
|
|
},
|
|
|
|
"CONTAINER_FEATURE": {
|
2020-03-12 18:11:15 -05:00
|
|
|
{%- for container in ["bgp", "database", "dhcp_relay", "lldp", "nat", "pmon", "radv", "restapi", "sflow",
|
2020-02-11 13:05:21 -06:00
|
|
|
"snmp", "swss", "syncd", "teamd", "telemetry"] %}
|
|
|
|
"{{container}}": {
|
2020-07-15 13:49:14 -05:00
|
|
|
"auto_restart": "{% if container == "database" %}disabled{% else %}enabled{% endif %}",
|
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
|
|
|
}
|
|
|
|
}
|