You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When executing a playbook with a task that uses the cisco.nxos.nxos_prefix_lists resource module, the module is not sending the initial nxos cli "no" commands that should happen with action "replaced". With same playbook and host vars for ios using ios.ios_prefix_lists resource module,, the no commands are present. This causes the nxos module to return an error from the device when it complains that the sequence already exists. Strangely, the sequence number does not already exist. In any case, the no commands should be sent with action replaced, so it would not matter if the sequence exists or not since it should be deleted first anyway.
31128-11# show version
Cisco Nexus Operating System (NX-OS) Software
TAC support: http://www.cisco.com/tac
Copyright (C) 2002-2019, Cisco and/or its affiliates.
All rights reserved.
The copyrights to certain works contained in this software are
owned by other third parties and used and distributed under their own
licenses, such as open source. This software is provided "as is," and unless
otherwise stated, there is no warranty, express or implied, including but not
limited to warranties of merchantability and fitness for a particular purpose.
Certain components of this software are licensed under
the GNU General Public License (GPL) version 2.0 or
GNU General Public License (GPL) version 3.0 or the GNU
Lesser General Public License (LGPL) Version 2.1 or
Lesser General Public License (LGPL) Version 2.0.
A copy of each such license is available at
http://www.opensource.org/licenses/gpl-2.0.php and
http://opensource.org/licenses/gpl-3.0.html and
http://www.opensource.org/licenses/lgpl-2.1.php and
http://www.gnu.org/licenses/old-licenses/library.txt.
Software
BIOS: version 07.65
NXOS: version 7.0(3)I7(6)
BIOS compile time: 09/04/2018
NXOS image file is: bootflash:///nxos.7.0.3.I7.6.bin
NXOS compile time: 3/5/2019 13:00:00 [03/05/2019 22:04:55]
Hardware
cisco Nexus3000 C31128PQ-10GE Chassis (Nexus 9000 Series)
Intel(R) Core(TM) i3- CPU @ 2.50GHz with 8155892 kB of memory.
Processor Board ID FOC20504AVG
Device name: 31128-11
bootflash: 53298520 kB
Kernel uptime is 69 day(s), 21 hour(s), 22 minute(s), 55 second(s)
Last reset at 539940 usecs after Mon Jul 10 19:07:37 2023
Reason: Reset Requested by CLI command reload
System version: 7.0(3)I7(6)
Service:
plugin
Core Plugin, Ethernet Plugin
STEPS TO REPRODUCE
Modify a pre-existing ipv4 or ipv6 prefix-list using the latest nxos_prefix_lists module with action "replaced"
verbose level 3 playbook logs attached
EXPECTED RESULTS
Relevant "no" cli commands should be present to remove existing prefix-list prior to cli commands that re-create it in updated form, standard ansible rm "replaced" action behavior.
ACTUAL RESULTS
the module is not sending the initial nxos cli "no" commands that should happen with action "replaced"
verbose level 3 playbook logs attached
The text was updated successfully, but these errors were encountered:
@digitalfiend64 There seems to be no logs or playbook attached to this ticket. We won't be able to debug this without those. Could you please share them so that we can take this forward? Thanks!
SUMMARY
When executing a playbook with a task that uses the cisco.nxos.nxos_prefix_lists resource module, the module is not sending the initial nxos cli "no" commands that should happen with action "replaced". With same playbook and host vars for ios using ios.ios_prefix_lists resource module,, the no commands are present. This causes the nxos module to return an error from the device when it complains that the sequence already exists. Strangely, the sequence number does not already exist. In any case, the no commands should be sent with action replaced, so it would not matter if the sequence exists or not since it should be deleted first anyway.
ISSUE TYPE
COMPONENT NAME
cisco.nxos
ANSIBLE VERSION
COLLECTION VERSION
NEW
CONFIGURATION
OS / ENVIRONMENT
plugin
Core Plugin, Ethernet Plugin
STEPS TO REPRODUCE
Modify a pre-existing ipv4 or ipv6 prefix-list using the latest nxos_prefix_lists module with action "replaced"
verbose level 3 playbook logs attached
EXPECTED RESULTS
Relevant "no" cli commands should be present to remove existing prefix-list prior to cli commands that re-create it in updated form, standard ansible rm "replaced" action behavior.
ACTUAL RESULTS
the module is not sending the initial nxos cli "no" commands that should happen with action "replaced"
The text was updated successfully, but these errors were encountered: