Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.5.0 release #322

Merged
merged 37 commits into from
Jul 24, 2023
Merged

1.5.0 release #322

merged 37 commits into from
Jul 24, 2023

Conversation

itdependsnetworks
Copy link
Contributor

No description provided.

itdependsnetworks and others added 30 commits February 16, 2023 16:12
Co-authored-by: Adam Byczkowski <adam.byczkowski@kochgs.com>
{
  "date": "2023-02-28T17:20:54.153Z",
  "files": [
    {
      "name": "netutils/data_files/protocol_mappings.py",
      "deltaBytes": 122,
      "source": "https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.csv"
    }
  ]
}

Co-authored-by: flat-data <flat-data@users.noreply.github.com>
{
  "date": "2023-02-28T17:16:15.324Z",
  "files": [
    {
      "name": "netutils/data_files/oui_mappings.py",
      "deltaBytes": 3762,
      "source": "https://standards-oui.ieee.org"
    }
  ]
}

Co-authored-by: flat-data <flat-data@users.noreply.github.com>
* Create dependabot.yml

fixes #212

* Update dependabot.yml
{
  "date": "2023-03-17T17:12:07.070Z",
  "files": [
    {
      "name": "netutils/data_files/protocol_mappings.py",
      "deltaBytes": 68,
      "source": "https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.csv"
    }
  ]
}

Co-authored-by: flat-data <flat-data@users.noreply.github.com>
{
  "date": "2023-03-17T17:11:02.437Z",
  "files": [
    {
      "name": "netutils/data_files/oui_mappings.py",
      "deltaBytes": 5519,
      "source": "https://standards-oui.ieee.org"
    }
  ]
}

Co-authored-by: flat-data <flat-data@users.noreply.github.com>
* Interface abbreviation for TwoGigabitEthernet
Fixes #221

* Added tests for TwoGigabitEthernet

* Fixed linting
…ames used by hier_config (#245)

* Added new lib mapper for hier_config to translate between the verbiage used in hier_config and that in other network automation utilities.

* Created a new helper function to return the proper upgrade path for PANOS firewall firmware updates.

* Revert "Created a new helper function to return the proper upgrade path for PANOS firewall firmware updates."

This reverts commit e9c3639.
{
  "date": "2023-03-23T08:02:56.545Z",
  "files": [
    {
      "name": "netutils/data_files/oui_mappings.py",
      "deltaBytes": 1260,
      "source": "https://standards-oui.ieee.org"
    }
  ]
}

Co-authored-by: flat-data <flat-data@users.noreply.github.com>
{
  "date": "2023-04-06T08:03:03.590Z",
  "files": [
    {
      "name": "netutils/data_files/oui_mappings.py",
      "deltaBytes": 2914,
      "source": "https://standards-oui.ieee.org"
    }
  ]
}

Co-authored-by: flat-data <flat-data@users.noreply.github.com>
* add missing dev dependency 'pytest-cov'

pytest option '--no-cov' causes pytest to crash if pytest-cov plugin not installed

add 'cryptography' to optional dependencies

cisco type 9 passwords use the scrypt key derivation function, as implemented in the cryptography package

implement `encrypt_type9` function

add test for `encrypt_type9` function

add `encrypt_type9` to jinja filters mapping

run `development_scripts.py` to update docs

improve encrypt_type9 salt generator

salt generator using base85 may produce salt which includes '$'.

The `get_hash_salt` function will not be able to reliably extract the salt from any hash produced using this generator

switches to a `secrets`-based salt generator

implement `compare_type9` function

add tests for `compare_type9` function

update jinja filter mapping and docs

replace scrypt KDF implementation

remove dependence on `cryptography` package

simplify salt generator

update test data

update test suite with input/output derived from real switch config

add cryptography as an optional dependency

make scrypt implementation compatible with more python versions

clean up base64 encoding scheme in `encrypt_type9`

lint `password.py`

* Removed dependency on external library

* Reverted pyproject.toml

* Removed optional code

---------

Co-authored-by: Alex Tremblay <alex.tremblay@utoronto.ca>
Co-authored-by: Andrew Bates <andrew.bates@sap.com>
* Created a new helper function to return the proper upgrade path for PANOS firewall firmware updates.

* Updated get_panos_upgrade_path to be a generic function that returns the upgrade path from any list of firmware versions passed to the function as a list. The PANOS upgrade path lists have moved out of the function to become constants in the module.

* Updated the constant variables containing the PANOS upgrade paths to be part of a dict, to make future expansion easier.

* Move get_upgrade_path to os_version

---------

Co-authored-by: Boabdil Perez <37556004+boabdilperez@users.noreply.github.com>
…ds (#227)

* Add functions for encrypting and decrypting junipter $9$ type passwords

* Update variable name to pass pylint tests
{
  "date": "2023-04-27T19:15:52.936Z",
  "files": [
    {
      "name": "netutils/data_files/oui_mappings.py",
      "deltaBytes": 4586,
      "source": "https://standards-oui.ieee.org"
    }
  ]
}

Co-authored-by: flat-data <flat-data@users.noreply.github.com>
* Starting adding routeros

* Basic RouterOS Parser capabilities

* Mappers

* feedback: Parsing tests for system note

* if it looks like a duck, banners like a banner, then..

* banner_end satisfied, but rely on is_banner_end
{
  "date": "2023-05-04T08:03:05.309Z",
  "files": [
    {
      "name": "netutils/data_files/oui_mappings.py",
      "deltaBytes": 1530,
      "source": "https://standards-oui.ieee.org"
    }
  ]
}

Co-authored-by: flat-data <flat-data@users.noreply.github.com>
{
  "date": "2023-05-25T08:03:20.565Z",
  "files": [
    {
      "name": "netutils/data_files/oui_mappings.py",
      "deltaBytes": 2993,
      "source": "https://standards-oui.ieee.org"
    }
  ]
}

Co-authored-by: flat-data <flat-data@users.noreply.github.com>
* Add -f to flatbot branch pushes

* Added spaces to workflow files
…Assign new name to old name to not break semver. (#286)
* feat: ✨ start building palo parser

* fix: 🐛 everything but the banner

* fix: 🐛 adjust for banner

* fix: 🔥 delete unneeded file

* fix: 🐛 spelling

* chore: 🚨 fix black

* fix: 🐛 spelling

* fix: 🐛 update base configs

* chore: ⬆️ update poetry dependencies

* feat: ✨ add parsing for palo alto devices

* chore: ✅ update fixtures

* chore: 🎨 fix black

* fix: 🐛 remove commented lines

* feat: ✨ add palo alto networks

* fix: 🐛 adjust checking logic

* fix: 🐛 only process if generator is not empty

* fix: 🐛 fix conversion logic

* fix: 🐛 adjust for other content field

* test: ✅ add test features

* fix: 🐛 update jinja mapping

* chore: 🚨 fix black

* chore: ✅ add more tests

* fix: 🐛 remote unnecessary import

* fix: 🐛 add type

* fix: 🐛 add type

* fix: 🐛 change type

* fix: 🐛 update types

* fix: 🐛 yet another typing fix

* fix: 🐛 fix spelling

* fix: 🐛 fix BaseSpaceConfigParser example

* fix: 🐛 fix examples and passing tests

* fix: 🐛 fix docs build test

* fix: 🐛 remove extra stuff

* fix: 🐛 adjust banner handling

* fix: 🐛 fix banner handling

* test: ✅ add tests for palo config converter

* fix: 🐛 small tweaks

* fix: 🐛 fix pylint errors and parser tests

* chore: ⬆️ poetry update

* fix: 🐛 remove unneeded versions

* fix: 🐛 update banner handling

* Update netutils/config/conversion.py

Co-authored-by: Jeff Kala <48843785+jeffkala@users.noreply.github.com>

* Update netutils/config/conversion.py

Co-authored-by: Adam Byczkowski <38091261+qduk@users.noreply.github.com>

* Update netutils/config/parser.py

Co-authored-by: Jeff Kala <48843785+jeffkala@users.noreply.github.com>

* fix: 🐛 fix conversion mapping and testing

* refactor: ♻️ refactor config conversion

* refactor: ♻️ refactor to resolve cyclic import - move function to utils module

* fix: ✅ fix pylint errors

* fix: ✅ more linter errors

* fix: 🐛 fix example for conversion

* fix: 🐛 regenerate poetry.lock

* fix: 🐛 revert poetry update

---------

Co-authored-by: Jeff Kala <48843785+jeffkala@users.noreply.github.com>
Co-authored-by: Adam Byczkowski <38091261+qduk@users.noreply.github.com>
* modified:   netutils/lib_mapper.py

* Update hierconfig.md

* Update hierconfig_reverse.md

* Update lib_mapper.py

* Update lib_mapper.py

* modified:   docs/user/lib_mapper/hierconfig.md
	modified:   docs/user/lib_mapper/hierconfig_reverse.md
{
  "date": "2023-06-29T08:06:17.079Z",
  "files": [
    {
      "name": "netutils/data_files/protocol_mappings.py",
      "deltaBytes": 65,
      "source": "https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.csv"
    }
  ]
}

Co-authored-by: flat-data <flat-data@users.noreply.github.com>
{
  "date": "2023-06-29T08:03:20.700Z",
  "files": [
    {
      "name": "netutils/data_files/oui_mappings.py",
      "deltaBytes": 5848,
      "source": "https://standards-oui.ieee.org"
    }
  ]
}

Co-authored-by: flat-data <flat-data@users.noreply.github.com>
* added Ruckus FastIron parser

* linting fixes

* banner edits

* modified:   netutils/config/parser.py

* modified:   netutils/config/parser.py

* modified:   netutils/config/parser.py

* modified:   netutils/config/parser.py

* modified:   netutils/config/parser.py

* modified:   netutils/config/parser.py

* modified:   netutils/config/parser.py

* modified:   netutils/config/parser.py

* modified:   netutils/config/parser.py

* modified:   netutils/config/parser.py

* modified:   netutils/config/parser.py

* modified:   netutils/config/parser.py

* modified:   netutils/config/parser.py

* modified:   netutils/config/parser.py

* modified:   netutils/config/parser.py
	new file:   tests/unit/mock/config/compliance/compliance/ruckus_fastiron/fastiron_basic_backup.txt
	new file:   tests/unit/mock/config/compliance/compliance/ruckus_fastiron/fastiron_basic_feature.py
	new file:   tests/unit/mock/config/compliance/compliance/ruckus_fastiron/fastiron_basic_intended.txt
	new file:   tests/unit/mock/config/compliance/compliance/ruckus_fastiron/fastiron_basic_received.json

* new file:   tests/unit/mock/config/parser/base/ruckus_fastiron/fastiron_full_received.py
	new file:   tests/unit/mock/config/parser/base/ruckus_fastiron/fastiron_full_sent.txt

* modified:   tests/unit/mock/config/compliance/compliance/ruckus_fastiron/fastiron_basic_backup.txt
	modified:   tests/unit/mock/config/compliance/compliance/ruckus_fastiron/fastiron_basic_intended.txt
	modified:   tests/unit/mock/config/compliance/compliance/ruckus_fastiron/fastiron_basic_received.json

* modified:   netutils/config/parser.py
	modified:   tests/unit/mock/config/compliance/compliance/ruckus_fastiron/fastiron_basic_backup.txt
	modified:   tests/unit/mock/config/compliance/compliance/ruckus_fastiron/fastiron_basic_intended.txt
	modified:   tests/unit/mock/config/compliance/compliance/ruckus_fastiron/fastiron_basic_received.json

* modified:   docs/dev/include_parser_list.md

* black formatting to test files

* mypy linter fixes

* added multi level nesting test

* linting tests/unit/mock/config/parser/base/ruckus_fastiron/fastiron_full_received.py

* edit fFastiron parser to inherit from CiscoParser

* Revert "edit fFastiron parser to inherit from CiscoParser"

This reverts commit a980bb7.

	modified:   netutils/config/parser.py
	modified:   tests/unit/mock/config/parser/base/ruckus_fastiron/fastiron_full_received.py

* changes in parser and tests, fixed regression

* lint: black parser.py

* modified:   netutils/config/parser.py

* modified:   docs/dev/include_parser_list.md
{
  "date": "2023-07-06T08:06:19.475Z",
  "files": [
    {
      "name": "netutils/data_files/protocol_mappings.py",
      "deltaBytes": 67,
      "source": "https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.csv"
    }
  ]
}

Co-authored-by: flat-data <flat-data@users.noreply.github.com>
github-actions bot and others added 7 commits July 6, 2023 14:03
{
  "date": "2023-07-06T08:03:10.373Z",
  "files": [
    {
      "name": "netutils/data_files/oui_mappings.py",
      "deltaBytes": 1429,
      "source": "https://standards-oui.ieee.org"
    }
  ]
}

Co-authored-by: flat-data <flat-data@users.noreply.github.com>
{
  "date": "2023-07-20T08:03:00.240Z",
  "files": [
    {
      "name": "netutils/data_files/oui_mappings.py",
      "deltaBytes": 3766,
      "source": "https://standards-oui.ieee.org"
    }
  ]
}

Co-authored-by: flat-data <flat-data@users.noreply.github.com>
* Drop support for python 3.7

* Bumped invoke for python 3.11

* Changed pylint to use version 3.10

* pylint ignore

* More 3.7 fixes

* linted

* Updated per Jeffs review

* pylinted

* linted

* flaked

* Fixes

* Make all Python references point to 3.11 by default, fix citrix tests, bump lock file, remove selective files from black

---------

Co-authored-by: Adam Byczkowski <adam.byczkowski@kochgs.com>
Co-authored-by: Adam Byczkowski <38091261+qduk@users.noreply.github.com>
* fix: 🐛 strip 'devices localhost.localdomain' from set config

* style: 🚨 fix black errors

* style: 🚨 fix pylint errors

* Update docs for how paloalto_panos_brace_to_set is used.

---------

Co-authored-by: itdependsnetworks <ken@celenza.org>
* Closes #288 - added hostname_regex function and jinja filter

* Add filters for regex_findall, regex_match, regex_search, regex_split, regex_sub

* doc updates

---------

Co-authored-by: John Anderson <andersonjd@Johns-Mac-Studio.local>
* Prep for a 1.5.0 release

* Update docs/admin/release_notes/version_1.5.md

Co-authored-by: Leo Kirchner <Kircheneer@users.noreply.github.com>

* Add regex info

---------

Co-authored-by: Leo Kirchner <Kircheneer@users.noreply.github.com>
@itdependsnetworks itdependsnetworks merged commit 1e7355b into main Jul 24, 2023
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants