You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ACI Cobra-5.2.4.0.4 packages downloaded from one of my APICs.
Using The MoDirectory class, I am able to retrieve fvTenant Managed Objects from my Fabric.
However attempting to access any child container of an fvTenant object created with MoDirectory.search_by_class() or MoDirectory.lookupByDn() triggers the following error:
File ".../venv-cobra5.2/lib/python3.6/site-packages/cobra/model/init.py", line 29, in getattr
raise AttributeError("'module' object has no attribute '{0}'".format(className))
AttributeError: 'module' object has no attribute 'NLBStatsAg1h'
According to the APIC MIM Reference, NLBStatsAg1h is a valid ACI Class so Cobra should not be throwing errors while trying to deserialize it into a Python object.
cloud:NLBStatsAg1h
General
Class Label: NLBStatsAg1h
Description: A class that represents the most current aggregated statistics for NLB front end stats in a 1 hour sampling interval. This class updates every 15 minutes.
Type: regular
Class Id: 17901
Encrypted: False
Inheritance: -
File ".../venv-cobra5.2/lib/python3.6/site-packages/cobra/mit/mo.py", line 100, in getattr
return BaseMo.getattr(self, propName)
File ".../venv-cobra5.2/lib/python3.6/site-packages/cobra/internal/base/moimpl.py", line 379, in getattr
return self.__children._getChildContainer(attrName)
File ".../venv-cobra5.2/lib/python3.6/site-packages/cobra/internal/base/moimpl.py", line 244, in _getChildContainer
for childClass in self._classMeta.childClasses:
File ".../venv-cobra5.2/lib/python3.6/site-packages/cobra/mit/meta.py", line 211, in next
return self._container[nextClassName]
File ".../venv-cobra5.2/lib/python3.6/site-packages/cobra/mit/meta.py", line 229, in getitem
klass = ClassLoader.loadClass(className)
File ".../venv-cobra5.2/lib/python3.6/site-packages/cobra/mit/_loader.py", line 17, in loadClass
return getattr(module, className)
File ".../venv-cobra5.2/lib/python3.6/site-packages/cobra/model/init.py", line 29, in getattr
raise AttributeError("'module' object has no attribute '{0}'".format(className))
AttributeError: 'module' object has no attribute 'NLBStatsAg1h'
The text was updated successfully, but these errors were encountered:
Background:
Using The
MoDirectory
class, I am able to retrievefvTenant
Managed Objects from my Fabric.However attempting to access any child container of an
fvTenant
object created withMoDirectory.search_by_class()
orMoDirectory.lookupByDn()
triggers the following error:>>> aci._ACI_MO_DIR.lookupByDn('uni/tn-Tenant503')
>>> aci._ACI_MO_DIR.lookupByDn('uni/tn-Tenant503').BD
According to the APIC MIM Reference,
NLBStatsAg1h
is a valid ACI Class so Cobra should not be throwing errors while trying to deserialize it into a Python object.cloud:NLBStatsAg1h
General
Access
Full Traceback (most recent call last):
The text was updated successfully, but these errors were encountered: