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

Admin implicit props cannot be modified, class=fvBD, prop=bcastP #8

Open
NathanDotTo opened this issue Sep 27, 2016 · 3 comments
Open

Comments

@NathanDotTo
Copy link

cisco@cisco:~/Downloads$ python arya_tenant_json_discovery.py
/home/cisco/.local/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:768: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
InsecureRequestWarning)


/home/cisco/.local/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:768: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
InsecureRequestWarning)
Traceback (most recent call last):
File "arya_tenant_json_discovery.py", line 53, in
md.commit(c)
File "/usr/local/lib/python2.7/dist-packages/acicobra-1.3_2i-py2.7.egg/cobra/mit/access.py", line 58, in commit
return self._accessImpl.post(configObject)
File "/usr/local/lib/python2.7/dist-packages/acicobra-1.3_2i-py2.7.egg/cobra/internal/rest/accessimpl.py", line 175, in post
return self.__parseError(rsp, CommitError, rsp.status_code)
File "/usr/local/lib/python2.7/dist-packages/acicobra-1.3_2i-py2.7.egg/cobra/internal/rest/accessimpl.py", line 181, in __parseError
parseXMLError(rsp.text, errorClass, httpCode)
File "/usr/local/lib/python2.7/dist-packages/acicobra-1.3_2i-py2.7.egg/cobra/mit/xmlcodec.py", line 15, in parseXMLError
raise errorClass(int(errorCode), errorStr, httpCode)
cobra.mit.request.CommitError: Admin implicit props cannot be modified, class=fvBD, prop=bcastP
cisco@cisco:~/Downloads$

@NathanDotTo
Copy link
Author

Code and JSON document attached.

Archive.zip

@lmalhoit
Copy link

lmalhoit commented Dec 7, 2016

Did you ever figure this out?

@glennake
Copy link

glennake commented Dec 7, 2016

Is this not expected behaviour?
You are trying to set the bcastP value of an fvBD (Bridge Domain) object, which is an implicit parameter.

This is the line below from your Python code:

fvBD = cobra.model.fv.BD(fvTenant, multiDstPktAct=u'bd-flood', seg=u'16252846', unicastRoute=u'yes', unkMcastAct=u'flood', descr=u'', llAddr=u'::', vmac=u'not-applicable', bcastP=u'225.1.94.192', mac=u'00:22:BD:F8:19:FF', epMoveDetectMode=u'', ownerTag=u'', ownerKey=u'', name=u'bd2', unkMacUcastAct=u'proxy', arpFlood=u'no', limitIpLearnToSubnets=u'no', mtu=u'inherit', pcTag=u'32770')

This is the Cisco APIC Model Reference definition for bcastP of fvBD:

bcastP

Type: mcast:Group
Primitive Type: address:IPv4

Units: null
Encrypted: false
Access: implicit
Category: TopLevelRegular
Comments:
Outer multicast group IP address.

As an implicit parameter it is inherited from another object, in this case fvL2Dom.

When I have created fvBD objects I did not provide a bcastP parameter and it allocated a multicast IP address from the pool configured on my APIC.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants