Jnpr.junos.op.bgp file location on Mac OSX 10.9.5

49 views
Skip to first unread message

Russell Kelly

unread,
Jul 4, 2016, 1:35:08 PM7/4/16
to Junos Python EZ
Hi Folks

I have the BGP yml and .py entries working just fine on my Ubuntu server - but I can't seem to locate the the same directory to add the required BGP files on my Mac.

I know I'll find it as soon as I post this - but I've had a hunt around and can't find it off hand.

I did find one op dir location, but after adding the files I still could not import with the commamd bgp from jnpr.junos.op.bgp import *

It complained the module didn't exist. BFD etc do.

Any hints on where this folder is?

Thanks
Russ

Stacy W. Smith

unread,
Jul 4, 2016, 1:45:19 PM7/4/16
to Russell Kelly, Junos Python EZ
On Jul 4, 2016, at 11:35 AM, Russell Kelly <russel...@gmail.com> wrote:
> Any hints on where this folder is?

Let Python tell you where it is:

import jnpr.junos.op
print jnpr.junos.op.__file__

--Stacy

Nitin Kumar

unread,
Jul 4, 2016, 1:45:35 PM7/4/16
to Russell Kelly, Junos Python EZ
Mac can have mutiple python installed locations.
TO check if you are copying to right path plz do

%python

>>> from jnpr.junos import op

>>> op

<module 'jnpr.junos.op' from '/yyyy/xxxx/lib/jnpr/junos/op/__init__.pyc'>

Make sure you copied your file to above-returned file path folder.



Nitin Kr


--
You received this message because you are subscribed to the Google Groups "Junos Python EZ" group.
To unsubscribe from this group and stop receiving emails from it, send an email to junos-python-...@googlegroups.com.
Visit this group at https://groups.google.com/group/junos-python-ez.
To view this discussion on the web visit https://groups.google.com/d/msgid/junos-python-ez/4d35f834-ad58-4e51-b078-e5ec0e85ef40%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Russell Kelly

unread,
Jul 4, 2016, 2:13:09 PM7/4/16
to Junos Python EZ
Thanks guys!! I was in the wrong folder  - should have stepped back and printed the location (.....need more coffee)  - cheers
Reply all
Reply to author
Forward
0 new messages