-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
frr: T6747: migrate protocols to unified FRRender class
With FRR 10.0 daemons started to be migrated to integrated FRR mgmtd and a northbound interface. This led to some drawbacks in the current state how changes to FRR are handled. The current implementation will use frr-reload.py and specifies excatly WHICH daemon needs a config update and will only replace this part inside FRR. With FRR10 and mgmtd when a partial configuration is sent to mgmtd, it will remove configuration parts from other daemons like bgpd or ospfd which have not yet been migrated to mgmtd. It's not possible to call frr-reload.py with daemon mgmtd - it will error out. This commit will also change the CLI for static routes: CLI command "set protocols static route 10.0.0.0/8 next-hop 1.2.3.4 bfd multi-hop source 1.1.1.1" will be split into: * set protocols static route 10.0.0.0/8 next-hop 1.2.3.4 bfd source-address 1.1.1.1 * set protocols static route 10.0.0.0/8 next-hop 1.2.3.4 bfd multi-hop To make the XML blocks reusable, and comply with the FRR CLI - this was actually a wrong implementation from the beginning as you can not have multiple BFD source addresses. CLI command "set protocols static route 10.0.0.0/8 next-hop 1.2.3.4 bfd multi-hop source 1.1.1.1 profile bar" is changed to: * set protocols static route 10.0.0.0/8 next-hop 1.2.3.4 bfd profile bar CLI commands "set protocols static multicast interface-route" is moved to: * set protocols static multicast route <x.x.x.x/x> interface To have an identical look and feel with regular static routes.
- Loading branch information
Showing
41 changed files
with
1,376 additions
and
1,418 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
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,16 +1,20 @@ | ||
! | ||
interface {{ ifname }} | ||
{% if evpn.es_df_pref is vyos_defined %} | ||
evpn mh es-df-pref {{ evpn.es_df_pref }} | ||
{% endif %} | ||
{% if evpn.es_id is vyos_defined %} | ||
evpn mh es-id {{ evpn.es_id }} | ||
{% endif %} | ||
{% if evpn.es_sys_mac is vyos_defined %} | ||
evpn mh es-sys-mac {{ evpn.es_sys_mac }} | ||
{% endif %} | ||
{% if evpn.uplink is vyos_defined %} | ||
{% if interfaces is vyos_defined %} | ||
{% for if_name, if_config in interfaces.items() %} | ||
interface {{ if_name }} | ||
{% if if_config.evpn.es_df_pref is vyos_defined %} | ||
evpn mh es-df-pref {{ if_config.evpn.es_df_pref }} | ||
{% endif %} | ||
{% if if_config.evpn.es_id is vyos_defined %} | ||
evpn mh es-id {{ if_config.evpn.es_id }} | ||
{% endif %} | ||
{% if if_config.evpn.es_sys_mac is vyos_defined %} | ||
evpn mh es-sys-mac {{ if_config.evpn.es_sys_mac }} | ||
{% endif %} | ||
{% if if_config.evpn.uplink is vyos_defined %} | ||
evpn mh uplink | ||
{% endif %} | ||
{% endif %} | ||
exit | ||
! | ||
{% 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 |
---|---|---|
|
@@ -70,3 +70,4 @@ router openfabric {{ name }} | |
exit | ||
! | ||
{% endfor %} | ||
! |
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
|
@@ -25,6 +25,6 @@ vrf {{ vrf }} | |
vni {{ vrf_config.vni }} | ||
{% endif %} | ||
exit-vrf | ||
{% endfor %} | ||
! | ||
{% 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
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,17 @@ | ||
<!-- include start from source-address-ipv6.xml.i --> | ||
<leafNode name="source-address"> | ||
<properties> | ||
<help>IPv6 address used to initiate connection</help> | ||
<completionHelp> | ||
<script>${vyos_completion_dir}/list_local_ips.sh --ipv6</script> | ||
</completionHelp> | ||
<valueHelp> | ||
<format>ipv6</format> | ||
<description>IPv6 source address</description> | ||
</valueHelp> | ||
<constraint> | ||
<validator name="ipv6-address"/> | ||
</constraint> | ||
</properties> | ||
</leafNode> | ||
<!-- include end --> |
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,8 @@ | ||
<!-- include start from static/bfd-multi-hop.xml.i --> | ||
<leafNode name="multi-hop"> | ||
<properties> | ||
<help>Enable BFD multi-hop session (requires source-address)</help> | ||
<valueless/> | ||
</properties> | ||
</leafNode> | ||
<!-- include end --> |
36 changes: 0 additions & 36 deletions
36
interface-definitions/include/static/static-route-bfd.xml.i
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
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.