Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!-- Ensure that your PR has a descriptive title and that you are marked as the assignee -->

## Type of Change
- [ ] New feature
- [ ] Bug fix
- [ ] Documentation update
- [ ] Refactoring
- [ ] Hotfix
- [ ] Security patch
- [ ] UI/UX improvement
- [ ] Version Bump

## Closes
<!-- Section is optional -->
<!-- Make sure closes are specified in a form GitHub recognises to auto-close issues -->
Closes X

## Depends On
<!-- Section is optional -->
Depends on X

## Description
<!-- Detailed explanation of the changes made. Include the reasons behind these changes and any relevant context. Link any related issues. -->

## Testing
<!-- Detail the testing you have performed to ensure that these changes function as intended. Include information about any added tests. -->

## Impact
<!-- Section is optional -->
<!-- Discuss the impact of your changes on the project. This might include effects on performance, new dependencies, or changes in behaviour. -->

## Additional Information
<!-- Section is optional -->
<!-- Any additional information that reviewers should be aware of.) -->

## Effort required on reviewer's end
- [ ] Easy
- [ ] Medium
- [ ] Hard

## Checklist
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
32 changes: 32 additions & 0 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Run Unit-tests

on: push

jobs:
run_unit_test:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f dev-requirements.txt ]; then pip install -r dev-requirements.txt; fi
- name: Lint with pylinit
continue-on-error: true
run: |
make pylint
- name: Run unit tests
if: success() || failure()
run: |
make unittest
make coverage_report
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,22 @@ API calls directly if they want to avoid the potential time delay of
some API functions. The current API version information handled by
cvprac is shown below.

- Current latest API version is 4.0 API version is set to latest
- available version for CVaaS API version is set to 4.0 for 2020.1.1 and
- Current latest API version is 17.0 API version is set to latest (2025.3.X+)
- available version for CVaaS API version is set to 17.0 for 2025.3.X and
- beyond. API version is set to 3.0 for 2019.0.0 through 2020.1.0 API
- version is set to 2.0 for 2018.2.X API version is set to 1.0 for
- 2018.1.X and prior

#### CVP 2025.2.X+

As of CVP 2025.2.0 and beyond the network provisioning service is disabled by default for new
installations of CVP. If you have upgraded to CVP 2025.2.X+ from a previous version then the
network provisioning service should be running as usual.

If you have done a fresh install of CVP 2025.2.X+ and you want to continue to use provisioning APIs
you will have to enable and start the networkprovisioning service. Please contact TAC for
information on enabling networkprovisioning in CVP 2025.2.X+.

### Examples

Example using CVP On Prem client get method directly:
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.4.1
1.4.2
2 changes: 1 addition & 1 deletion cvprac/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
''' RESTful API Client class for Cloudvision(R) Portal
'''

__version__ = '1.4.1'
__version__ = '1.4.2'
__author__ = 'Arista Networks, Inc.'
Loading
Loading