Skip to content

Feat(eos_cli_config_gen): Add support for maximum-advertised-routes #6044

@Izolant

Description

@Izolant

Enhancement summary

Currently:
maximum_advertised_routes
maximum_advertised_routes_warning_limit
is possibe set only on neighbor/peer-group under BGP LU AF

Add support also for IPv4 & IPv6 AF:
https://www.arista.com/en/support/toi/eos-4-24-0f/14474-bgp-maximum-advertised-routes

Which component of AVD is impacted

eos_cli_config_gen

Use case example

router_bgp:
  peer_groups:
    - name: DIRECTPEER
      next_hop_self: true
      remove_private_as:
        enabled: true
        all: true
      route_map_in: rm_deny_all
      route_map_out: rm_directpeer_with_anycast_out
      send_community: all
      maximum_routes: 0
      maximum_advertised_routes: 5000
      maximum_advertised_routes_warning_limit: '2 percent'
    - name: DIRECTPEER6
      next_hop_self: true
      remove_private_as:
        enabled: true
        all: true
      route_map_in: rm6_deny_all
      route_map_out: rm6_directpeer_with_anycast_out
      send_community: all
      maximum_routes: 0
      maximum_advertised_routes: (int) 0-4294967294
      maximum_advertised_routes_warning_limit: (string) '<1-100> percent'

Describe the solution you would like

Add AVD support to render the EOS commands maximum-advertised-routes and maximum-advertised-routes warning-limit under IPv4 and IPv6 Unicast address-families (for both peer-groups and neighbors).

Example rendered CLI:

router bgp <as>
   neighbor DIRECTPEER maximum-advertised-routes 100000 warning-limit 2 percent
   neighbor DIRECTPEER6 maximum-advertised-routes 100000 warning-limit 2 percent
   neighbor <ipv4> maximum-advertised-routes 100000 warning-limit 2 percent
   address-family ipv4
      neighbor <ipv4> maximum-advertised-routes 100000 warning-limit 2 percent
   address-family ipv6
      neighbor <ipv6> maximum-advertised-routes 100000 warning-limit 2 percent

Describe alternatives you have considered

No response

Additional context

No response

Contributing Guide

  • I agree to follow this project Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions