ixnetwork_restpy
ixnetwork_restpy copied to clipboard
Read content of Multivalue
Hello I need to read content of Multivalue. Typically in my program when I connect to Ixnetwork controler with some configuration already deployed (or a config uploaded via ixncfg file) and I discover the config by parsing the complete topology.
For the Multivalue object I need to detect which type of mutlivalue it is:
- singlevalue
- counter
- valueList
- ....etc
There are some @property defined in Multivalue like Pattern, but there is a complex mecanism to hide the real type of Multivalue
I would expect to get the real pattern value (MV._properties['pattern']
), but instead it returns a string:
- Alt: ...
- Inc: ...
- Dec: ...
- Randr: ..
So I try to access data in the private property mv._properties[]
but sometime data is not there..so it raise a KeyError
So for now, I have no other solution than doing some kind of reverse engineering from the string returned by the @property Pattern