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
Hi team,
when i access this rest api:node/mo/uni/phys-Bare-Domain-Chenzli.json?rsp-subtree-include=full-deployment&target-path=ADomPToEthIf
as you see, i must use DeploymentQuery to query it, becasue rsp-subtree-include=full-deployment
the codes:
polUni = cobra.model.pol.Uni('')
physDomP = cobra.model.phys.DomP(polUni, name=self.kwargs['phys_domain'])
but when i put /uni/phys-Bare-Domain-Chenzli DN in DelpoymentQuery.
it still return /uni/phys-Bare-Domain-Chenzli DN
so i cannot get any results , but the request rest api is ok.
i guess this Query is special, right?
i hope you can help me , i'm also cisco employee, thanks.
my ccid: shoujche
The text was updated successfully, but these errors were encountered:
Not sure if you still need help since was 1y ago but I got this working today in my lab with this code:
print 'Getting all Phys Dom'
q1 = cobra.mit.request.ClassQuery('physDomP')
pDomains = md.query(q1)
#Get the deployment Status for the Physical Domains:
for pDom in pDomains:
print(pDom.dn)
#Retruns a PhysDom Deployment object with, as children, the leaves associated to it
q2 = cobra.mit.request.DeploymentQuery(pDom.dn)
depStatus = md.query(q2)
for deployedPhysDom in depStatus:
for node in deployedPhysDom.children:
print(node.nodeId)
Hi team,
when i access this rest api:node/mo/uni/phys-Bare-Domain-Chenzli.json?rsp-subtree-include=full-deployment&target-path=ADomPToEthIf
as you see, i must use DeploymentQuery to query it, becasue rsp-subtree-include=full-deployment
the codes:
polUni = cobra.model.pol.Uni('')
physDomP = cobra.model.phys.DomP(polUni, name=self.kwargs['phys_domain'])
but when i put /uni/phys-Bare-Domain-Chenzli DN in DelpoymentQuery.
it still return /uni/phys-Bare-Domain-Chenzli DN
so i cannot get any results , but the request rest api is ok.
i guess this Query is special, right?
i hope you can help me , i'm also cisco employee, thanks.
my ccid: shoujche
The text was updated successfully, but these errors were encountered: