Automation

 View Only
last person joined: 7 days ago 

Ask questions and share experiences about Apstra, Paragon, and all things network automation.

If you have a question or a use case, likely there are others who are experiencing or worked through the same thing. Don't hesitate to jump in and ask or share your knowledge!

Need additional guidance?  Check out these Juniper Resources.

Ask AI Documentation Knowledge Base The Feed

Latest Discussion Posts

  • use --vault-password-file instead. https://docs.ansible.com/ansible/latest/vault_guide/vault_managing_passwords.html

  • Profile Picture

    RE: using pyez

    ey Yeah that cleaned it up for sure thanks ian ------------------------------ ROB MERRITT ------------------------------

  • Profile Picture

    RE: using pyez

    Have you tried using pretty print? from pprint import pprint pprint(version2) This would just be to get a nicer output. \r\n are still being printed. ------------------------------ IAN STOETTRUP ------------------------------

    1 person recommends this.
  • Hi everyone. If I have a variable file that is encrypted via Ansible Vault, I have to ask Ansible to prompt me to enter the Vault password while running the Ansible playbook as follows: ansible-playbook my_pb.yml --ask-vault-pass ...

  • Profile Picture

    RE: using pyez

    As the other comment suggests, using an RPC would be best practice rather than opening a shell to execute a cli command. The following code will perform the same task but leveraging an RPC and returning the output. from jnpr.junos import Device from ...

  • Profile Picture

    RE: using pyez

    It returns a tuple and you are just printing the tuple itself rather than the item in the tuple that contains the CLI output. So instead print the item in the tuple you want with: print(version2[1]) You also might need to set the screen length to 0 ...

  • Profile Picture

    using pyez

    Trying to susbstitute PyEz instead of Paramiko I have from jnpr.junos import Device from pprint import pprint from jnpr.junos.utils.start_shell import StartShell import sys , io , os dev ...

Unanswered Posts

Top Contributors in the Community