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

lag_interfaces - Fix bug where lag interfaces was not erroring on command failure #923

Merged
merged 3 commits into from
Jan 15, 2025

Conversation

sean-m-sullivan
Copy link
Contributor

lag_interfaces - Fix bug where lag interfaces was not erroring on command failure

SUMMARY

when a lag interface command is run it was not failing as expected.

Result currently

"changed": true,
"commands": [
"interface Ethernet1/7",
"channel-group 294 mode active",
"interface Ethernet1/8",
"channel-group 296 mode active"
],

but on cli the command does not get implemented on the device
CLI

device# conf t
Enter configuration commands, one per line. End with CNTL/Z.
device(config)# interface ethernet 1/8
device(config-if)# channel-group 20 mode active
command failed: port not compatible [switching port]
** You can use force option to override the port's parameters
** (e.g. "channel-group X force")
** Use "show port-channel compatibility-parameters" to get more information on failure

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

lag_interface

ADDITIONAL INFORMATION

More information here
https://access.redhat.com/support/cases/#/case/04029217

Playbook to reproduce:

- name: Deploy port channel
  hosts: all
  gather_facts: false

  tasks:

    - name: set port channel
      cisco.nxos.nxos_lag_interfaces:
        config:
          - name: port-channel296
            members:
              - member: Ethernet1/8
        state: merged

@NilashishC NilashishC merged commit af722fa into ansible-collections:main Jan 15, 2025
62 of 64 checks passed
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

Successfully merging this pull request may close these issues.

2 participants