Skip to content

Commit

Permalink
Updated examples for vLAN
Browse files Browse the repository at this point in the history
  • Loading branch information
nitish-ks committed Dec 17, 2024
1 parent f12c226 commit 05d48db
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion plugins/modules/nios_vlan.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
infoblox.nios_modules.nios_vlan:
name: ansible
id: 10
parent: default
parent: my_vlanview
state: present
provider:
host: "{{ inventory_hostname_short }}"
Expand All @@ -103,6 +103,7 @@
infoblox.nios_modules.nios_vlan:
name: ansible
id: 10
parent: my_vlanview
comment: this is an example comment
state: present
provider:
Expand All @@ -115,6 +116,7 @@
infoblox.nios_modules.nios_vlan:
name: ansible
id: 10
parent: my_vlanview
state: absent
provider:
host: "{{ inventory_hostname_short }}"
Expand All @@ -125,6 +127,27 @@
- name: Update an existing vlan
infoblox.nios_modules.nios_vlan:
name: {new_name: ansible-new, old_name: ansible}
id: 10
parent: my_vlanview
state: present
provider:
host: "{{ inventory_hostname_short }}"
username: admin
password: admin
connection: local
- name: Create vlan with extensible attributes
infoblox.nios_modules.nios_vlan:
name: ansible
id: 11
parent: my_vlanview
comment: "this is an example comment"
contact: "[email protected]"
department: "IT"
description: "test"
reserved: True
extattrs:
Site: "HQ"
state: present
provider:
host: "{{ inventory_hostname_short }}"
Expand Down

0 comments on commit 05d48db

Please sign in to comment.