@@ -263,6 +263,7 @@ resource "iosxe_bgp_address_family_ipv4_vrf" "bgp_address_family_ipv4_vrf" {
263263 ipv4_unicast_aggregate_addresses = try (length (vrf. aggregate_addresses ) == 0 , true ) ? null : [for agg in vrf . aggregate_addresses : {
264264 ipv4_address = try (agg. address , local. defaults . iosxe . configuration . routing . bgp . address_family . ipv4_unicast . vrfs . aggregate_addresses . address , null )
265265 ipv4_mask = try (agg. mask , local. defaults . iosxe . configuration . routing . bgp . address_family . ipv4_unicast . vrfs . aggregate_addresses . mask , null )
266+ summary_only = try (agg. summary_only , local. defaults . iosxe . configuration . routing . bgp . address_family . ipv4_unicast . vrfs . aggregate_addresses . summary_only , null )
266267 }]
267268 ipv4_unicast_admin_distances = try (length (vrf. admin_distances ) == 0 , true ) ? null : [for ad in vrf . admin_distances : {
268269 distance = try (ad. distance , local. defaults . iosxe . configuration . routing . bgp . address_family . ipv4_unicast . vrfs . admin_distances . distance , null )
@@ -282,8 +283,9 @@ resource "iosxe_bgp_address_family_ipv4_vrf" "bgp_address_family_ipv4_vrf" {
282283 route_map = try (net. route_map , local. defaults . iosxe . configuration . routing . bgp . address_family . ipv4_unicast . vrfs . networks . route_map , null )
283284 backdoor = try (net. backdoor , local. defaults . iosxe . configuration . routing . bgp . address_family . ipv4_unicast . vrfs . networks . backdoor , null )
284285 } if try (net. mask , null ) == null ]
285- ipv4_unicast_maximum_paths_ebgp = try (vrf. ipv4_unicast_maximum_paths_ebgp , local. defaults . iosxe . configuration . routing . bgp . address_family . ipv4_unicast . vrfs . ipv4_unicast_maximum_paths_ebgp , null )
286- ipv4_unicast_maximum_paths_ibgp = try (vrf. ipv4_unicast_maximum_paths_ibgp , local. defaults . iosxe . configuration . routing . bgp . address_family . ipv4_unicast . vrfs . ipv4_unicast_maximum_paths_ibgp , null )
286+ ipv4_unicast_maximum_paths_ebgp = try (vrf. ipv4_unicast_maximum_paths_ebgp , local. defaults . iosxe . configuration . routing . bgp . address_family . ipv4_unicast . vrfs . ipv4_unicast_maximum_paths_ebgp , null )
287+ ipv4_unicast_maximum_paths_ibgp = try (vrf. ipv4_unicast_maximum_paths_ibgp , local. defaults . iosxe . configuration . routing . bgp . address_family . ipv4_unicast . vrfs . ipv4_unicast_maximum_paths_ibgp , null )
288+ ipv4_unicast_import_path_selection_all = try (vrf. import_path_selection_all , local. defaults . iosxe . configuration . routing . bgp . address_family . ipv4_unicast . vrfs . import_path_selection_all , null )
287289 }]
288290
289291 depends_on = [
@@ -415,6 +417,10 @@ locals {
415417 send_community = try (neighbor. send_community , local. defaults . iosxe . configuration . routing . bgp . address_family . l2vpn_evpn . neighbors . send_community , null )
416418 route_reflector_client = try (neighbor. route_reflector_client , local. defaults . iosxe . configuration . routing . bgp . address_family . l2vpn_evpn . neighbors . route_reflector_client , null )
417419 soft_reconfiguration = try (neighbor. soft_reconfiguration , local. defaults . iosxe . configuration . routing . bgp . address_family . l2vpn_evpn . neighbors . soft_reconfiguration , null )
420+ route_maps = try (length (neighbor. route_maps ) == 0 , true ) ? null : [for rm in neighbor . route_maps : {
421+ inout = try (rm. in_out , local. defaults . iosxe . configuration . routing . bgp . address_family . l2vpn_evpn . neighbors . route_maps . in_out , null )
422+ route_map_name = try (rm. name , local. defaults . iosxe . configuration . routing . bgp . address_family . l2vpn_evpn . neighbors . route_maps . name , null )
423+ }]
418424 }
419425 ]
420426 ])
@@ -430,10 +436,12 @@ resource "iosxe_bgp_l2vpn_evpn_neighbor" "bgp_l2vpn_evpn_neighbor" {
430436 send_community = each. value . send_community
431437 route_reflector_client = each. value . route_reflector_client
432438 soft_reconfiguration = each. value . soft_reconfiguration
439+ route_map = each. value . route_maps
433440
434441 depends_on = [
435442 iosxe_bgp_neighbor . bgp_neighbor ,
436- iosxe_bgp_address_family_l2vpn . bgp_address_family_l2vpn
443+ iosxe_bgp_address_family_l2vpn . bgp_address_family_l2vpn ,
444+ iosxe_route_map . route_map
437445 ]
438446}
439447
0 commit comments