Skip to content

Commit

Permalink
Adjust the sequence code
Browse files Browse the repository at this point in the history
  • Loading branch information
Laxmikant Chintakindi authored and Laxmikant Chintakindi committed Feb 6, 2025
1 parent f6772a0 commit 6573094
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ def as_path(self: AvdStructuredConfigUnderlayProtocol) -> None:
return

if self.shared_utils.wan_ha and self.shared_utils.use_uplinks_for_wan_ha:
access_lists = EosCliConfigGen.AsPath.AccessLists()
entries = EosCliConfigGen.AsPath.AccessListsItem.Entries()
entries.append_new(type="permit", match=self.shared_utils.bgp_as)
access_lists.append_new(name="ASPATH-WAN", entries=entries)

if access_lists:
self.structured_config.as_path._update(access_lists=access_lists)
access_lists = EosCliConfigGen.AsPath.AccessListsItem(name="ASPATH-WAN", entries=entries)
self.structured_config.as_path.access_lists.append(access_lists)

0 comments on commit 6573094

Please sign in to comment.