Hello Everyone,
I am trying to assign static IP address to VM using callout feature of Cisco CloudCenter while application deployment.
For this I have placed the callout script at the following path:
/usr/local/osmosix/callout/ipam/
callout.conf file is been placed under ipam dir, which has following contents:
name=ipam
type=exec
topic=ipam
debug=true
executable=ipam.py
reinject=true
disabled=false
Contents of ipam.py:
#!/usr/bin/env python
print "DnsServerList=8.8.8.8,10.0.0.100"
print "nicCount=1"
print "nicIP_0=10.100.44.197"
print "nicDnsServerList_0=8.8.8.8"
print "nicGateway_0=10.100.44.1"
print "nicNetmask_0=255.255.255.0"
print "domainName=vega.com"
print "HWClockUTC=true"
print "timeZone=Canada/Eastern"
print "osHostname=hahuja21"
From the logs at following location it is clear that IP address is getting assigned to variable "nicIP_0" (IPAM supported properties):
/usr/local/osmosix/call