Skip to content
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

Open
wants to merge 7 commits into
base: v2
Choose a base branch
from

Conversation

JchhatbarInfoblox
Copy link
Collaborator

Implemented IPAM Range

@JchhatbarInfoblox JchhatbarInfoblox marked this pull request as ready for review December 3, 2024 08:06
@@ -0,0 +1,2 @@
deprecated_features:
- b1_ipam_range - is deprecated in favor of `ipam_range`.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New line required at the end of file.

b1_ipam_range:
deprecation:
removal_version: 3.0.0
warning_text: Use infoblox.bloxone.ipam_range instead.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New line required at the end of file .

space: "{{ ip_space.id }}"
disable_dhcp: "true"
tags:
location: "some where on earth"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets keep this standardized and use either location = site1 or location1

@@ -14,6 +14,10 @@
author: "Amit Mishra (@amishra), Sriram Kannan(@kannans)"
short_description: Configure the IPAM range on Infoblox BloxOne DDI
version_added: "1.0.1"
deprecated:
removed_in: "3.0.0"
why: "This module is being deprecated and will be removed in version 3.0.0."
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
why: "This module is being deprecated and will be removed in version 3.0.0."
why: "This module is being deprecated and will be removed in version 3.0.0. Use M(ipam_range) instead."

- range_info.objects | length == 1
- range_info.objects[0].tags.location == tag_value

# Test case for creating a range with a name
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As the name already provides what the task does , the comment is redundant.

@@ -0,0 +1,283 @@
---
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing UTs

  • Inheritance Sources
  • Updation of start and end of the range

state: "absent"
ignore_errors: true

- name: "Delete IP Space"
Copy link
Collaborator

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants