Quantcast
Channel: VMware Communities : Popular Discussions - Open Virtualization Format Tool
Viewing all articles
Browse latest Browse all 34499

OVF ValueMap & Values

$
0
0

I have an OVF with an ovf:qualifiers ValueMap drop down list of strings.

I would like to map the selected string into some other values either int or string will do.

I saw in the DSP0004 Version 2.5.0 "Common Information Model (CIM) Infrastructure" document; an example in Section 5.5.2.51 ~pg 47

This example appears to do what I want, map the ValueMap list to the Values list.

BUT I can not make it work.

Here is the example text:

[Values {"zero&one", "2to40", "fifty", "the unclaimed", "128-255"}, ValueMap {"..1","2..40" "50", "..", "x80.." }]

The document implies that picking a value in the ValueMap will set the property to the coresponding value in the Values list

 

I get syntax errors when I use vSphere to deploy the OVF

ovf:qualifiers=[Values{...}, ValueMap{...}]

error expect ' or "

ovf:qualifiers='[Values{...}, ValueMap{...}]'

ovf:qualifiers='Values{...}, ValueMap{...}'

more syntax errors

ovf:qualifiers='ValueMap{...}, Values{...}'

The above does not have errors, but it ignores my ovf:userConfigurable="true" so there is no selection and the value is not mapped.

 

Without the Values{} list, the drop down list is user selectable and the property is a string from the ValueMap list.


Viewing all articles
Browse latest Browse all 34499

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>