Skip to content

Read content of Multivalue #66

@alexandreseitz

Description

@alexandreseitz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions