-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed inlcuded template not found issue
- Loading branch information
Zhenhong Zhao
committed
Jan 15, 2021
1 parent
3b49d23
commit ee973b5
Showing
9 changed files
with
52 additions
and
24 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
File renamed without changes.
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
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,5 @@ | ||
{% if DEVICE_METADATA.localhost.frr_mgmt_framework_config is defined and DEVICE_METADATA.localhost.frr_mgmt_framework_config == "true" %} | ||
{% include "/usr/local/sonic/frr/frr.conf.j2" %} | ||
{% else %} | ||
{% include "/usr/share/sonic/templates/frr.conf.j2" %} | ||
{% endif %} |
File renamed without changes.
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
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,30 @@ | ||
! | ||
{% block banner %} | ||
! =========== Managed by sonic-cfggen DO NOT edit manually! ==================== | ||
! generated by templates/frr.conf.j2 with config DB data | ||
! file: frr.conf | ||
! | ||
{% endblock banner %} | ||
! | ||
{% include "common/daemons.common.conf.j2" %} | ||
! | ||
agentx | ||
! | ||
{% include "zebra/zebra.interfaces.conf.j2" %} | ||
! | ||
{% if MGMT_VRF_CONFIG %} | ||
{% if MGMT_VRF_CONFIG['vrf_global']['mgmtVrfEnabled'] == 'false' %} | ||
{% include "staticd.db.default_route.conf.j2" %} | ||
{% endif %} | ||
{% else %} | ||
{% include "staticd.db.default_route.conf.j2" %} | ||
{% endif %} | ||
! | ||
{% include "staticd.db.conf.j2" %} | ||
! | ||
{% include "bgpd.conf.db.j2" %} | ||
! | ||
{% include "ospfd.conf.j2" %} | ||
! | ||
{% include "bfdd.conf.j2" %} | ||
! |
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
9 changes: 9 additions & 0 deletions
9
src/sonic-frr-mgmt-framework/templates/staticd/staticd.db.default_route.conf.j2
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,9 @@ | ||
! | ||
{% block default_route %} | ||
! set static default route to mgmt gateway as a backup to learned default | ||
{% if MGMT_INTERFACE %} | ||
{% for (name, prefix) in MGMT_INTERFACE|pfx_filter %} | ||
{% endfor %} | ||
{% endif %} | ||
{% endblock default_route %} | ||
! |