12-29-2017 11:21 AM
I've been able to successfully deploy various VMs via REST API on the NFVIS-based ENCS platform. I've not however been able to deploy the VM with a bootstrapped configuration. My python script appears as follows:
import requests
from requests.auth import HTTPBasicAuth
url = ('https://x.x.x.x/api/config/vm_lifecycle/tenants/tenant/admin/deployments')
headers = {'Content-type': 'application/vnd.yang.data+html', 'Accept': 'application/vnd.yang.data+html'}
content = open('dayzeroisr.cfg', 'rb').read()
config = requests.post(url, verify=False, auth=HTTPBasicAuth('user','password'), headers=headers, data=content)
print config.content
================================
The dayzeroisr.cfg file from which this python script reads, has all of the appropriate html tags with a section called <data>, which has a cut-n-pasted configuration from a working ISR. When the Python script is run, it successfully deploys the VM onto the ENCS platform, however the VM doesn't boot with the configuration specified between the <data></data> tags.
Has anyone successfully gotten this feature to work? Please assist!
02-06-2018 05:19 PM
Posted in wrong community?
04-12-2018 08:18 AM
Question was never answered.
Note the following:
When creating a VM package to include QCOW2 image and supporting files, there is the option to include a configuration file, with tagged variables seeding the configuration. That particular configuration file (named bootstrap-config or day0-config) should be referenced as an API feeds the variables for each deployment.
I've not been able to get this to successfully work. Does anyone at all have a working model with instructions? It's important as I'm in a competition for NFV capabilities with other vendors.
04-12-2018 08:37 AM
Sorry, I don't know the answer. This community is meant for discussion about YDK.
04-12-2018 09:06 AM
As Santiago and Abhi point out, you're probably in the wrong community, as this seems unrelated to the YANG Developer Kit.
However, since you seem to be automating ENFV, did you look at the following solutions?
* DNA Center: www.cisco.com/go/enfv
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide