eos_bgp_network¶
Synopsis¶
Added in version 1.1.0
This eos_bgp_network module provides stateful management of the network statements for the BGP routing process for Arista EOS nodes
Options¶
| parameter | required | default | choices | comments |
|---|---|---|---|---|
| masklen | yes |
The IPv4 subnet mask length in bits. The value for the masklen must be in the valid range of 1 to 32. (added in 1.1.0) |
||
| prefix | yes |
The IPv4 prefix to configure as part of the network statement. The value must be a valid IPv4 prefix (added in 1.1.0) |
||
| route_map | no |
Configures the BGP route-map name to apply to the network statement when configured. Note this module does not create the route-map (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.3.1 or later
Examples¶
- name: add network 172.16.10.0/26 with route-map test
eos_bgp_network: prefix=172.16.10.0 masklen=26 route_map=test
- name: remove network 172.16.0.0/8
eos_bgp_network: prefix=172.16.0.0 masklen=8 state=absent
Note
All configuraiton is idempontent unless otherwise specified
Note
Supports eos metaparameters for using the eAPI transport
Note
Supports tateful resource configuration