Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions ansible/roles/custom_fields/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,21 @@
- ipam.prefix
filter_logic: exact

- name: Create Custom Field Address Scope
networktocode.nautobot.custom_field:
state: present
url: "{{ nautobot_url }}"
token: "{{ nautobot_token }}"
description: OpenStack address scope to associate with this subnet pool prefix
label: Address Scope
key: address_scope
type: text
required: false
weight: 100
content_types:
- ipam.prefix
filter_logic: exact

- name: Create Custom Field Subnet Pool Default Prefixlen
networktocode.nautobot.custom_field:
state: present
Expand Down Expand Up @@ -150,3 +165,35 @@
validation_minimum: 1
validation_maximum: 32
filter_logic: exact

- name: Create Custom Field Subnet Pool VNI tag
networktocode.nautobot.custom_field:
state: present
url: "{{ nautobot_url }}"
token: "{{ nautobot_token }}"
description: OpenStack Subnet Pool VNI tag
label: VNI
key: vni
type: integer
required: false
weight: 100
content_types:
- ipam.prefix
validation_minimum: 1
validation_maximum: 16777215
filter_logic: exact

- name: Create Custom Field Subnet Pool VRF tag
networktocode.nautobot.custom_field:
state: present
url: "{{ nautobot_url }}"
token: "{{ nautobot_token }}"
description: OpenStack Subnet Pool VRF tag
label: VRF tag
key: vrf_custom
type: text
required: false
weight: 100
content_types:
- ipam.prefix
filter_logic: exact
Loading
Loading