Reply

IPAM Plug-in for VMWare - CNAME Creation

BDyer
Techie
Posts: 4
1502     0

Hello-- I'm trying to get a CNAME created for a new host record being created using vCO 5.1 and the Infoblox plug-in. I thought by adding just a "CNAME" to the action script addHost would be sufficient. I am learning to write some code through examples. The script below is the snippet from the Infoblox provided script addHost. When I execute the workflow I get the following error: Unable to create object : IpamHost : com.infoblox.ipam.model.IpamHost. Any guidance is appreciated. Thank you.

var network = new IpamNetwork(netaddr, netmask, null);
System.log("IPAM network is: " + network.address + "/"+ network.cidr);

var host = new IpamHost(ipAddress, macAddress, hostName.toLowerCase(), comment, cname);
System.log("IPAM host to add is: " + host.fqdn + "with ip " +  host.ip + "and Mac Address " + host.mac);

var ea = null;

if (vcd_vm != "" & vcd_vapp != "" & vcd_vdc != "" & vcd_vorg != "" ) {
    ea = new IpamExtensibleAttribute(vcd_vm, vcd_vapp, vcd_vdc, vcd_vorg);
    System.log(" EA object is: " + ea.vm + ":"+ ea.vapp + ":" + ea.vdc + ":"+ ea.vorg);
}

var result = ipamConnection.addHost(network, host, ea);
System.log("Added the host to IPAM NIOS:" + hostName.toLowerCase() + ":" + result.ip + ":" + macAddress);

return result;

Showing results for 
Search instead for 
Do you mean 

Recommended for You