Skip to content

Commit

Permalink
Add examples (#58819) (#58917)
Browse files Browse the repository at this point in the history
* Add examples to the ios_vlan docs: vlan using aggregate and move vlan interface example

(cherry picked from commit 5689cc0)
  • Loading branch information
max-cz authored and acozine committed Jul 10, 2019
1 parent 9724b23 commit 87f0e04
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/ansible/modules/network/ios/ios_vlan.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,19 @@
ios_vlan:
vlan_id: 100
state: absent
- name: Add vlan using aggregate
ios_vlan:
aggregate:
- { vlan_id: 100, name: test-vlan, interfaces: [GigabitEthernet0/1, GigabitEthernet0/2], delay: 15, state: suspend }
- { vlan_id: 101, name: test-vlan, interfaces: GigabitEthernet0/3 }
- name: Move interfaces to a different VLAN
ios_vlan:
vlan_id: 102
interfaces:
- GigabitEthernet0/0
- GigabitEthernet0/1
"""

RETURN = """
Expand Down

0 comments on commit 87f0e04

Please sign in to comment.