ios_template making changes when router config already exists

81 views
Skip to first unread message

Luke Russell

unread,
Apr 14, 2016, 10:09:04 AM4/14/16
to Ansible Project
I am using ios_template to deploy some DMVPN tunnels. For some reason it is not recognising two commands that already exist on the router - ip nhrp map a.a.a.a b.b.b.b and ip nhrp nhs a.a.a.a. I'm not really sure what is unique about these two commands to produce this affect, and it isn't currently stopping me from doing anything. It just throws a spanner in the idea of being idempotent. My guess would be a problem with the underlying regex doing the screen scraping.

Running the playbook with -vvv option produces this output (cleaned up):


"src": 
!
interface Tunnel10
 description primary tunnel
 ip vrf forwarding VRF-A
 ip address 10.0.0.11 255.255.240.0
 no ip redirects
 ip mtu 1400
 ip nhrp authentication 10
 ip nhrp map multicast 172.16.0.11
 ip nhrp map 10.0.0.1 172.16.0.11
 ip nhrp network-id 10
 ip nhrp holdtime 360
 ip nhrp nhs 10.0.0.1
 ip nhrp shortcut
 ip tcp adjust-mss 1360
 load-interval 30
 delay 600
 qos pre-classify
 tunnel source Loopback1
 tunnel mode gre multipoint
 tunnel key 10
end

"updates":
interface Tunnel10
ip nhrp map 10.0.0.1 172.16.0.11
ip nhrp ohs 10.0.0.1




Peter Sprygada

unread,
Apr 15, 2016, 8:13:07 AM4/15/16
to ansible...@googlegroups.com
Hi Luke, We don't actually screen scrape the configuration in this case.  Can you post the full playbook via a gist? (or at least the full task?)

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/837e4cc8-d4cb-4091-998d-d0470f06372b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Luke Russell

unread,
Apr 16, 2016, 3:46:56 AM4/16/16
to Ansible Project
Link to playbook

Let me know if you need more info.

When you say it's not screen scraping - how are you getting the running config?

Luke Russell

unread,
May 17, 2016, 11:44:14 PM5/17/16
to Ansible Project
Hi Peter,

Is there any follow up on this? Do you need anything further?

Peter Sprygada

unread,
May 18, 2016, 9:50:19 AM5/18/16
to ansible...@googlegroups.com
ahh thanks for the reminder... will take a look at it this week yet

Reply all
Reply to author
Forward
0 new messages