Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
ios_bgp - Not idempotent when using networks on classful boundaries #59083
When using a classful network boundary for a network, the router will not show "mask x.x.x.x" in the configuration. Thus the module will think a configuration change is needed, not fully idempotent.
OS / ENVIRONMENT
MacOS -> Cisco IOS
STEPS TO REPRODUCE
Advertise networks 198.51.100.0/24
- name: "TASK 1: Setup iBGP Peer" ios_bgp: config: bgp_as: 65500 router_id: 10.0.0.3 log_neighbor_changes: true neighbors: - neighbor: 198.51.100.2 remote_as: 65500 activate: true timers: keepalive: 15 holdtime: 45 min_neighbor_holdtime: 5 description: R4 networks: - prefix: 198.51.100.0 masklen: 24 - prefix: 203.0.113.0 masklen: 24 address_family: - afi: ipv4 safi: unicast neighbors: - neighbor: 198.51.100.2 activate: yes next_hop_self: yes operation: merge register: ibgp_peer1
I'd expect that the second run would be idempotent and not change. I'm getting a changed message instead of OK.
The module attempted to push
I'm thinking of how to take a stab at this in the coming weeks if it isn't already a quick easy fix. Small low priority issue...