Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
T5150: initial VRF support for Kernel/Zebra route-map filtering
- Loading branch information
Showing
10 changed files
with
155 additions
and
127 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 |
---|---|---|
|
@@ -86,5 +86,4 @@ | |
"vpn_pptp.py", | ||
"vpn_sstp.py", | ||
"vrf.py", | ||
"vrf_vni.py" | ||
] |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,21 +1,9 @@ | ||
! | ||
{% if vrf is vyos_defined %} | ||
vrf {{ vrf }} | ||
{% if protocol is vyos_defined %} | ||
{% for prot, prot_config in protocol.items() %} | ||
{{ afi }} protocol {{ protocol }} route-map {{ prot_config.route_map }} | ||
{% endfor %} | ||
{% endif %} | ||
exit-vrf | ||
! | ||
{% else %} | ||
{% if protocol is vyos_defined %} | ||
{% for prot, prot_config in protocol.items() %} | ||
{% if prot is vyos_defined('ospfv3') %} | ||
{% set prot = 'ospf6' %} | ||
{% endif %} | ||
{{ afi }} protocol {{ prot }} route-map {{ prot_config.route_map }} | ||
{% endfor %} | ||
{% endif %} | ||
{% if protocol is vyos_defined %} | ||
{% for protocol_name, protocol_config in protocol.items() %} | ||
{% if protocol_name is vyos_defined('ospfv3') %} | ||
{% set protocol_name = 'ospf6' %} | ||
{% endif %} | ||
{{ afi }} protocol {{ protocol_name }} route-map {{ protocol_config.route_map }} | ||
{% endfor %} | ||
{% endif %} | ||
! |
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,24 @@ | ||
! | ||
{% if name is vyos_defined %} | ||
{% for vrf, vrf_config in name.items() %} | ||
vrf {{ vrf }} | ||
{% if vrf_config.ip.protocol is vyos_defined %} | ||
{% for protocol_name, protocol_config in vrf_config.ip.protocol.items() %} | ||
ip protocol {{ protocol_name }} route-map {{ protocol_config.route_map }} | ||
{% endfor %} | ||
{% endif %} | ||
{% if vrf_config.ipv6.protocol is vyos_defined %} | ||
{% for protocol_name, protocol_config in vrf_config.ipv6.protocol.items() %} | ||
{% if protocol_name is vyos_defined('ospfv3') %} | ||
{% set protocol_name = 'ospf6' %} | ||
{% endif %} | ||
ipv6 protocol {{ protocol_name }} route-map {{ protocol_config.route_map }} | ||
{% endfor %} | ||
{% endif %} | ||
{% if vrf_config.vni is vyos_defined %} | ||
vni {{ vrf_config.vni }} | ||
{% endif %} | ||
{% endfor %} | ||
exit-vrf | ||
! | ||
{% endif %} |
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
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
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
Oops, something went wrong.