Page MenuHomeVyOS Platform

LAG interfaces module is outdated
Open, Requires assessmentPublicBUG

Description

The module to creae LAG interfaces needs updating as it's using an old CLI syntax from 1.1 days

I have a playbook using this task

- name: Create bond interfaces
  vyos.vyos.vyos_lag_interfaces:
    config:
      - name: "{{ item.name }}"
        mode: "{{ item.mode }}"
        members:
          - member: "{{ item.members[0] }}"
          - member: "{{ item.members[1] }}"
        hash_policy: "{{ item.hash_policy }}"
  when: item.members is defined
  loop: "{{ lag_interfaces }}"

but it errors out with this error

module_stderr: |-
   set interfaces ethernet eth0 bond-group 'bond0'

     Configuration path: interfaces ethernet eth0 [bond-group] is not valid
     Set failed

Details

Difficulty level
Unknown (require assessment)
Version
5.0.0
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)