-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implemented IPAM Range #48
base: v2
Are you sure you want to change the base?
Conversation
state: "absent" | ||
ignore_errors: true | ||
|
||
- name: "Delete IP Space" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we have a standardized cleanup file in setup_ip_space
instead of this and call that from here ?
Something like :
- ansible.builtin.include_role:
name: "setup_ip_space"
tasks_from: "cleanup.yml"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isnt resolved yet.
space: "{{ ip_space.id }}" | ||
disable_dhcp: "true" | ||
tags: | ||
location: "some where on earth" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
location: "some where on earth" | |
location: "site-1" |
- infoblox.bloxone.common | ||
""" | ||
EXAMPLES = r""" | ||
- name: "Create an ip space" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- name: "Create an ip space" | |
- name: "Create an IP Space" |
state: "present" | ||
register: ip_space | ||
|
||
- name: "Create a subnet" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- name: "Create a subnet" | |
- name: "Create a Subnet" |
infoblox.bloxone.ipam_range: | ||
start: "10.0.0.1" | ||
end: "10.0.0.100" | ||
space: "{{ _ip_space.id }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
space: "{{ _ip_space.id }}" | |
space: "{{ ip_space.id }}" |
low: 10 | ||
state: "present" | ||
|
||
- name: "Delete a Range" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- name: "Delete a Range" | |
- name: "Delete the Range" |
""" | ||
|
||
EXAMPLES = r""" | ||
- name: Retrieve range information by ID |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- name: Retrieve range information by ID | |
- name: Get Range information by ID |
ipam_range_info: | ||
id: "range-id-12345" | ||
|
||
- name: Retrieve range information with filters |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- name: Retrieve range information with filters | |
- name: Get Range information with filters (eg. start , end) |
start: "192.168.1.0" | ||
end: "192.168.1.255" | ||
|
||
- name: Retrieve range information with filter query |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- name: Retrieve range information with filter query | |
- name: Get Range information with filter query |
- name: Retrieve range information with filter query | ||
ipam_range_info: | ||
filter_query: "start=='10.0.0.1' and end=='10.0.0.100'" | ||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add an examples of filtering using Tag Filters ?
type: dict | ||
returned: Always | ||
contains: | ||
abandoned: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update descriptions please !
space: "{{ _ip_space.id }}" | ||
state: "absent" | ||
|
||
- ansible.builtin.include_role: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here I mean that there could be separate directories called cleanup_ip_space and cleanup_subnet which can be called in dependencies where the cleanup takes place.
Implemented IPAM Range