Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and Vibhu-gslab committed Feb 28, 2025
1 parent 5a83a0b commit 21e16db
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,11 @@ def router_pim_sparse_mode(self: AvdStructuredConfigUnderlayProtocol) -> None:
# Anycast-RP using PIM (default)
other_anycast_rp_addresses = EosCliConfigGen.RouterPimSparseMode.Ipv4.AnycastRpsItem.OtherAnycastRpAddresses()
for node in rp_entry.nodes:
other_anycast_rp_addresses.append(EosCliConfigGen.RouterPimSparseMode.Ipv4.AnycastRpsItem.OtherAnycastRpAddressesItem(address=get(self.shared_utils.get_peer_facts(node.name), "router_id", required=True)))
self.structured_config.router_pim_sparse_mode.ipv4.anycast_rps.append_new(address=rp_entry.rp,other_anycast_rp_addresses=other_anycast_rp_addresses)
other_anycast_rp_addresses.append(
EosCliConfigGen.RouterPimSparseMode.Ipv4.AnycastRpsItem.OtherAnycastRpAddressesItem(
address=get(self.shared_utils.get_peer_facts(node.name), "router_id", required=True)
)
)
self.structured_config.router_pim_sparse_mode.ipv4.anycast_rps.append_new(
address=rp_entry.rp, other_anycast_rp_addresses=other_anycast_rp_addresses
)

0 comments on commit 21e16db

Please sign in to comment.