Skip to content

Commit

Permalink
adding route-map to address_family_ipv4
Browse files Browse the repository at this point in the history
  • Loading branch information
Vibhu-gslab committed May 2, 2024
1 parent 5abb487 commit ffa9ffb
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ router bgp 65101
network 172.16.0.0/12
network 192.168.0.0/16 route-map RM-FOO-MATCH
redistribute connected rcf Address_Family_IPV4_Connected()
redistribute dynamic route-map Address_Family_IPV4_Dynamic_RM
redistribute static rcf Address_Family_IPV4_Static()
!
address-family ipv6
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ router bgp 65101
network 172.16.0.0/12
network 192.168.0.0/16 route-map RM-FOO-MATCH
redistribute connected rcf Address_Family_IPV4_Connected()
redistribute dynamic route-map Address_Family_IPV4_Dynamic_RM
redistribute static rcf Address_Family_IPV4_Static()
!
address-family ipv6
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ router_bgp:
rcf: Address_Family_IPV4_Connected()
- source_protocol: static
rcf: Address_Family_IPV4_Static()
- source_protocol: dynamic
route_map: Address_Family_IPV4_Dynamic_RM
address_family_ipv6:
networks:
- prefix: 2001:db8:100::/40
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,9 @@
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;route_map</samp>](## "router_bgp.address_family_ipv4.neighbors.[].default_originate.route_map") | String | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;redistribute_routes</samp>](## "router_bgp.address_family_ipv4.redistribute_routes") | List, items: Dictionary | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;source_protocol</samp>](## "router_bgp.address_family_ipv4.redistribute_routes.[].source_protocol") | String | Required, Unique | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;route_map</samp>](## "router_bgp.address_family_ipv4.redistribute_routes.[].route_map") | String | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;include_leaked</samp>](## "router_bgp.address_family_ipv4.redistribute_routes.[].include_leaked") | Boolean | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rcf</samp>](## "router_bgp.address_family_ipv4.redistribute_routes.[].rcf") | String | | | | RCF function name with parenthesis.<br>Example: MyFunction(myarg). |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rcf</samp>](## "router_bgp.address_family_ipv4.redistribute_routes.[].rcf") | String | | | | RCF function name with parenthesis.<br>Example: MyFunction(myarg).<br>`route_map` and `rcf` are mutually exclusive. `route_map` takes precedence.<br>Only used if `source_protocol` is one of `connected`, `static`, `isis`, `user`, `dynamic`. |
| [<samp>&nbsp;&nbsp;address_family_ipv4_multicast</samp>](## "router_bgp.address_family_ipv4_multicast") | Dictionary | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;peer_groups</samp>](## "router_bgp.address_family_ipv4_multicast.peer_groups") | List, items: Dictionary | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;name</samp>](## "router_bgp.address_family_ipv4_multicast.peer_groups.[].name") | String | Required, Unique | | | Peer-group name. |
Expand Down Expand Up @@ -392,7 +393,7 @@
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;source_protocol</samp>](## "router_bgp.address_family_ipv6.redistribute_routes.[].source_protocol") | String | Required, Unique | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;route_map</samp>](## "router_bgp.address_family_ipv6.redistribute_routes.[].route_map") | String | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;include_leaked</samp>](## "router_bgp.address_family_ipv6.redistribute_routes.[].include_leaked") | Boolean | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rcf</samp>](## "router_bgp.address_family_ipv6.redistribute_routes.[].rcf") | String | | | | RCF function name with parenthesis.<br>Example: MyFunction(myarg). |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rcf</samp>](## "router_bgp.address_family_ipv6.redistribute_routes.[].rcf") | String | | | | RCF function name with parenthesis.<br>Example: MyFunction(myarg).<br>`route_map` and `rcf` are mutually exclusive. `route_map` takes precedence.<br>Only used if `source_protocol` is one of `connected`, `static`, `isis`, `user`, `dynamic`. |
| [<samp>&nbsp;&nbsp;address_family_ipv6_multicast</samp>](## "router_bgp.address_family_ipv6_multicast") | Dictionary | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;bgp</samp>](## "router_bgp.address_family_ipv6_multicast.bgp") | Dictionary | | | | |
| [<samp>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;missing_policy</samp>](## "router_bgp.address_family_ipv6_multicast.bgp.missing_policy") | Dictionary | | | | |
Expand Down Expand Up @@ -1399,10 +1400,13 @@
route_map: <str>
redistribute_routes:
- source_protocol: <str; required; unique>
route_map: <str>
include_leaked: <bool>

# RCF function name with parenthesis.
# Example: MyFunction(myarg).
# `route_map` and `rcf` are mutually exclusive. `route_map` takes precedence.
# Only used if `source_protocol` is one of `connected`, `static`, `isis`, `user`, `dynamic`.
rcf: <str>
address_family_ipv4_multicast:
peer_groups:
Expand Down Expand Up @@ -1512,6 +1516,8 @@

# RCF function name with parenthesis.
# Example: MyFunction(myarg).
# `route_map` and `rcf` are mutually exclusive. `route_map` takes precedence.
# Only used if `source_protocol` is one of `connected`, `static`, `isis`, `user`, `dynamic`.
rcf: <str>
address_family_ipv6_multicast:
bgp:
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -1244,13 +1244,17 @@ keys:
keys:
source_protocol:
type: str
route_map:
type: str
include_leaked:
type: bool
rcf:
type: str
description: |-
RCF function name with parenthesis.
Example: MyFunction(myarg).
`route_map` and `rcf` are mutually exclusive. `route_map` takes precedence.
Only used if `source_protocol` is one of `connected`, `static`, `isis`, `user`, `dynamic`.
address_family_ipv4_multicast:
type: dict
keys:
Expand Down Expand Up @@ -1444,6 +1448,8 @@ keys:
description: |-
RCF function name with parenthesis.
Example: MyFunction(myarg).
`route_map` and `rcf` are mutually exclusive. `route_map` takes precedence.
Only used if `source_protocol` is one of `connected`, `static`, `isis`, `user`, `dynamic`.
address_family_ipv6_multicast:
type: dict
keys:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,9 @@ router bgp {{ router_bgp.as }}
{% elif redistribute_route.include_leaked is arista.avd.defined %}
{% set redistribute_route_cli = redistribute_route_cli ~ " include leaked" %}
{% endif %}
{% if redistribute_route.source_protocol in ["connected", "static", "isis", "user", "dynamic"] %}
{% if redistribute_route.route_map is arista.avd.defined %}
{% set redistribute_route_cli = redistribute_route_cli ~ " route-map " ~ redistribute_route.route_map %}
{% elif redistribute_route.source_protocol in ["connected", "static", "isis", "user", "dynamic"] %}
{% if redistribute_route.rcf is arista.avd.defined %}
{% set redistribute_route_cli = redistribute_route_cli ~ " rcf " ~ redistribute_route.rcf %}
{% endif %}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ffa9ffb

Please sign in to comment.