dellemc.os10 icon indicating copy to clipboard operation
dellemc.os10 copied to clipboard

LAG Interfaces cannot support "no negotiation" command

Open FredPocai opened this issue 4 years ago • 7 comments
trafficstars

If the dictionary does not have "auto_neg" defined, it is defaulting to add "no negotiation". This command is not supported on LAG interfaces.

https://github.com/ansible-collections/dellemc.os10/blob/9946fc3c2feb577afabfcf733d429d9b149452e7/roles/os10_interface/templates/os10_interface.j2#L141-L142

I have remedied this on a local copy by removing these two lines.

FredPocai avatar Oct 08 '21 19:10 FredPocai

Same here. The patch breaks my playbooks using port-channels: https://github.com/ansible-collections/dellemc.os10/commit/88bccbb75e557e6e73a321e2e21443ce256f169a

florath avatar Feb 16 '22 05:02 florath

Hi @florath, sure will check and update. meanwhile Please can you share your playbook and output of the execution.

prasadapr avatar Feb 17 '22 17:02 prasadapr

Sorry - but I am not able to share my playbook / variable definition.

But it should very easy to reproduce: create a port channel using os10_interface.

florath avatar Feb 22 '22 15:02 florath

Ok thanks @florath, will check and update.

prasadapr avatar Feb 23 '22 15:02 prasadapr

Same here. The patch breaks my playbooks using port-channels: 88bccbb

fatal: [sw4]: FAILED! => changed=false
  command: no negotiation
  msg: |-
    no negotiation
    % Error: Unrecognized command.
    sw4(conf-if-po-1)#
  rc: -32603

woyteck1 avatar Feb 24 '22 16:02 woyteck1

I can share parts of my playbook, host config:

os10_interface:
  port-channel 1:
    desc: To-Dell-100G
    admin: up
    switchport: true
    mtu: 9216

  ethernet 1/1/31:
    desc: "To-Dell-p53-A"
    admin: up
    switchport: false
    flowcontrol:
      mode: "receive"
      enable: "off"
      state: "present"

  ethernet 1/1/32:
    desc: "To-Dell-p54-B"
    admin: up
    switchport: false
    flowcontrol:
      mode: "receive"
      enable: "off"
      state: "present"

os10_lag:
  Po 1:
    type: dynamic
    min_links: 1
    max_bundle_size: 2
    lacp_system_priority: 2
    channel_members:
      - port: ethernet 1/1/31
        mode: "active"
        port_priority: 3
        lacp_rate_fast: true
      - port: ethernet 1/1/32
        mode: "active"
        port_priority: 3
        lacp_rate_fast: true
    state: present

woyteck1 avatar Feb 24 '22 16:02 woyteck1

Hi @woyteck1, thanks for sharing the host config file for interface and lag. I am working on this and will update my observations with in a day or two.

prasadapr avatar Mar 03 '22 11:03 prasadapr