Automation

last person joined: 4 days ago 

Ask questions and share experiences about Apstra, Paragon, and all things network automation.
  • 1.  Using PyEZ on Factory Default devices

    Posted 01-05-2016 08:35

    Hi
    Is there a way to configure SRX devices with Factory Default settings with PyEZ?

     

    Someone I know mentioned using serial to connect should be doable. However, I thought that I needed Netconf-ssh and an IP adress to be able to connect to devices. So I can't figure how to configure a device with Factory Default Settings through python

    Thanks
    Oscar



  • 2.  RE: Using PyEZ on Factory Default devices
    Best Answer

     
    Posted 01-06-2016 04:46

    Yes, there is a library for this specific scenario:

     

    https://github.com/Juniper/py-junos-netconify

     

    Regards,

    Andy



  • 3.  RE: Using PyEZ on Factory Default devices

    Posted 01-06-2016 13:04

    Thanks for answering Andrew.  You beat me to it.  Smiley Wink

     

    As for netconify, it is a separate package (and works with Ansible as well) as of now.  We are incorporating the features of it, and making it much more robust in PyEZ 2.0, which is still a few months out. 

    So, for now, please use the link that Andrew listed.



  • 4.  RE: Using PyEZ on Factory Default devices

    Posted 03-12-2016 15:17

    Once you install the library how do you use it. I try imprting it and that failed

     

    I get this error 

    opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'netconify': [Errno 2] No such file or directory

     

     

    Thank you

     

    Ed  



  • 5.  RE: Using PyEZ on Factory Default devices

    Posted 01-07-2016 00:38

    Thanks alot I will look into it in detail.

     

    I will keep an eye open for PyEZ 2.0 version as well since I might definetly need it later on.