Skip to content

Commit

Permalink
Merge branch 'Juniper:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
apurvaraghu authored Jan 18, 2024
2 parents b27f52e + 422ca38 commit c75e492
Show file tree
Hide file tree
Showing 105 changed files with 1,856 additions and 959 deletions.
52 changes: 26 additions & 26 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,33 @@ jobs:

strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: [3.7, 3.8]
os: [ ubuntu-latest, windows-latest ]
python-version: [ 3.9, '3.10', 3.11, 3.12 ]
exclude:
- os: windows-latest
python-version: 3.8
python-version: 3.9

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
pip install -r requirements.txt
pip install -r development.txt
pip install ntc_templates==1.4.1
pip install textfsm==0.4.1
pip install .
- name: Run black tool
run: |
pip install -U black;
black --check --exclude=docs/* .
- name: Run unit tests
run: |
nosetests -v --with-coverage --cover-package=jnpr.junos --cover-inclusive -a unit
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
pip install -r requirements.txt
pip install -r development.txt
pip install ntc_templates==1.4.1
pip install textfsm==0.4.1
pip install .
- name: Run black tool
run: |
pip install -U black;
black --check --diff --exclude="docs|build|tests|samples" .
- name: Run unit tests
run: |
nose2 --with-coverage -vvv tests.unit
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ develop-eggs
.installed.cfg
lib64
env
.venv

# Documentation
docs/_build
Expand All @@ -42,6 +43,8 @@ MANIFEST

# Testing
.tox
foo_*
testfile

# Vagrant
.vagrant
Expand Down
40 changes: 0 additions & 40 deletions .travis.yml

This file was deleted.

40 changes: 40 additions & 0 deletions INSTALL-RHEL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
### Installation on RHEL

The following are instructions for setting up a system starting from a stock system images.

These instructions were tested on a 64-bit systems from https://github.com/opscode/bento, and using the _Junos PyEZ_ library version 2.6.4.

Operating Systems
---------------
- Red hat Enterprise Linux 8.1 (Ootpa)

#### Step 1: Install Python and PIP

##### For Python 3.x:
dnf install python3-pip python3-wheel

#### Step 2: Install Junos PyEZ

##### For Python 3.x:
sudo pip3 install junos-eznc

#### Step 3: Verify

Once you've completed the above step, you should be able to create a `Device` instance, connect to a Junos system, and display the "facts", as illustrated in the README.md file.

Enjoy!

#### Installing from GitHub

Development code can be installed directly from GitHub based on any branch, commit, or tag.

***Step 1 and 3 still required.***
#### Alternate Step 4: Install Junos PyEZ from GitHub

#### Step 4a: Install Git from OS packages
pip3 install git

#### Step 4b: Install Junos PyEZ from GitHub

##### For Python 3.x:
pip3 install git+https://github.com/Juniper/py-junos-eznc.git
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ _Junos PyEZ_ is designed to provide the same capabilities as a user would have o

## PIP

Installation requires Python >=3.5 and associated `pip` tool
Installation requires Python >=3.8 and associated `pip` tool

pip install junos-eznc

Expand Down
48 changes: 48 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,51 @@
## Release 2.7.1.dev0 - 12 JAN 2024
## Features Added

## Bugs Fixed

## Release 2.7.0 - 12 JAN 2024
## Features Added
- Support added for Python 3.10 and above version

## Release 2.6.8 - 3 OCT 2023
## Features Added
- Introduced optional argument routing instance for fs.cp() API
- Intoduced optional argument member_id for installation of pkg on specific member id of EX-VC
## Bugs fixed
- Changed the VlanTable field name to vlan-name and BfdSessionTable field name to client-bame #423
- Fixed the port details in StartShell to use the port from Device object instead of default Port 22 #573
- Fixed the sw.install to use Windows file path for package copy #1206
- Fixed the sw.install to install the vc_master after the other vc_members gets installed for EX-3400 where unlink is set by default #1247
- Removed Unused Dependency: Netaddr #1257
- Fixed "object": version_info(re_version) emits ValueError: invalid literal for int() with base 10: '17-EVO' for EVO version X50.17-EVO#1264

## Release 2.6.6 - 9 DEC 2022
## Bugs fixed
- Fixed reboot failing on other RE #1199
- Fixed passing 'sleep' arg to StartShell run() #1202
- Fixed PyEZ get-facts support for ACX model #1209
- Fixed EthPortTable regex pattern #1215
- Fixed StartShell UnboundLocalError #1203 #1211
-
## Release 2.6.5 - 29 JULY 2022
## Features Added
- Supported multi-gig ports for EthPortTable.yml #1177

## Bugs fixed
- Fixed on-box support for start shell types #1190 #1186
- Fixed conn_open_timeout value was getting set to None , changed to default 30 seconds #1184


## Release 2.6.4 - 9 JUNE 2022
### Features Added
- Supported start_shell options to choose the shell types (sh or csh) #995
- Supported for python 3.9
### Bugs fixed:
- Fixed Device facts current_re returns the SRX cluster node0 and node1 details with cluster ID 16 #1135
- Fixed upgrade ncclient version 0.6.13, updated requirements.txt to install ncclient==0.6.13 #1153
- Fixed deprecation warning due to invalid escape sequences #1034
- Fixed Unit tests test_sw_put_ftp failure #1165

## Release 2.4.2.dev0 - 29 APRIL 2020
## Features Added

Expand Down
2 changes: 1 addition & 1 deletion development.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

coverage # http://nedbatchelder.com/code/coverage/
mock # http://www.voidspace.org.uk/python/mock/
nose # http://nose.readthedocs.org/en/latest/
nose2 # https://docs.nose2.io/en/latest/
pep8 # https://github.com/jcrocholl/pep8
pyflakes # https://launchpad.net/pyflakes
coveralls # https://coveralls.io/
Expand Down
Loading

0 comments on commit c75e492

Please sign in to comment.