Skip to content

add duplex for eth and po interface in access and trunk #401

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

Merged
merged 9 commits into from
May 14, 2025

Conversation

ccoueffe
Copy link
Collaborator

    - name: Configure duplex mode
      tags: cr_eth_duplex
      cisco.dcnm.dcnm_interface:
        fabric: "{{ fab }}"
        state: merged
        config:
          - name: ethernet1/2
            type: eth
            switch:
              - "{{ switch }}"
            profile:
              mode: trunk
              speed: "1Gb"
              duplex: full
              description: "test E1/2 trunk full"
          - name: ethernet1/3
            type: eth
            switch:
              - "{{ switch }}"
            profile:
              mode: access
              speed: "1Gb"
              duplex: full
              description: "test E1/3 access full"

    - name: Configure duplex mode
      tags: cr_po_duplex
      cisco.dcnm.dcnm_interface:
        fabric: "{{ fab }}"
        state: merged
        config:
          - name: po501
            type: pc 
            switch:
              - "{{ switch }}"
            deploy: true
            profile:
              admin_state: false
              mode: access
              members:
                - e1/5
              pc_mode: 'on'
              bpdu_guard: true
              port_type_fast: true 
              mtu: default
              access_vlan: 301
              description: "test port channel access 1G duplex full"
              speed: "1Gb"
              duplex: "full"

    - name: Configure duplex mode
      tags: rm_eth_duplex
      cisco.dcnm.dcnm_interface:
        fabric: "{{ fab }}"
        state: deleted
        config:
          - name: ethernet1/2
            type: eth
            switch:
              - "{{ switch }}"

          - name: ethernet1/3
            type: eth
            switch:
              - "{{ switch }}"

    - name: Delete port-channel interfaces
      tags: rm_po
      cisco.dcnm.dcnm_interface:
        fabric: "{{ fab }}"
        state: deleted
        config:
          - name: po501
            switch:
            - "{{ switch }}"       

@ccoueffe ccoueffe marked this pull request as ready for review April 18, 2025 15:19
@mikewiebe mikewiebe added the ready for review PR is ready to be reviewed label Apr 26, 2025
@mikewiebe mikewiebe self-assigned this Apr 26, 2025
@mikewiebe
Copy link
Collaborator

Resolve merge conflicts

@mikewiebe mikewiebe merged commit 5f1e5a3 into CiscoDevNet:develop May 14, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request ready for review PR is ready to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants