IPAM network selection support
How to derive OneFuse IPAM Policy inputs from Aria Automation 8 Network Selection IDs to let vRA constraints drive IP address reservations
5 minute read
To learn more about this OneFuse module, refer to IPAM.
The following vRA Property needs to be added to the Cloud Template’s Code section under the Resource(s) of interest.
| Property Name Format | Property Value Format |
|---|---|
OneFuse_IpamPolicy_Nic<#>: Replace <#> with a number from 0 to 9, one for each NIC. Default is 0 |
'<OneFuse Endpoint Name>:<IPAM Policy Name>' |
Example YAML:
# Execute OneFuse IPAM Policy
# -- Property Value
# <OneFuse Endpoint Name> is onefuse
# <IPAM Policy Name> is prod
name: Simple Example
resources:
Cloud_Machine_1:
type: Cloud.Machine
properties:
image: CentOS7
flavor: small
count: 1
OneFuse_IpamPolicy_Nic0: 'onefuse:prod'
Optional. IPAM Multi-IP Support:
Support for multiple IP Addresses on a single interface. The IP Addresses are reserved and stored in both OneFuse and vRA Machine Properties for future reference in vRA lifecycles.
| Property name format | Property value format |
|---|---|
OneFuse_IpamPolicy_AdditionalTrigger |
'true'. Required Trigger Property to enable IPAM for additional NICs. |
OneFuse_IpamPolicy_Additional_<niclabel> |
'<OneFuse Endpoint Name>:<IPAM Policy Name>' |
<niclabel> with a value that is appended to the hostname.<niclabel> to the hostname after a hyphen (-). To override, modify the Hostname Override field on the OneFuse IPAM Policy.<niclabel> is to get appended to the hostname after a hyphen (-). To override this behavior, modify the field Hostname Override on the OneFuse IPAM Policy.Example YAML:
# -- Property Name
# <niclabel> is xyz
# -- Property Value
# <OneFuse Endpoint Name> is onefuse
# <OneFuse IPAM Policy Name> is prod
# Example
OneFuse_IpamPolicy_AdditionalTrigger: 'true'
OneFuse_IpamPolicy_Additional_xyz: 'onefuse:prod'
| Property | Value |
|---|---|
OneFuse_Tracking_Id |
A GUID (globally unique identifier) that links OneFuse Policy Executions and the resulting Managed Objects together for a given resource on a deployment. The first OneFuse Module Policy execution will populate this vRA property and it will be passed into other OneFuse Modules automatically. Learn more about OneFuse Tracking ID. |
| Property format | Example |
|---|---|
OneFuse_VmNic<#>.<value> |
OneFuse_VmNic0.hostname, OneFuse_VmNic0.ipAddress, OneFuse_VmNic0.fqdn |
<#> with a number from 0 to 9, one for each NIC. For most use cases, NIC 0 is the primary network interface.<value> with an appropriate key: dnsSuffix, fqdn, gateway, hostname, ipAddress, macAddress, netmask, network, subnet, targettarget will be the FQDN when a DNS Suffix is provided; otherwise, it will be the hostname without domain.# Execute OneFuse IPAM Policy
# -- Property Value
# <OneFuse Endpoint Name> is onefuse
# <IPAM Policy Name> is prod
name: Simple Example
resources:
Cloud_Machine_1:
type: Cloud.Machine
properties:
image: CentOS7
flavor: small
count: 1
OneFuse_IpamPolicy_Nic0: 'onefuse:prod'
Review OneFuse custom resources before using this method.
OneFuse:IPAM_v1 to the canvas| Parameter Name | Required? | Notes |
|---|---|---|
endpointName |
Required | OneFuse Endpoint Name in vRA. Refer to Managing endpoints. |
policyName |
Required | OneFuse Module Policy Name (string). |
templateProperties |
Optional | Additional properties that are referenced within the Policy. JSON format. |
trackingId |
Optional | Tracking ID (string) to link multiple OneFuse Policy Executions and resulting OneFuse Managed Objects together. If none is passed, one gets generated by OneFuse for that specific Policy Execution. |
IPAM specific parameters:
| Parameter Name | Required? | Notes |
|---|---|---|
hostname |
Required | Hostname for the IP Address |
Deploy a Cloud Template with OneFuse IPAM Policies configured. IP Address(es) will get reserved in the desired IPAM Provider.
The following vRA Properties will exist on the Deployment.
| Property Name | Property Value |
|---|---|
OneFuse_Ipam_Nic#: Where # is a number 0-9 |
JSON string of OneFuse IPAM Managed Object |
OneFuse_Ipam_Additional<niclabel> (shown when configured to register additional IPs): where niclabel is replaced with the user specified value |
JSON string of OneFuse IPAM Managed Object |
Destroy an existing deployment with OneFuse IPAM Policies configured. The IP Address(es) will be removed from the desired IPAM Provider.
| EBS Execution | Subscription State | EBS Priority | EBS Name |
|---|---|---|---|
| Provision | |||
| NetworkConfigure | Early | 1200 | OneFuse_Provision_IPAM |
| Deprovision | |||
| ComputePostRemoval | - | 1400 | OneFuse_De-Provision_IPAM |
Troubleshoot in vRealize Orchestrator.
Additional resources:
How to derive OneFuse IPAM Policy inputs from Aria Automation 8 Network Selection IDs to let vRA constraints drive IP address reservations