-
Notifications
You must be signed in to change notification settings - Fork 23.8k
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
nxos_vlan: idempotency bug with mode
#53887
Comments
Files identified in the description: If these files are inaccurate, please update the |
@chrisvanheuveln what does |
Note the different display on N7K vs N9K.
N7K
N9K
|
@chrisvanheuveln can you please make sure if mode |
@trishnaguha Yes, mode Ref: (see |
@chrisvanheuveln Will you please try this fix #55144? |
@trishnaguha Your patch causes an idempotency problem on 7K when edit: My patch breaks N9K. I'll take another look and update. |
@trishnaguha Please see updated code at chrisvanheuveln#3. My changes have been validated on N9K/N7K/N6K. |
@trishnaguha Hi Trishna, any update on this issue? Thanks |
SUMMARY
nxos_vlan
is not idempotent whenmode
is specified in a playbook (N5K/N7K
). The problem is thatmap_config_to_obj
does ashow vlan brief | json
to get state from the device but that command does not include anymode
values; thus the result is always:The only way to get the
mode
state with json is to use the fullshow vlan | json
command; e.g.ISSUE TYPE
COMPONENT NAME
nxos_vlan
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Hardware
cisco Nexus7000 C7010 (10 Slot) Chassis ("Supervisor Module-2")Running ansible from
Software
system: version 8.3(2)
Ansible running from OSX
STEPS TO REPRODUCE
Run
sanity
test. Fails at 166:The text was updated successfully, but these errors were encountered: