mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-23 04:24:00 -07:00
Handle common argument in aggregate parameter for vyos module (#28182)
* Handle common agrument in aggregate parameter for vyos module * Add supoort to set parameter in aggregate to it's respctive top level argument if value not provided in aggregate. * Aggregate argument spec validation * Documentation for aggregate * Fix unit test failure
This commit is contained in:
parent
3f9d6aa0f1
commit
38c0b581c3
18 changed files with 353 additions and 165 deletions
|
@ -138,8 +138,9 @@
|
|||
- name: Disable interface on aggregate
|
||||
net_interface:
|
||||
aggregate:
|
||||
- { name: eth1, description: test-interface-1, speed: 100, duplex: half, mtu: 512, enabled: False}
|
||||
- { name: eth2, description: test-interface-2, speed: 1000, duplex: full, mtu: 256, enabled: False}
|
||||
- name: eth1
|
||||
- name: eth2
|
||||
enabled: False
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
|
@ -151,8 +152,9 @@
|
|||
- name: Enable interface on aggregate
|
||||
net_interface:
|
||||
aggregate:
|
||||
- { name: eth1, description: test-interface-1, speed: 100, duplex: half, mtu: 512, enabled: True}
|
||||
- { name: eth2, description: test-interface-2, speed: 1000, duplex: full, mtu: 256, enabled: True}
|
||||
- name: eth1
|
||||
- name: eth2
|
||||
enabled: True
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
|
@ -164,8 +166,9 @@
|
|||
- name: Delete interface aggregate
|
||||
net_interface:
|
||||
aggregate:
|
||||
- { name: eth1, state: absent}
|
||||
- { name: eth2, state: absent}
|
||||
- name: eth1
|
||||
- name: eth2
|
||||
state: absent
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
|
@ -177,8 +180,9 @@
|
|||
- name: Delete interface aggregate (idempotent)
|
||||
net_interface:
|
||||
aggregate:
|
||||
- { name: eth1, state: absent}
|
||||
- { name: eth2, state: absent}
|
||||
- name: eth1
|
||||
- name: eth2
|
||||
state: absent
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue