Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Generated c.addMo(polUni) fails with ValueError: mo context not found for uni #5

@edminer

Description

@edminer

Hi,

Running APIC Version 1.2(1k) here.

arya generated this ending to the generated py script:

# commit the generated code to APIC
print toXMLStr(polUni)
c = cobra.mit.request.ConfigRequest()
c.addMo(polUni)

When I run the script I get this:

Traceback (most recent call last):
  File "tn-tutorial-tic.py", line 54, in <module>
    c.addMo(polUni)
  File "/xtra/anaconda/envs/py27/lib/python2.7/site-packages/acicobra-1.2_1k-py2.7.egg/cobra/mit/request.py", line 777, in addMo
    raise ValueError('mo context not found for {0}'.format(str(mo.dn)))
ValueError: mo context not found for uni

I made this change to the addMo statement and the script succeeds:
c.addMo(fvTenant)

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions