VMware Cloud Community
cjoshi
Enthusiast
Enthusiast

IP Address management using native (no NSX) vRA Network Profiles

Hi,

I have been trying to understand the different states an IP Address within the vRA Network Profile has!

The problem statement:

I have 2 Network Profiles, QA & DEV. Presently only "QA" network profile is being used and no IP address from the static IP pool for "DEV" network profile has been provisioned.

Some IP Addresses from the static IP Pool defined within the "QA" network profile have been provisioned.  Some IP address from the QA network profile are in Allocated or Unallocated state. The question is how do I identify unprovisioned IP Addresses from a network profile using vRO?

Am I right in stating that IP address state transitions from Unprovisioned to Provisioned. And within a Provisioned state an IP Address could either be Allocated (assigned to a vRA item)  or Unallocated. When I release the IP Address, it moves to Provisioned-Unallocated state, and when I update the IP Address to be delete (if for lack of a better word that's what it means) it actually moves the IP address to an Unprovisioned state. An unprovisioned IP Address is part of the network pool which can then assigned by vRA to an provisioned (catalog) item.

Am I thinking right or have I completely understood this concept incorrectly?

Thanks. Appreciate your feedback.

Regards Shekhar

Reply
0 Kudos
2 Replies
bdamian
Expert
Expert

As I tested it, once the Network Profile is configured and the IP addresses for the pool are created, then these are the transitions:

From  Unallocated -> Allocated, when you create a VM. This happens before the "Building Machine".

From Allocated -> Destroyed, when you delete a VM. In a day or so, this changes from Destroyed -> Unallocated.

From Allocated -> Expired, when the VM is expired. If the VM is recovered, it changes to Allocated, if is finally deleted, it changes to Destroyed.

In vRealize Orchestrator, I cannot find a plugin workflow to know the IP Addresses status, but you can use vRA API:

List all Network profiles with this:

https://vra-host/iaas-proxy-provider/api/network/profiles

Get the details of a Network Profile (including the state of the IP addresses):

https://vra-ghost/iaas-proxy-provider/api/network/profiles/network_profile_id

Hope this helps.

D.

---
Damián Bacalov
vExpert 2017-2023 (7 years)
https://www.linkedin.com/in/damianbacalov/
https://tecnologiaimasd.blogspot.com/
twitter @bdamian
cjoshi
Enthusiast
Enthusiast

Thanks for the info. In my testing I did not test the Expired or the Destroyed state, I will add that as a test case. Yes I too did not find a workflow for it, hence wrote a small orchestrator script to show the changes.

I did verify the  other states.

Regards Shekhar

Reply
0 Kudos