py-junos-eznc
py-junos-eznc copied to clipboard
Python library for Junos automation
I've authored a web service that is deployed via k8s to attain various information about our Juniper stack and often get this error ``` File "/opt/venv/lib/python3.9/site-packages/jnpr/junos/device.py", line 1362, in open...
This simple script will results in thread leak in junos device. ``` from jnpr.junos import Device import time def get_server_detail(): dev = Device(gather_facts=False) dev.open() dev.display_xml_rpc('show version', format='text') dev.close() while True:...
I am able to connect to a switch with no password through serial mode without any error. But after setting password to the switch when I try to connect through...
Hello, We are trying to use junos-eznc 2.6.6 to upgrade a fleet of EX4300s but we are encountering the following traceback: Traceback (most recent call last): File "/home/user/.cache/pypoetry/virtualenvs/upgrade-legacy-gUjTTpEG-py3.9/lib/python3.9/site-packages/nornir/core/task.py", line 99,...
When using Python3.11 I get the following error. This appears to be related to deprecation work done in the built in inspection module. I am using Ansible to install Junos...
When I enter a wrong password then again create a device and connect, I get an error saying `serial.serialutil.SerialException: could not open port 'COM3': PermissionError(13, 'Access is denied.', None, 5)`....
``` import yamlordereddictloader from jnpr.junos.factory import loadyaml import yaml from pprint import pprint from jnpr.junos import Device import json import yamlordereddictloader from jnpr.junos.factory.factory_loader import FactoryLoader yaml_data = """ --- EgressCrcErrorsTable:...
When trying to query subscribers using tables and view, no data is returned. The script below gives the following output:- ``` There are 4 subscribers using dev.rpc.get_subscribers() There are 0...
Hi, I am trying to use EthernetSwitchingTable op on EX3300 and EX2200 switches and always returns 0 items. On switches like EX2300 i use ElsEthernetSwitchingTable and they work normally and...
Every switch we have attempted to use the SystemStorageTable to interrogate has returned an empty table. This appears to be because the YAML (https://github.com/Juniper/py-junos-eznc/tree/master/lib/jnpr/junos/op/systemstorage.yml) does not take into account that...