[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:
linnil1 2018-08-24 20:36:27 +08:00 committed by Ganesh Nalawade
parent b454fbe684
commit 1651483e44

View file

@ -30,6 +30,10 @@ options:
description:
- ID of the VLAN. Range 1-4094.
required: true
l3_interface:
description:
- Name of logical layer 3 interface.
version_added: "2.7"
description:
description:
- Text description of VLANs.
@ -67,6 +71,13 @@ EXAMPLES = """
vlan_id: 20
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
junos_vlan:
vlan_name: test
@ -145,6 +156,7 @@ def main():
vlan_id=dict(type='int'),
description=dict(),
interfaces=dict(),
l3_interface=dict(),
state=dict(default='present', choices=['present', 'absent']),
active=dict(default=True, type='bool')
)
@ -182,6 +194,7 @@ def main():
param_to_xpath_map.update([
('name', {'xpath': 'name', 'is_key': True}),
('vlan_id', 'vlan-id'),
('l3_interface', 'l3-interface'),
('description', 'description')
])