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
I am trying to get a list of all contracts in ACI using lookupByClass('vzBrCP'), but I am getting the following error:
Traceback (most recent call last): File "./showcontract.py", line 61, in <module> main() File "./showcontract.py", line 58, in main searchContracts (moDir) File "./showcontract.py", line 40, in searchContracts mo = moDir.lookupByClass(moClass) File "/Library/Python/2.7/site-packages/acicobrasdk.egg/cobra/mit/access.py", line 82, in lookupByClass mos = self.query(classQuery) File "/Library/Python/2.7/site-packages/acicobrasdk.egg/cobra/mit/access.py", line 49, in query return self._accessImpl.get(queryObject) File "/Library/Python/2.7/site-packages/acicobrasdk.egg/cobra/internal/rest/accessimpl.py", line 159, in get return self.__parseResponse(rsp) File "/Library/Python/2.7/site-packages/acicobrasdk.egg/cobra/internal/rest/accessimpl.py", line 182, in __parseResponse return fromXMLStr(rsp.text) File "/Library/Python/2.7/site-packages/acicobrasdk.egg/cobra/internal/codec/xmlcodec.py", line 30, in fromXMLStr return _fromXMLRootNode(xmlRootNode) File "/Library/Python/2.7/site-packages/acicobrasdk.egg/cobra/internal/codec/xmlcodec.py", line 23, in _fromXMLRootNode mo = _createMo(moNode, None) File "/Library/Python/2.7/site-packages/acicobrasdk.egg/cobra/internal/codec/xmlcodec.py", line 60, in _createMo mo = pyClass(parentMoOrDn, *namingVals, markDirty=False, **moProps) File "/Library/Python/2.7/site-packages/acicobramodel.egg/cobra/model/vz.py", line 1423, in __init__ Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps) File "/Library/Python/2.7/site-packages/acicobrasdk.egg/cobra/mit/mo.py", line 15, in __init__ BaseMo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps) File "/Library/Python/2.7/site-packages/acicobrasdk.egg/cobra/internal/base/moimpl.py", line 226, in __init__ propMeta = props[name] File "/Library/Python/2.7/site-packages/acicobrasdk.egg/cobra/mit/meta.py", line 152, in __getitem__ return self._props[propName] KeyError: 'targetDscp'
Any hint?
Thanks!
Jose
The text was updated successfully, but these errors were encountered:
Hi there,
I am trying to get a list of all contracts in ACI using lookupByClass('vzBrCP'), but I am getting the following error:
Traceback (most recent call last): File "./showcontract.py", line 61, in <module> main() File "./showcontract.py", line 58, in main searchContracts (moDir) File "./showcontract.py", line 40, in searchContracts mo = moDir.lookupByClass(moClass) File "/Library/Python/2.7/site-packages/acicobrasdk.egg/cobra/mit/access.py", line 82, in lookupByClass mos = self.query(classQuery) File "/Library/Python/2.7/site-packages/acicobrasdk.egg/cobra/mit/access.py", line 49, in query return self._accessImpl.get(queryObject) File "/Library/Python/2.7/site-packages/acicobrasdk.egg/cobra/internal/rest/accessimpl.py", line 159, in get return self.__parseResponse(rsp) File "/Library/Python/2.7/site-packages/acicobrasdk.egg/cobra/internal/rest/accessimpl.py", line 182, in __parseResponse return fromXMLStr(rsp.text) File "/Library/Python/2.7/site-packages/acicobrasdk.egg/cobra/internal/codec/xmlcodec.py", line 30, in fromXMLStr return _fromXMLRootNode(xmlRootNode) File "/Library/Python/2.7/site-packages/acicobrasdk.egg/cobra/internal/codec/xmlcodec.py", line 23, in _fromXMLRootNode mo = _createMo(moNode, None) File "/Library/Python/2.7/site-packages/acicobrasdk.egg/cobra/internal/codec/xmlcodec.py", line 60, in _createMo mo = pyClass(parentMoOrDn, *namingVals, markDirty=False, **moProps) File "/Library/Python/2.7/site-packages/acicobramodel.egg/cobra/model/vz.py", line 1423, in __init__ Mo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps) File "/Library/Python/2.7/site-packages/acicobrasdk.egg/cobra/mit/mo.py", line 15, in __init__ BaseMo.__init__(self, parentMoOrDn, markDirty, *namingVals, **creationProps) File "/Library/Python/2.7/site-packages/acicobrasdk.egg/cobra/internal/base/moimpl.py", line 226, in __init__ propMeta = props[name] File "/Library/Python/2.7/site-packages/acicobrasdk.egg/cobra/mit/meta.py", line 152, in __getitem__ return self._props[propName] KeyError: 'targetDscp'
Any hint?
Thanks!
Jose
The text was updated successfully, but these errors were encountered: