and then check the diff file in Ansible check mode
find the diff files can show us the add or delete line
pji@las4779:~/repos/network_ansible$ cat configs/sha1-extrtr-a/diff
---
+++
@@ -453,7 +453,7 @@
!
neighbor-group LB_Clusters
address-family ipv4 unicast
- route-policy LB_Clusters_IN in
+ route-policy DENY-ALL in
route-policy LB_Clusters_OUT out
!
Not sure why the replace_config: true/false case the diff file format different in IOSXR?
We have Cisco NXOS devices using replace_config: true which can show us the commands added or deleted.
Is replace_config: false best practice in Napalm in IOSXR ?
(Place an x between the square brackets where applicable)
[] Yes
[] No
Setup
napalm version
(Paste verbatim output from pip freeze | grep napalm between quotes below)
pji@las4779:~/repos/network_ansible$ pip freeze | grep napalm
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
napalm==2.3.1
napalm-ansible==0.9.1
Network operating system version
(Paste verbatim output from show version - or equivalent - between quotes below)
RP/0/RP0/CPU0:las1-xrv-1#sho version
Tue Feb 23 04:09:40.200 UTC
Cisco IOS XR Software, Version 7.1.1
Copyright (c) 2013-2020 by Cisco Systems, Inc.
Steps to Reproduce the Issue
Error Traceback
(Paste the complete traceback of the exception between quotes below)
Description of Issue/Question
We are try to use Ansible/Napalm to manage our Cisco NCS routers(IOSXR). We did a change for bgp to update the route-policy with Ansible/Napalm
We checked the diff files in Ansible check mode ( replace_config to true in palybook)
The diff configure is not as expect because it didn't show up which command is add or delete.
and then we tired to change replace_config to false
and then check the diff file in Ansible check mode find the diff files can show us the add or delete line
Not sure why the
replace_config: true/false
case the diff file format different in IOSXR? We have Cisco NXOS devices usingreplace_config: true
which can show us the commands added or deleted. Isreplace_config: false
best practice in Napalm in IOSXR ?Did you follow the steps from https://github.com/napalm-automation/napalm#faq
(Place an
x
between the square brackets where applicable)Setup
napalm version
(Paste verbatim output from
pip freeze | grep napalm
between quotes below)Network operating system version
(Paste verbatim output from
show version
- or equivalent - between quotes below)Steps to Reproduce the Issue
Error Traceback
(Paste the complete traceback of the exception between quotes below)