vmware/pyvmomi-community-samples

Adding networkMap to OVA deployment

Open

#577 geöffnet am 17. Mai 2019

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (914 Forks)batch import
help wanted

Repository-Metriken

Stars
 (972 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

HI Guys,

I am trying to deploy an OVA and assign some params, but i am having issues adding the network map, I get an error "msg = 'The provided network mapping between OVF networks and the system network is not supported by any host.',"

The name of the interface and network are correct, this is the response i get back

networkMapping = (vim.OvfManager.NetworkMapping) [ (vim.OvfManager.NetworkMapping) { dynamicType = , dynamicProperty = (vmodl.DynamicProperty) [], name = 'LAN', network = 'vim.Network:530-SUP' } ], question i have, is the network part correct, should it be network = 'vim.Network:530-SUP' ? the network name on the host is 530-SUP

This is the code i am using to add mapping

Any pointers would be much appreciated cheers.

net_name = vim.Network('530-SUP') network = [vim.OvfManager.NetworkMapping(name='LAN', network=net_name)]

cisp = vim.OvfManager.CreateImportSpecParams(propertyMapping=opt, deploymentOption='enterprise', diskProvisioning='thin', entityName='Testing', networkMapping=network)

Contributor Guide