Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with cobra.model.l3ext.Out #130

Open
warriorforGod opened this issue Feb 23, 2017 · 0 comments
Open

Problems with cobra.model.l3ext.Out #130

warriorforGod opened this issue Feb 23, 2017 · 0 comments

Comments

@warriorforGod
Copy link

Getting the following error when trying to run the below code. Any ideas? I am pretty new to python.

/usr/local/lib/python2.7/site-packages/requests-2.13.0-py2.7.egg/requests/packages/urllib3/connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
/usr/local/lib/python2.7/site-packages/requests-2.13.0-py2.7.egg/requests/packages/urllib3/connectionpool.py:852: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
Traceback (most recent call last):
File "l3out.py", line 50, in
l3extOut = cobra.model.l3ext.out(topMo, name='L3Out1', enforceRtctrl='import,export')
File "/automount/home/smadel/.local/lib/python2.7/site-packages/acimodel-2.0_2m-py2.7.egg/cobra/model/init.py", line 28, in getattr
raise AttributeError("'module' object has no attribute '{0}'".format(className))
AttributeError: 'module' object has no attribute 'out'

l3extOut = cobra.model.l3ext.Out(topMo, name='L3Out1', enforceRtctrl='import,export')
l3extRsL3DomAtt = cobra.model.l3ext.RsL3DomAtt(l3extOut, tDn='uni/l3dom-l3DomP')
l3extLNodeP = cobra.model.l3ext.LNodeP(l3extOut, name='LNodeP1')
l3extRsNodeL3OutAtt = cobra.model.l3ext.RsNodeL3OutAtt(l3extLNodeP, tDn='topology/pod-1/node-101', rtrId='1.2.3.4')
l3extLoopBackIfP = cobra.model.l3ext.LoopBackIfP(l3extRsNodeL3OutAtt, addr='1.10.11.1')
l3extLIfP = cobra.model.l3ext.LIfP(l3extLNodeP, name='IFP1')
l3extRsPathL3OutAtt = cobra.model.l3ext.RsPathL3OutAtt(l3extLIfP, ifInstT='l3-port', addr='1.11.12.10/24', tDn='topology/pod-1/paths-103/pathep-[eth1/17]')
l3extRsEctx = cobra.model.l3ext.RsEctx(l3extOut, tnFvCtxName='ActiveGuard-Prod')
l3extInstP = cobra.model.l3ext.InstP(l3extOut, name='InstP1')
l3extSubnet = cobra.model.l3ext.Subnet(l3extInstP, aggregate='', ip='192.168.1.0/24')

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

No branches or pull requests

1 participant