eos_bgp_config

Synopsis

Added in version 1.1.0

The eos_bgp_config module provides resource management of the global BGP routing process for Arista EOS nodes

Options

parameter required default choices comments
bgp_as yes
    The BGP autonomous system number to be configured for the local BGP routing instance. The value must be in the valid BGP AS range of 1 to 65535.
    (added in 1.1.0)
    enable no True
    • True
    • False
    Configures the administrative state for the global BGP routing process. If enable is True then the BGP routing process is administartively enabled and if enable is False then the BGP routing process is administratively disabled.
    (added in 1.1.0)
    maximum_ecmp_paths no
      Configures the maximum number of ecmp paths for each route. The EOS default for this attribute is the maximum value, which varies by hardware platform. Check your Arista documentation for more information. This value should be greater than or equal to maximum_paths.
      (added in 1.2.0)
      maximum_paths no
        Configures the maximum number of parallel routes. The EOS default for this attribute is 1. This value should be less than or equal to maximum_ecmp_paths.
        (added in 1.2.0)
        router_id no
          Configures the BGP routing process router-id value. The router id must be in the form of A.B.C.D
          (added in 1.1.0)

          Important

          Requires Arista EOS 4.13.7M or later with command API enable

          Important

          Requires Python Client for eAPI 0.4.0 or later

          Examples


          - name: enable BGP routing with AS 65535
            eos_bgp_config: bgp_as=65535 state=present enable=yes
          
          - name: disable the BGP routing process
            eos_bgp_config: bgp_as=65535 enable=no
          
          - name: configure the BGP router-id
            eos_bgp_config: bgp_as=65535 router_id=1.1.1.1
          
          - name: configure the BGP with just max paths
            eos_bgp_config: bgp_as=65535 router_id=1.1.1.1 maximum_paths=20
          
          - name: configure the BGP with maximum_paths and maximum_ecmp_paths
            eos_bgp_config: bgp_as=65535 router_id=1.1.1.1 maximum_paths=20
            maximum_ecmp_paths=20
          

          Note

          All configuraiton is idempontent unless otherwise specified

          Note

          Supports eos metaparameters for using the eAPI transport

          Note

          Supports tateful resource configuration