Hi Patrick,
Raise a bug on github. Will add this feature. For now you can this workarounds.
try:
restore_timeout = dev.timeout
dev.timeout = 1
op = cu.commit_check()
print(op)
finally:
dev.timeout = restore_timeout
Thanks
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/junos-python-ez/090e32cc-bff7-4dcb-b863-0aefef249c9c%40googlegroups.com.
Hi Patrick,
Raise a bug on github. Will add this feature. For now you can this workarounds.
try:
restore_timeout = dev.timeout
dev.timeout = 1
op = cu.commit_check()
print(op)
finally:
dev.timeout = restore_timeout
Thanks
Nitin Kr
From: <junos-p...@googlegroups.com> on behalf of Patrick Whitney <pwhi...@luminoso.com>
Date: Thursday, 24 October 2019 at 1:05 AM
To: Junos Python EZ <junos-p...@googlegroups.com>
Subject: RPC timeout when running commit_check()
Hello Everyone,
When running commit_check() (commit-configuration) it is giving me a jnpr.junos.exception.RpcTimeoutError because it is taking longer than the expected 30 seconds. When I run commit check from the command line, it takes over 30 seconds, so I'm not surprised we're getting the timeout.
I see that commit() takes a "timeout" argument, but commit_check() does not.
Any thoughts of how I can get around this timeout?
Best,
-Pat
--
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-p...@googlegroups.com.
Hi Zach,
We are yet the do the code changes.You can handle this in your code (as shown below).
If you share your code snippet, we can help.
Thanks
Nitin Kr
To unsubscribe from this group and stop receiving emails from it, send an email to
junos-python-...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/junos-python-ez/e02872f8-632c-4deb-b05a-96383b7e52e9%40googlegroups.com.
You are using Ansible. Can you run your playbook in debug mode and share logs.
To view this discussion on the web visit
https://groups.google.com/d/msgid/junos-python-ez/CAM1VdqNSD7e4yGYetJK01wDaUf8ZtcvmSOy6zxxdHeUoPFqY0g%40mail.gmail.com.
Hi,
This looks to be different issue. Which version of PyEZ you are running? Share the o/p for
pip list
Thanks
Nitin Kr
Hi Zach,
This docker image is using old PyEZ. We will get this updated ASAP.
If you are familiar with docker, can you update PyEZ.
pip install -U junos-eznc
Give us a day or so. Will get latest docker image up and running on the hub.
To unsubscribe from this group and stop receiving emails from it, send an email to junos-python-ez+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/junos-python-ez/e02872f8-632c-4deb-b05a-96383b7e52e9%40googlegroups.com.
--
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-ez+unsubscribe@googlegroups.com.
I have updated PyEZ image today. Will do pyez-ansible in a day or so
Thanks
Nitin Kr
From: <junos-p...@googlegroups.com> on behalf of Zach Wong <zaj...@gmail.com>
Date: Monday, 27 January 2020 at 4:09 AM
To: Junos Python EZ <junos-p...@googlegroups.com>
Subject: Re: RPC timeout when running commit_check()
Hi Nitin,
Do you when the new pyez will be updated to https://hub.docker.com/r/juniper/pyez-ansible/tags ?
Thanks,
To unsubscribe from this group and stop receiving emails from it, send an email to junos-python-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/junos-python-ez/e02872f8-632c-4deb-b05a-96383b7e52e9%40googlegroups.com.
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/junos-python-ez/CAM1VdqNSD7e4yGYetJK01wDaUf8ZtcvmSOy6zxxdHeUoPFqY0g%40mail.gmail.com.
--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/junos-python-ez/bb6a74a8-4e8e-43ef-8014-97eb4975b4e6%40googlegroups.com.
Hi Zach,
Ansible image is also up for both latest and 2.3.0 tag
https://hub.docker.com/r/juniper/pyez-ansible/tags
Thanks
Nitin Kr
To view this discussion on the web visit https://groups.google.com/d/msgid/junos-python-ez/e02872f8-632c-4deb-b05a-96383b7e52e9%40googlegroups.com.
--
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-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/junos-python-ez/CAM1VdqNSD7e4yGYetJK01wDaUf8ZtcvmSOy6zxxdHeUoPFqY0g%40mail.gmail.com.
--
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-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/junos-python-ez/bb6a74a8-4e8e-43ef-8014-97eb4975b4e6%40googlegroups.com.
Juniper Business Use Only