mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00: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:
@@ -90,8 +90,8 @@
|
||||
- name: Create aggregate of LLDP interface configurations
|
||||
vyos_lldp_interface:
|
||||
aggregate:
|
||||
- { name: eth1 }
|
||||
- { name: eth2 }
|
||||
- name: eth1
|
||||
- name: eth2
|
||||
state: present
|
||||
register: result
|
||||
|
||||
@@ -104,8 +104,8 @@
|
||||
- name: Create aggregate of LLDP interface configurations again (idempotent)
|
||||
vyos_lldp_interface:
|
||||
aggregate:
|
||||
- { name: eth1 }
|
||||
- { name: eth2 }
|
||||
- name: eth1
|
||||
- name: eth2
|
||||
state: present
|
||||
register: result
|
||||
|
||||
@@ -116,7 +116,7 @@
|
||||
- name: Override LLDP interface configuration on aggregate
|
||||
vyos_lldp_interface:
|
||||
aggregate:
|
||||
- { name: eth1 }
|
||||
- name: eth1
|
||||
- { name: eth2, state: disabled }
|
||||
state: present
|
||||
register: result
|
||||
@@ -129,7 +129,7 @@
|
||||
- name: Override LLDP interface configuration on aggregate again (idempotent)
|
||||
vyos_lldp_interface:
|
||||
aggregate:
|
||||
- { name: eth1 }
|
||||
- name: eth1
|
||||
- { name: eth2, state: disabled }
|
||||
state: present
|
||||
register: result
|
||||
@@ -141,8 +141,8 @@
|
||||
- name: Delete aggregate of LLDP interface configurations
|
||||
vyos_lldp_interface:
|
||||
aggregate:
|
||||
- { name: eth1 }
|
||||
- { name: eth2 }
|
||||
- name: eth1
|
||||
- name: eth2
|
||||
state: absent
|
||||
register: result
|
||||
|
||||
@@ -155,8 +155,8 @@
|
||||
- name: Delete aggregate of LLDP interface configurations (idempotent)
|
||||
vyos_lldp_interface:
|
||||
aggregate:
|
||||
- { name: eth1 }
|
||||
- { name: eth2 }
|
||||
- name: eth1
|
||||
- name: eth2
|
||||
state: absent
|
||||
register: result
|
||||
|
||||
|
||||
Reference in New Issue
Block a user