Skip to content

Commit

Permalink
Reverting the change for redistribute to ospf.
Browse files Browse the repository at this point in the history
  • Loading branch information
Laxmikant Chintakindi authored and Laxmikant Chintakindi committed Jul 26, 2024
1 parent b4aba9a commit d8650dc
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.

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

5 changes: 3 additions & 2 deletions python-avd/pyavd/_eos_designs/schema/eos_designs.schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6592,11 +6592,12 @@ $defs:
redistribute_static:
type: bool
description: Non-selectively enabling or disabling redistribute static
inside the VRF.
to BGP inside the VRF.
redistribute_connected:
type: bool
default: true
description: Enabled/disable redistribution of connected routes.
description: Non-selectively enabling or disabling redistribution
of connected routes to BGP.
bgp_peers:
documentation_options:
table: network-services-vrfs-bgp-settings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -896,11 +896,11 @@ $defs:
type: str
redistribute_static:
type: bool
description: Non-selectively enabling or disabling redistribute static inside the VRF.
description: Non-selectively enabling or disabling redistribute static to BGP inside the VRF.
redistribute_connected:
type: bool
default: true
description: Enabled/disable redistribution of connected routes.
description: Non-selectively enabling or disabling redistribution of connected routes to BGP.
bgp_peers:
documentation_options:
table: network-services-vrfs-bgp-settings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def router_ospf(self: AvdStructuredConfigNetworkServices) -> dict | None:
if (route_map := get(vrf, "ospf.redistribute_bgp.route_map")) is not None:
process_redistribute["bgp"]["route_map"] = route_map

if get(vrf, "redistribute_connected", get(vrf, "ospf.redistribute_connected.enabled", default=False)) is True:
if get(vrf, "ospf.redistribute_connected.enabled", default=False) is True:
process_redistribute["connected"] = {}
if (route_map := get(vrf, "ospf.redistribute_connected.route_map")) is not None:
process_redistribute["connected"]["route_map"] = route_map
Expand Down

0 comments on commit d8650dc

Please sign in to comment.