mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 07:01:22 -07:00
[Junos] Add l3-interface option for vlan (#43863)
* [Junos] Add l3-interface option for vlan * Add version_added for new option
This commit is contained in:
parent
b454fbe684
commit
1651483e44
1 changed files with 13 additions and 0 deletions
|
@ -30,6 +30,10 @@ options:
|
||||||
description:
|
description:
|
||||||
- ID of the VLAN. Range 1-4094.
|
- ID of the VLAN. Range 1-4094.
|
||||||
required: true
|
required: true
|
||||||
|
l3_interface:
|
||||||
|
description:
|
||||||
|
- Name of logical layer 3 interface.
|
||||||
|
version_added: "2.7"
|
||||||
description:
|
description:
|
||||||
description:
|
description:
|
||||||
- Text description of VLANs.
|
- Text description of VLANs.
|
||||||
|
@ -67,6 +71,13 @@ EXAMPLES = """
|
||||||
vlan_id: 20
|
vlan_id: 20
|
||||||
name: test-vlan
|
name: test-vlan
|
||||||
|
|
||||||
|
- name: Link to logical layer 3 interface
|
||||||
|
junos_vlan:
|
||||||
|
vlan_name: test
|
||||||
|
vlan_id: 20
|
||||||
|
l3-interface: vlan.20
|
||||||
|
name: test-vlan
|
||||||
|
|
||||||
- name: remove VLAN configuration
|
- name: remove VLAN configuration
|
||||||
junos_vlan:
|
junos_vlan:
|
||||||
vlan_name: test
|
vlan_name: test
|
||||||
|
@ -145,6 +156,7 @@ def main():
|
||||||
vlan_id=dict(type='int'),
|
vlan_id=dict(type='int'),
|
||||||
description=dict(),
|
description=dict(),
|
||||||
interfaces=dict(),
|
interfaces=dict(),
|
||||||
|
l3_interface=dict(),
|
||||||
state=dict(default='present', choices=['present', 'absent']),
|
state=dict(default='present', choices=['present', 'absent']),
|
||||||
active=dict(default=True, type='bool')
|
active=dict(default=True, type='bool')
|
||||||
)
|
)
|
||||||
|
@ -182,6 +194,7 @@ def main():
|
||||||
param_to_xpath_map.update([
|
param_to_xpath_map.update([
|
||||||
('name', {'xpath': 'name', 'is_key': True}),
|
('name', {'xpath': 'name', 'is_key': True}),
|
||||||
('vlan_id', 'vlan-id'),
|
('vlan_id', 'vlan-id'),
|
||||||
|
('l3_interface', 'l3-interface'),
|
||||||
('description', 'description')
|
('description', 'description')
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue