Skip to content

Commit

Permalink
fix aggregate doc example (ansible#28528)
Browse files Browse the repository at this point in the history
Signed-off-by: Trishna Guha <[email protected]>
  • Loading branch information
trishnaguha authored Aug 22, 2017
1 parent c2e41bf commit 4271f6e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
10 changes: 4 additions & 6 deletions lib/ansible/modules/network/interface/net_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,19 +96,17 @@
- 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
- { 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
- { name: ge-0/0/1 }
- { name: ge-0/0/2 }
state: absent
- name: Check intent arguments
Expand Down
8 changes: 4 additions & 4 deletions lib/ansible/modules/network/interface/net_lldp_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@
- name: Create aggregate of LLDP interface configurations
net_lldp_interface:
aggregate:
- name: eth1
- name: eth2
- { name: eth1 }
- { name: eth2 }
state: present
- name: Delete aggregate of LLDP interface configurations
net_lldp_interface:
aggregate:
- name: eth1
- name: eth2
- { name: eth1 }
- { name: eth2 }
state: absent
"""

Expand Down
4 changes: 2 additions & 2 deletions lib/ansible/modules/network/system/net_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@
- name: set multiple users to privilege level 15
net_user:
aggregate:
- name: netop
- name: netend
- { name: netop }
- { name: netend }
privilege: 15
state: present
Expand Down

0 comments on commit 4271f6e

Please sign in to comment.