Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
cd7d728
Add mkdocs link to 1.5 release notes (#323)
itdependsnetworks Jul 25, 2023
0b01fcf
Add classy docs to view config parser classes (#325)
itdependsnetworks Aug 4, 2023
e0be339
Add int_to_asn function (#332)
itdependsnetworks Aug 4, 2023
9e53957
Update pin for mkdocs classy (#333)
itdependsnetworks Aug 4, 2023
137ffbe
Doc test (#334)
itdependsnetworks Aug 5, 2023
5be374d
Flat: latest data (2023-08-10T08:03:23.368Z) (#337)
github-actions[bot] Aug 11, 2023
22df4a6
Flat: latest data (2023-08-10T08:05:51.145Z) (#338)
github-actions[bot] Aug 11, 2023
b4227a2
Update spelling (#341)
itdependsnetworks Aug 11, 2023
a98264e
Correct Netscaler parser slug (#340)
jdrew82 Aug 14, 2023
15df1cc
Acl check (#290)
itdependsnetworks Aug 18, 2023
227d2a2
Pin mkdocstrings-python to 1.4.0 to have compatibility with griffe 0.…
itdependsnetworks Aug 19, 2023
565e2ba
Update library mappings to be correct order (#350)
itdependsnetworks Aug 24, 2023
1bed7bc
Fix for ASN functions (#339)
mzbroch Aug 29, 2023
aa2b9aa
Update docs dependencies (#356)
itdependsnetworks Aug 29, 2023
7b9e159
Flat: latest data (2023-08-31T08:03:18.660Z) (#357)
github-actions[bot] Aug 31, 2023
48c597c
Ubiquiti airFiber Parser (#329)
gt732 Sep 7, 2023
a276df8
minor spelling issue (#365)
itdependsnetworks Sep 8, 2023
77b3ae2
Fix issue where interface abbreviation not working and update mac doc…
itdependsnetworks Sep 8, 2023
42ad81d
Add netutils parse to lib mapper, alpha sort lib mapper, and clean up…
itdependsnetworks Sep 8, 2023
835d8d3
Changed flatbot schedule (#358)
qduk Sep 8, 2023
93597ec
Prep for a 1.6.0 release (#367)
itdependsnetworks Sep 8, 2023
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
2 changes: 1 addition & 1 deletion .bandit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
exclude_dirs:
- "./tests/"
- "./docs/"
- "netutils/oui_mappings.py"
- "netutils/data_files/"
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,10 @@ jobs:
run: "docker image ls"
- name: "Run Tests"
run: "poetry run invoke pytest"
- name: "Install Napalm"
run: "pip install napalm"
- name: "Install Optional Dependencies"
run: "poetry run poetry install --extras optionals"
- name: "Run Optional Tests"
run: "poetry run pytest tests/unit/test_lib_helpers_optionals.py"
run: "poetry run pytest tests/unit/test_lib_helpers_optionals.py tests/unit/test_acl.py"
needs:
- "pylint"
publish_gh:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/oui_filepull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: "OUI-Updates"

on: # yamllint disable-line rule:truthy
schedule:
- cron: "0 8 * * 4"
- cron: "0 2 1 * *"

jobs:
data_gathering:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/proto_filepull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: "Protocol-Updates"

on: # yamllint disable-line rule:truthy
schedule:
- cron: "0 8 * * 4"
- cron: "0 2 1 * *"

jobs:
data_gathering:
Expand Down
2 changes: 2 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ mkdocs:
python:
install:
- requirements: "docs/requirements.txt"
- method: "pip"
path: "."
96 changes: 60 additions & 36 deletions development_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,89 +35,113 @@
MAPPER = {
"LIB_MAPPER_TEMPLATE": {
"ansible": {
"header_src": "NORMALIZED",
"header_dst": "ANSIBLE",
"header_src": "ANSIBLE",
"header_dst": "NORMALIZED",
"_dict": lib_mapper.ANSIBLE_LIB_MAPPER,
"_file": "docs/user/lib_mapper/ansible.md",
},
"ansible_reverse": {
"header_src": "ANSIBLE",
"header_dst": "NORMALIZED",
"header_src": "NORMALIZED",
"header_dst": "ANSIBLE",
"_dict": lib_mapper.ANSIBLE_LIB_MAPPER_REVERSE,
"_file": "docs/user/lib_mapper/ansible_reverse.md",
},
"napalm": {
"hierconfig": {
"header_src": "HIERCONFIG",
"header_dst": "NORMALIZED",
"_dict": lib_mapper.HIERCONFIG_LIB_MAPPER,
"_file": "docs/user/lib_mapper/hierconfig.md",
},
"hierconfig_reverse": {
"header_src": "NORMALIZED",
"header_dst": "NAPALM",
"header_dst": "HIERCONFIG",
"_dict": lib_mapper.HIERCONFIG_LIB_MAPPER_REVERSE,
"_file": "docs/user/lib_mapper/hierconfig_reverse.md",
},
"napalm": {
"header_src": "NAPALM",
"header_dst": "NORMALIZED",
"_dict": lib_mapper.NAPALM_LIB_MAPPER,
"_file": "docs/user/lib_mapper/napalm.md",
},
"napalm_reverse": {
"header_src": "NAPALM",
"header_dst": "NORMALIZED",
"header_src": "NORMALIZED",
"header_dst": "NAPALM",
"_dict": lib_mapper.NAPALM_LIB_MAPPER_REVERSE,
"_file": "docs/user/lib_mapper/napalm_reverse.md",
},
"ntctemplates": {
"netmiko": {
"header_src": "NETMIKO",
"header_dst": "NORMALIZED",
"_dict": lib_mapper.NETMIKO_LIB_MAPPER,
"_file": "docs/user/lib_mapper/netmiko.md",
},
"netmiko_reverse": {
"header_src": "NORMALIZED",
"header_dst": "NTCTEMPLATES",
"header_dst": "NETMIKO",
"_dict": lib_mapper.NETMIKO_LIB_MAPPER_REVERSE,
"_file": "docs/user/lib_mapper/netmiko_reverse.md",
},
"netutilsparser": {
"header_src": "NETUTILSPARSER",
"header_dst": "NORMALIZED",
"_dict": lib_mapper.NETUTILSPARSER_LIB_MAPPER,
"_file": "docs/user/lib_mapper/netutilsparser.md",
},
"netutilsparser_reverse": {
"header_src": "NORMALIZED",
"header_dst": "NETUTILSPARSER",
"_dict": lib_mapper.NETUTILSPARSER_LIB_MAPPER_REVERSE,
"_file": "docs/user/lib_mapper/netutilsparser_reverse.md",
},
"ntctemplates": {
"header_src": "NTCTEMPLATES",
"header_dst": "NORMALIZED",
"_dict": lib_mapper.NTCTEMPLATES_LIB_MAPPER,
"_file": "docs/user/lib_mapper/ntctemplates.md",
},
"ntctemplates_reverse": {
"header_src": "NTCTEMPLATES",
"header_dst": "NORMALIZED",
"header_src": "NORMALIZED",
"header_dst": "NTCTEMPLATES",
"_dict": lib_mapper.NTCTEMPLATES_LIB_MAPPER_REVERSE,
"_file": "docs/user/lib_mapper/ntctemplates_reverse.md",
},
"pyats": {
"header_src": "NORMALIZED",
"header_dst": "PYATS",
"header_src": "PYATS",
"header_dst": "NORMALIZED",
"_dict": lib_mapper.PYATS_LIB_MAPPER,
"_file": "docs/user/lib_mapper/pyats.md",
},
"pyats_reverse": {
"header_src": "PYATS",
"header_dst": "NORMALIZED",
"header_src": "NORMALIZED",
"header_dst": "PYATS",
"_dict": lib_mapper.PYATS_LIB_MAPPER_REVERSE,
"_file": "docs/user/lib_mapper/pyats_reverse.md",
},
"pyntc": {
"header_src": "NORMALIZED",
"header_dst": "PYNTC",
"header_src": "PYNTC",
"header_dst": "NORMALIZED",
"_dict": lib_mapper.PYNTC_LIB_MAPPER,
"_file": "docs/user/lib_mapper/pyntc.md",
},
"pyntc_reverse": {
"header_src": "PYNTC",
"header_dst": "NORMALIZED",
"header_src": "NORMALIZED",
"header_dst": "PYNTC",
"_dict": lib_mapper.PYNTC_LIB_MAPPER_REVERSE,
"_file": "docs/user/lib_mapper/pyntc_reverse.md",
},
"scrapli": {
"header_src": "NORMALIZED",
"header_dst": "SCRAPLI",
"header_src": "SCRAPLI",
"header_dst": "NORMALIZED",
"_dict": lib_mapper.SCRAPLI_LIB_MAPPER,
"_file": "docs/user/lib_mapper/scrapli.md",
},
"scrapli_reverse": {
"header_src": "SCRAPLI",
"header_dst": "NORMALIZED",
"header_src": "NORMALIZED",
"header_dst": "SCRAPLI",
"_dict": lib_mapper.SCRAPLI_LIB_MAPPER_REVERSE,
"_file": "docs/user/lib_mapper/scrapli_reverse.md",
},
"hierconfig": {
"header_src": "HIERCONFIG",
"header_dst": "NORMALIZED",
"_dict": lib_mapper.HIERCONFIG_LIB_MAPPER,
"_file": "docs/user/lib_mapper/hierconfig.md",
},
"hierconfig_reverse": {
"header_src": "NORMALIZED",
"header_dst": "HIERCONFIG",
"_dict": lib_mapper.HIERCONFIG_LIB_MAPPER_REVERSE,
"_file": "docs/user/lib_mapper/hierconfig_reverse.md",
},
},
"PARSER_MAPPER_TEMPLATE": {
"default": {
Expand Down
36 changes: 36 additions & 0 deletions docs/admin/release_notes/version_1.6.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# v1.6 Release Notes

## Release Overview

- Added `ubiquiti_airos` parser.
- Added `ACLRule` and `ACLRules` classes.
- Added the `ip` functions `is_ip_range`, `is_ip_within`, `is_network`, and `get_range_ips`.
- Added the `asn` function `int_to_asn` in the function.
- Added `NETUTILSPARSER_LIB_MAPPER` and `NETUTILSPARSER_LIB_MAPPER_REVERSE` to lib mapper.
- Added classy docs to view config parser classes.


## [v1.6.0] - 2023-09

### Added

- [#290](https://github.com/networktocode/netutils/pull/290) Added `ACLRule` and `ACLRules` classes.
- [#290](https://github.com/networktocode/netutils/pull/290) Added the `ip` functions `is_ip_range`, `is_ip_within`, `is_network`, and `get_range_ips`.
- [#325](https://github.com/networktocode/netutils/pull/325) Added classy docs to view config parser classes.
- [#329](https://github.com/networktocode/netutils/pull/329) Added `ubiquiti_airos` parser.
- [#332](https://github.com/networktocode/netutils/pull/332) Added the `asn` function `int_to_asn` in the function.
- [#352](https://github.com/networktocode/netutils/pull/352) Added `NETUTILSPARSER_LIB_MAPPER` and `NETUTILSPARSER_LIB_MAPPER_REVERSE` to lib mapper.

### Changed

- [#346](https://github.com/networktocode/netutils/pull/346) Updated `mac_to_format` docs.
- [#352](https://github.com/networktocode/netutils/pull/352) Clean up docs and sorting for lib mapper.
- [#358](https://github.com/networktocode/netutils/pull/358) Changed flatbot schedule.

### Fixed

- [#339](https://github.com/networktocode/netutils/pull/339) Fix for ASN functions.
- [#340](https://github.com/networktocode/netutils/pull/340) Fixed Netscaler parser slug.
- [#346](https://github.com/networktocode/netutils/pull/346) Fix issue where interface abbreviation not working.
- [#350](https://github.com/networktocode/netutils/pull/350) Update library mappings to be correct order.
- [#356](https://github.com/networktocode/netutils/pull/356) Fixed mkdocs dependencies.
Loading