mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +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:
@@ -87,6 +87,24 @@ EXAMPLES = """
|
||||
name: ge-0/0/1
|
||||
description: test-interface
|
||||
enabled: False
|
||||
|
||||
- name: Create interface using aggregate
|
||||
net_interface:
|
||||
aggregate:
|
||||
- name: ge-0/0/1
|
||||
description: test-interface-1
|
||||
- name: ge-0/0/2
|
||||
description: test-interface-2
|
||||
speed: 1g
|
||||
duplex: full
|
||||
mtu: 512
|
||||
|
||||
- name: Delete interface using aggregate
|
||||
junos_interface:
|
||||
aggregate:
|
||||
- name: ge-0/0/1
|
||||
- name: ge-0/0/2
|
||||
state: absent
|
||||
"""
|
||||
|
||||
RETURN = """
|
||||
|
||||
@@ -70,6 +70,18 @@ EXAMPLES = """
|
||||
name: bond0
|
||||
state: absent
|
||||
|
||||
- name: Create aggregate of linkagg definitions
|
||||
net_linkagg:
|
||||
aggregate:
|
||||
- { name: bond0, members: [eth1] }
|
||||
- { name: bond1, members: [eth2] }
|
||||
|
||||
- name: Remove aggregate of linkagg definitions
|
||||
net_linkagg:
|
||||
aggregate:
|
||||
- name: bond0
|
||||
- name: bond1
|
||||
state: absent
|
||||
"""
|
||||
|
||||
RETURN = """
|
||||
|
||||
@@ -58,6 +58,20 @@ EXAMPLES = """
|
||||
net_lldp_interface:
|
||||
name: eth1
|
||||
state: absent
|
||||
|
||||
- name: Create aggregate of LLDP interface configurations
|
||||
net_lldp_interface:
|
||||
aggregate:
|
||||
- name: eth1
|
||||
- name: eth2
|
||||
state: present
|
||||
|
||||
- name: Delete aggregate of LLDP interface configurations
|
||||
net_lldp_interface:
|
||||
aggregate:
|
||||
- name: eth1
|
||||
- name: eth2
|
||||
state: absent
|
||||
"""
|
||||
|
||||
RETURN = """
|
||||
|
||||
Reference in New Issue
Block a user