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

Remove existing configuration #120

Open
willifehler opened this issue Oct 30, 2024 · 1 comment
Open

Remove existing configuration #120

willifehler opened this issue Oct 30, 2024 · 1 comment

Comments

@willifehler
Copy link

Hey there,

I would like to know if it's possible to remove a configuration for an interface if the configuration is not part of Ansible.

Let's say I have an existing interface and vlan 500 is manually set in vlan_trunks on my Switch. Ansible won't remove that.

Regards - Willi

@alagoutte
Copy link
Contributor

Hi Willi,

it is actually not possible (already ask/talk #118 (comment))

You need to known the list of existing vlan on the port and remove the vlan for the list (you can use get_facts for get the list of vlan on the port...)

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