forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[init_cfg.json] Maintain a separate init_cfg.json.j2 template file (s…
- Loading branch information
1 parent
e6d53c2
commit 373ed7b
Showing
2 changed files
with
23 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"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 %} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters