Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npalm_install_merge.yml does not revert all changes #195

Open
barryconstantly opened this issue Aug 6, 2021 · 1 comment
Open

npalm_install_merge.yml does not revert all changes #195

barryconstantly opened this issue Aug 6, 2021 · 1 comment

Comments

@barryconstantly
Copy link

Hi,

I was using the replace = True option for full roll-back, but started to use merge.

This is a summary of what I am seeing, not sure why the entire interface content is not being removed:

  1. State of Cisco before napalm_install_merge execution:

!
interface GigabitEthernet0/6
description Lab-Interface-with-trunk
switchport mode trunk
switchport nonegotiate
spanning-tree portfast trunk
!

  1. The 'config_merge_file.txt' contents:

interface GigabitEthernet0/6
no description Lab-Interface-with-trunk
no switchport mode trunk
no switchport nonegotiate
no spanning-tree portfast trunk

Using this command:
ansible-playbook napalm_install_merge.yml -e config_file='config_merge_file.txt'

  1. State of Cisco after napalm_install_merge execution:

!
interface GigabitEthernet0/6
switchport mode trunk
!

Why only switchport mode trunk remains?

@ktbyers
Copy link
Collaborator

ktbyers commented Sep 13, 2021

Have you looked at the CLI when you execute those configuration changes manually and does it work properly if you do it manually?

What is the default switchport mode config for this device? Is it switchport mode access? Have you tried using that instead of the no operation.

NAPALM just copies the file into running using a merge operation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants