From 6573094e77637145c03fe59a9d895d34d819ce12 Mon Sep 17 00:00:00 2001 From: Laxmikant Chintakindi Date: Thu, 6 Feb 2025 10:40:54 +0530 Subject: [PATCH] Adjust the sequence code --- .../_eos_designs/structured_config/underlay/as_path.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/python-avd/pyavd/_eos_designs/structured_config/underlay/as_path.py b/python-avd/pyavd/_eos_designs/structured_config/underlay/as_path.py index 97f64ebf51a..63d434add38 100644 --- a/python-avd/pyavd/_eos_designs/structured_config/underlay/as_path.py +++ b/python-avd/pyavd/_eos_designs/structured_config/underlay/as_path.py @@ -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)