Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
254 commits
Select commit Hold shift + click to select a range
fb97883
Merge pull request #12 from networktocode/release0.2.0
itdependsnetworks May 29, 2021
fadc54e
update changelog
itdependsnetworks Jun 2, 2021
2d7f1d0
Merge pull request #13 from networktocode/changelog
itdependsnetworks Jun 3, 2021
0aef341
Merge pull request #14 from networktocode/develop
itdependsnetworks Jun 3, 2021
d6da791
Add ASA Parser (#16)
jdrew82 Jun 9, 2021
8849420
Add BASE_INTERFACES for hp_comware & checkpoint (#17)
jifox Jun 9, 2021
a4c7924
prep for 0.2.1 release
jeffkala Jun 10, 2021
b33b022
Merge pull request #19 from networktocode/0.2.1
itdependsnetworks Jun 10, 2021
45a3ad5
Merge pull request #20 from networktocode/develop
itdependsnetworks Jun 10, 2021
1edb4c3
Created docs
qduk May 11, 2021
6e2e5c5
Merge pull request #8 from qduk/feature/docs
itdependsnetworks Jun 11, 2021
72e94e1
Updated docs start line
qduk Jun 11, 2021
b0d8e6b
Merge pull request #24 from qduk/hotfix/Updates_attribution_docs
qduk Jun 11, 2021
971853d
move sphinx to dev dep, update docs, update metadata
itdependsnetworks Jun 12, 2021
a7ec1d1
add pytest ids
itdependsnetworks Jun 14, 2021
692a2b6
Merge pull request #25 from networktocode/docsandmore
itdependsnetworks Jun 14, 2021
631a8aa
Add IPv6 functionality to ip module. (#28)
dgjustice Jun 24, 2021
ce0aecf
Remove unnecessary code from ip (#30)
dgjustice Jul 1, 2021
d0bda63
interface_range_expansion function added (#31)
qduk Jul 4, 2021
b6ac6f2
Add interface sorting support.
dgjustice Jul 28, 2021
453067c
Update netutils/interface.py
dgjustice Aug 2, 2021
ab046d2
Update netutils/interface.py
dgjustice Aug 2, 2021
ca0b591
Cleanup docs from PR suggestions.
dgjustice Aug 2, 2021
f257a3e
Rename split_interface_tuple to private member
dgjustice Aug 3, 2021
57972bc
Merge pull request #34 from dgjustice/dgjustice
qduk Aug 6, 2021
cfcffb8
Remove the requests package
ubajze Aug 17, 2021
6e0c9e1
Merge pull request #38 from networktocode/remove-requests
itdependsnetworks Aug 17, 2021
3d7aae9
Create and order interface lists (#9)
qduk Aug 26, 2021
f5317af
Adds tcp/udp port mapper (#35)
jtdub Aug 29, 2021
ceb0b6f
Create library mapping page for readthedocs (#39)
qduk Aug 31, 2021
0744ef6
Added protocol mappings to docs
qduk Sep 1, 2021
5e03281
Changed some wording
qduk Sep 1, 2021
21a779a
Updated docs
qduk Sep 1, 2021
04942bf
Merge pull request #41 from qduk/tcp/udp_docs
qduk Sep 1, 2021
a9c2b61
prep for 0.2.2 release
qduk Sep 2, 2021
cff11b0
Merge pull request #42 from networktocode/0.2.2
jeffkala Sep 2, 2021
51f8f27
Merge pull request #43 from networktocode/develop
jeffkala Sep 2, 2021
71312c7
Update NAPALM maps (#46)
jdrew82 Sep 17, 2021
acb4422
WIP jinja2 convenience function (#45)
qduk Sep 17, 2021
f819996
Readthedocs fix (#49)
qduk Sep 20, 2021
e3a1f91
Update changelog for 0.2.3 release
itdependsnetworks Sep 22, 2021
b234d48
Merge pull request #50 from itdependsnetworks/rel-0.2.3
itdependsnetworks Sep 22, 2021
a498c86
Merge pull request #51 from networktocode/develop
itdependsnetworks Sep 22, 2021
e45d389
Update pyproject.toml build-server
itdependsnetworks Sep 22, 2021
98c14b6
Add get peer address, fixes #48
itdependsnetworks Sep 24, 2021
ebd7737
Merge pull request #52 from networktocode/build-system
itdependsnetworks Sep 24, 2021
2cdcba3
Update get_peer_ip validation, tests, and update a few tests, fix iss…
itdependsnetworks Sep 25, 2021
c3a4132
Update testing and spelling
itdependsnetworks Sep 27, 2021
d9ec4c9
update version in toml and init files
itdependsnetworks Sep 28, 2021
f20ecff
Merge pull request #53 from itdependsnetworks/issue-48
itdependsnetworks Sep 28, 2021
66c4b31
Merge pull request #55 from itdependsnetworks/ver_bump
itdependsnetworks Sep 28, 2021
f9070b2
add interface_range_compress function (#33)
viktorkertesz Oct 15, 2021
e5d2d26
Fix lack of zero padding on ip to binary conversion
itdependsnetworks Oct 18, 2021
ba14530
CI/CD implementation on GitHub actions (#64)
ubajze Oct 20, 2021
1e0d96a
Merge pull request #63 from itdependsnetworks/binary-fix
itdependsnetworks Oct 25, 2021
2a9690d
Add Bandwidth (#59)
jdrew82 Oct 27, 2021
b314c99
Add Fortinet Fortios Parser support (#68)
jeffkala Nov 12, 2021
8663a4a
Docs contribution update (#71)
qduk Nov 13, 2021
8ea1182
Bump version, fix ip padding on ip to hex conversion
itdependsnetworks Nov 12, 2021
1c605a0
Merge pull request #70 from itdependsnetworks/rel-v0.2.4
itdependsnetworks Nov 13, 2021
828a307
Merge pull request #73 from networktocode/develop
itdependsnetworks Nov 13, 2021
8c0a631
Add bandwidth docs (#74)
itdependsnetworks Nov 13, 2021
09a1ef2
Update Python Requirements (#75)
itdependsnetworks Nov 20, 2021
30a507b
Expose ipaddress for jinja filters
itdependsnetworks Nov 20, 2021
da37ffa
Added docs
Nov 22, 2021
37b3eab
Updated for docs error
Nov 22, 2021
6607a3e
Fix the CI pipeline (#77)
ubajze Nov 23, 2021
cf6541a
Merge pull request #76 from itdependsnetworks/ip_jinja
itdependsnetworks Nov 25, 2021
23fb326
Prepare release 0.2.5
itdependsnetworks Nov 26, 2021
77a3523
Merge pull request #81 from itdependsnetworks/rel-0.2.5
itdependsnetworks Nov 26, 2021
e753e4e
Merge pull request #82 from networktocode/develop
itdependsnetworks Nov 26, 2021
04f2506
Normalise banner demiliter for IOS to ^C & support parsing delimiter …
pke11y Dec 1, 2021
4b359df
F5 parser fix for irules with multiline single command lines. (#79)
jeffkala Dec 2, 2021
c2d7517
remove support for old function 'is_fqdn_valid' as prep for 1.0.0 (#83)
jeffkala Dec 2, 2021
2e48376
Merge pull request #84 from networktocode/develop
jeffkala Dec 2, 2021
601aba6
Dynamically gather start and end lines for doc testing
qduk Jan 3, 2022
4c16bcd
Merge pull request #91 from qduk/feature/dynamic_start_stop_lines
itdependsnetworks Jan 11, 2022
ae1290a
Added uptime conversions (#90)
qduk Jan 22, 2022
b63174b
Add normalize delimiter methods to NXOS (#94)
jeffkala Feb 1, 2022
a504cfe
feat: Add Ansible mapping for Nokia SrOS (#102)
jdrew82 Mar 3, 2022
fcda3af
Fix decimal place in bits_to_name (#99)
jdrew82 Mar 4, 2022
0a0c019
Fix issue when backup or intended is empty (#107)
itdependsnetworks Mar 31, 2022
a79e13f
Optimize vlanconfig_to_list using builtin Regex methods (#104)
FragmentedPacket Mar 31, 2022
15ad2f0
Add min_grouping_size to vlanlist_to_config method (#105)
FragmentedPacket Mar 31, 2022
a97c7d7
Nokia SrOS Parser (#106)
jdrew82 Apr 22, 2022
b589d13
prep release 1.1.0
jeffkala Apr 22, 2022
6d8ef4a
its 2022 now..
jeffkala Apr 22, 2022
4c4641b
Merge pull request #109 from networktocode/1.1.0
jeffkala Apr 23, 2022
081d226
Merge pull request #110 from networktocode/develop
jeffkala Apr 23, 2022
b494a2f
Updated lib mapping docs (#113)
qduk Apr 28, 2022
837e539
Pinned mistune for m2r2 (#114)
qduk Apr 28, 2022
edc8b06
Switch to poetry-core
fabaff May 2, 2022
693d53a
Merge pull request #115 from fabaff/patch-1
itdependsnetworks Jun 15, 2022
cba310b
Update banner parsing for EOS (#121)
itdependsnetworks Jun 24, 2022
e757bfe
Fixes encrypt type7 (#122)
Jun 30, 2022
32f09d1
Document support on duplicate lines (#128)
itdependsnetworks Jul 15, 2022
723d040
Few updates to PR of 125 (#129)
jeffkala Jul 15, 2022
4a26bcb
Adding nxos_ssh to Napalm mapper (#138)
joewesch Aug 4, 2022
a4227a5
Update CODEOWNERS (#134)
jeffkala Aug 4, 2022
f93a92f
prep for 1.2.0 release (#143)
abates Aug 5, 2022
0f30e72
1.2.0 release (#144)
jeffkala Aug 5, 2022
2cb954e
Adds ios utilities (#146)
Aug 18, 2022
ceb0ec5
Adds get_oui and flat ci process to pull OUI data into repo (#148)
qduk Oct 7, 2022
558d71a
Convert to new style mkdocs (#152)
itdependsnetworks Oct 12, 2022
898ef07
Update links to render properly on rtd and pypi (#155)
itdependsnetworks Oct 12, 2022
cb45903
Update testing mock strategy (#154)
itdependsnetworks Oct 18, 2022
0ef3d37
Add Napalm Getter feature (#149)
jeffkala Oct 19, 2022
c1879d0
Citrix NetScaler Parser (#153)
jdrew82 Oct 27, 2022
097fc20
Change how dunder version is created (#159)
itdependsnetworks Oct 27, 2022
8e22a89
prep for 1.3.0 release (#160)
itdependsnetworks Nov 3, 2022
f5a5189
Merge commit '0f30e723ef52f4cce31afa15e777ab488471c6dc' into dev2
itdependsnetworks Nov 3, 2022
21ab747
Remove legacy docs
itdependsnetworks Nov 3, 2022
e58d6ce
Merge pull request #162 from itdependsnetworks/dev2
itdependsnetworks Nov 4, 2022
9c8d80c
Manual OUI mappings update (#166)
qduk Nov 4, 2022
a1147af
Disable tcp_ping test (#167)
itdependsnetworks Nov 7, 2022
07536fe
Merge pull request #164 from networktocode/develop
itdependsnetworks Nov 7, 2022
ceb12e1
Skip integration test for tcpping (#168)
itdependsnetworks Nov 8, 2022
0dc5d3a
Manual flatbot 2 update (#170)
qduk Nov 9, 2022
c839d51
Merge pull request #169 from networktocode/develop
itdependsnetworks Nov 9, 2022
b4c58de
feat: Adds is_classfull utility function (#163)
abates Nov 10, 2022
764d692
Aruba AOS-CX Parser (#172)
lukebates123 Dec 16, 2022
c43d253
fix classfull address naming (#173)
vivekvashist Dec 16, 2022
0baa10e
Add IOS-XR Parser (#177)
jdrew82 Dec 16, 2022
d0c512a
Update parser folder info, fix aruba tests (#183)
itdependsnetworks Dec 19, 2022
8c3f818
Update OUI flatbot CI process (#178)
qduk Dec 22, 2022
54b6c2a
Add parsers for mrv_optiswitch and extreme_netiron (#182)
Dec 22, 2022
203de09
Remove unneeded init (#184)
itdependsnetworks Dec 22, 2022
f1de73b
Flat: latest data (2022-12-29T08:02:59.233Z) (#187)
github-actions[bot] Dec 29, 2022
03f0439
Flat: latest data (2023-01-05T08:02:59.447Z) (#188)
github-actions[bot] Jan 5, 2023
6df58ca
fix: Fixes incorrect behavior when calling tcp_ping with timeout >= 3…
abates Jan 5, 2023
bdf5857
prep for 1.4.0 release (#190)
jeffkala Jan 5, 2023
339a8bf
Merge pull request #192 from networktocode/develop
jeffkala Jan 5, 2023
a263013
Flat: latest data (2023-01-19T18:00:54.393Z) (#196)
github-actions[bot] Jan 24, 2023
e4d4f07
Flat: latest data (2023-01-26T14:46:53.105Z) (#198)
github-actions[bot] Feb 2, 2023
1cad7ff
Flat: latest data (2023-02-02T20:18:53.716Z) (#199)
github-actions[bot] Feb 7, 2023
19099ec
Prepend OUI Flatbot step to delete existing branch (#197)
qduk Feb 7, 2023
9153701
Allow proto mapper to be auto-generated (#171)
itdependsnetworks Feb 7, 2023
2cd907d
Allow bandwith to be represented without "ps" in bw (#200)
itdependsnetworks Feb 7, 2023
b9a41a2
fix: Fixes interface_range_expansion with trailing constant
Feb 9, 2023
584e6cd
Fix Passwords docs that show ASN details (#206)
itdependsnetworks Feb 9, 2023
8433a0f
Merge pull request #209 from abates/issue204
abates Feb 9, 2023
7c6514a
Flat: latest data (2023-02-09T08:03:06.683Z) (#207)
github-actions[bot] Feb 9, 2023
032d744
Install black into flat environment (#210)
itdependsnetworks Feb 10, 2023
5ae545b
Prep for 1.4.1 (#202)
itdependsnetworks Feb 10, 2023
26180f6
Merge pull request #211 from networktocode/develop
itdependsnetworks Feb 10, 2023
4b43f2e
Clarify when Python 3.6 support was dropped (#213)
itdependsnetworks Feb 16, 2023
1a51547
Moved where deletion of branch took place in workflow (#217)
qduk Feb 16, 2023
79547d9
Flat: latest data (2023-02-28T17:20:54.153Z) (#226)
github-actions[bot] Mar 2, 2023
333c1d1
Flat: latest data (2023-02-28T17:16:15.324Z) (#225)
github-actions[bot] Mar 2, 2023
ec2147a
Create dependabot.yml to fix itdependsabot (#218)
jeffkala Mar 2, 2023
1acb32a
Flat: latest data (2023-03-17T17:12:07.070Z) (#236)
github-actions[bot] Mar 17, 2023
380a7aa
Flat: latest data (2023-03-17T17:11:02.437Z) (#235)
github-actions[bot] Mar 17, 2023
ba51fdf
Add Interface type for Cisco App-hosting port (#224)
michaelklose Mar 17, 2023
467b537
Fix vlanlist_to_config failing on empty list (#219)
itdependsnetworks Mar 17, 2023
41c0742
Interface abbreviation for TwoGigabitEthernet (#223)
michaelklose Mar 17, 2023
46b812c
New lib mapper to translate between normalized network OS names and n…
boabdilperez Mar 25, 2023
1312c08
Flat: latest data (2023-03-23T08:02:56.545Z) (#246)
github-actions[bot] Mar 28, 2023
2db98a3
Flat: latest data (2023-04-06T08:03:03.590Z) (#255)
github-actions[bot] Apr 13, 2023
5931441
Add encrypt_type9 function to netutils.password (#253)
abates Apr 13, 2023
23b2116
Pr252 addon (#261)
itdependsnetworks Apr 17, 2023
a10c288
Add functions for encrypting and decrypting junipter $9$ type passwor…
Apr 27, 2023
6c1585e
Flat: latest data (2023-04-27T19:15:52.936Z) (#266)
github-actions[bot] Apr 27, 2023
ed4af96
Mikrotik RouterOS Parser (#244)
h4ndzdatm0ld May 11, 2023
fa8b8e0
Flat: latest data (2023-05-04T08:03:05.309Z) (#271)
github-actions[bot] May 18, 2023
3314e36
Flat: latest data (2023-05-25T08:03:20.565Z) (#278)
github-actions[bot] Jun 8, 2023
f99628b
Add -f to flatbot branch pushes (#284)
qduk Jun 8, 2023
8a878c8
Added FourHundredGigabitEthernet to REVERSE_MAPPING (#285)
qduk Jun 8, 2023
92c041c
Move password helper names to be namespaced with vendor information. …
itdependsnetworks Jun 9, 2023
eee6416
Palo alto networks (#262)
bile0026 Jun 21, 2023
4595be5
HIERCONFIG: Lib mappings (#304)
pato23arg Jun 27, 2023
c8bd1c4
Enable OS Version docs (#305)
itdependsnetworks Jun 27, 2023
39d5ee9
Flat: latest data (2023-06-29T08:06:17.079Z) (#307)
github-actions[bot] Jul 3, 2023
3a52f02
Flat: latest data (2023-06-29T08:03:20.700Z) (#306)
github-actions[bot] Jul 3, 2023
3ff4799
Ruckus fastiron parser (#264)
pato23arg Jul 3, 2023
3869823
Flat: latest data (2023-07-06T08:06:19.475Z) (#309)
github-actions[bot] Jul 6, 2023
6a5eaa4
Flat: latest data (2023-07-06T08:03:10.373Z) (#308)
github-actions[bot] Jul 6, 2023
c5582ef
Flat: latest data (2023-07-20T08:03:00.240Z) (#314)
github-actions[bot] Jul 22, 2023
d95593b
Kc drop py37 (#317)
itdependsnetworks Jul 22, 2023
3c5d325
fix: 🐛 strip 'devices localhost.localdomain' from set config (#316)
bile0026 Jul 22, 2023
04829b3
Regex filters (#318)
itdependsnetworks Jul 24, 2023
75872de
Fixed regex doc spelling (#321)
qduk Jul 24, 2023
d38a038
Prep for a 1.5.0 release (#287)
itdependsnetworks Jul 24, 2023
1e7355b
Merge pull request #322 from networktocode/develop
itdependsnetworks Jul 24, 2023
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
c771a89
Merge pull request #368 from networktocode/develop
itdependsnetworks Sep 8, 2023
4f2fdf3
Flat: latest data (2023-09-07T08:03:16.543Z) (#363)
github-actions[bot] Sep 28, 2023
403ecef
Flat: latest data (2023-10-01T02:15:48.518Z) (#382)
github-actions[bot] Oct 12, 2023
13dcda0
Flat: latest data (2023-10-01T02:13:44.866Z) (#381)
github-actions[bot] Oct 12, 2023
a35a9cf
Update doc string example to include the import statement (#369)
itdependsnetworks Oct 12, 2023
ed680db
Adds hash_data function (#373)
joewesch Oct 26, 2023
23bae72
[NN20-prep] - netutils/lib_mapper.py (#374)
pato23arg Oct 26, 2023
904a722
Flat: latest data (2023-11-01T02:14:32.157Z) (#407)
github-actions[bot] Nov 9, 2023
81fb063
Flat: latest data (2023-11-01T02:11:57.230Z) (#406)
github-actions[bot] Nov 9, 2023
dc08fc3
Flat: latest data (2023-12-01T02:16:06.591Z) (#420)
github-actions[bot] Dec 7, 2023
e436377
Add comments to make it more clear which what is being mapped (#421)
itdependsnetworks Dec 7, 2023
8bddf77
Updates parsers for issues 414, 415, and 422 (#429)
qduk Dec 21, 2023
9f4d2df
Add aerleon and capirca platform mappers (#425)
scetron Jan 5, 2024
f286fed
Fix typos in bandwidth.py (#437)
vivekvashist Jan 9, 2024
267ed59
fix: minor typo in test_acl.py (#442)
vivekvashist Jan 20, 2024
b0171d6
fix: minor typo in test_time.py (#441)
vivekvashist Jan 20, 2024
a026c91
Update lib mappers for ansible (#443)
itdependsnetworks Feb 9, 2024
5bcf145
Add forward networks mapper (#451)
jtdub Feb 9, 2024
61505c0
dual banner test case single banner feature search (#445)
itdependsnetworks Feb 9, 2024
e835dc3
Feature/platform mapper (#220)
bminnix Feb 20, 2024
eba8a55
Improve performance of jinja2_convenience_function by not importing N…
glennmatthews Feb 27, 2024
90ccebf
Flat: latest data (2024-03-01T02:13:34.621Z) (#472)
github-actions[bot] Mar 4, 2024
db056d7
Flat: latest data (2024-03-01T02:11:02.361Z) (#471)
github-actions[bot] Mar 4, 2024
a2be149
Revert "Feature/platform mapper (#220)" (#476)
itdependsnetworks Mar 8, 2024
62b3fc6
Add Sort List of IPs (#473)
jdrew82 Mar 9, 2024
a4dcaba
Prep for a 1.7.0 release (#477)
itdependsnetworks Mar 9, 2024
89449c7
Merge pull request #478 from networktocode/develop
itdependsnetworks Mar 9, 2024
497a0bf
Merge pull request #479 from networktocode/main
itdependsnetworks Mar 15, 2024
4d2cece
Python 3.12 support (#483)
glennmatthews Mar 16, 2024
99315cb
reorder changelog menu (#485)
itdependsnetworks Mar 16, 2024
61de1b6
Make protocol number import dynamic update via flatbot (#494)
itdependsnetworks Mar 22, 2024
828e3eb
Add JunOS and Vyatta to HierConfig mappers (#490)
jdrew82 Mar 28, 2024
3dbfc2f
Updates to XR mapping, add tests to ensure always using normalized na…
itdependsnetworks Mar 28, 2024
2393a53
Standardize vyos lib mapping (#496)
itdependsnetworks Mar 28, 2024
8c390b1
fix: 🐛 fixes for \n characters in inappropriate places and parsing bu…
bile0026 Mar 28, 2024
5df7f31
Add HP Comware config parser (#467)
bintangf Mar 28, 2024
3fb7206
Prep for a 1.8.0 release (#500)
itdependsnetworks Apr 3, 2024
1af87dd
Flat: latest data (2024-04-01T02:14:14.347Z) (#497)
github-actions[bot] Apr 11, 2024
71c06d2
Flat: latest data (2024-04-01T02:17:05.072Z) (#498)
github-actions[bot] Apr 11, 2024
930942c
Flat: latest data (2024-04-01T02:43:02.930Z) (#499)
github-actions[bot] Apr 11, 2024
914a20e
More IOS banner related fixes. (#509)
jeffkala Apr 18, 2024
3b1004e
prep for 1.8.1 release (#510)
susanhooks Apr 19, 2024
373e5cc
Feature/platform mapper (#489)
bminnix May 15, 2024
11f5e88
Add Mappings for DNA Center (#519)
jdrew82 May 16, 2024
8dd2c4e
Provide more descriptive error message when there is a duplicate line…
itdependsnetworks Jun 26, 2024
5530057
Add failing test to demonstrate dup line issue
itdependsnetworks Jun 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .bandit.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
skips: []
# No need to check for security issues in the test scripts!
exclude_dirs:
- "./tests/"
- "./docs/"
- "netutils/data_files/"
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Default owner(s) of all files in this repository
* @itdependsnetworks @jeffkala @qduk
* @itdependsnetworks @jeffkala @qduk @abates
9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
allow:
- dependency-type: "direct"
267 changes: 267 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,267 @@
---
name: "CI"
on: # yamllint disable-line rule:truthy
- "push"
- "pull_request"

env:
IMAGE_NAME: "netutils"

jobs:
black:
runs-on: "ubuntu-20.04"
env:
INVOKE_LOCAL: "True"
steps:
- name: "Check out repository code"
uses: "actions/checkout@v2"
- name: "Setup environment"
uses: "networktocode/gh-action-setup-poetry-environment@v2"
with:
python-version: "3.12"
- name: "Linting: black"
run: "poetry run invoke black"
bandit:
runs-on: "ubuntu-20.04"
env:
INVOKE_LOCAL: "True"
steps:
- name: "Check out repository code"
uses: "actions/checkout@v2"
- name: "Setup environment"
uses: "networktocode/gh-action-setup-poetry-environment@v2"
with:
python-version: "3.12"
- name: "Linting: bandit"
run: "poetry run invoke bandit"
needs:
- "black"
mypy:
runs-on: "ubuntu-20.04"
env:
INVOKE_LOCAL: "True"
steps:
- name: "Check out repository code"
uses: "actions/checkout@v2"
- name: "Setup environment"
uses: "networktocode/gh-action-setup-poetry-environment@v2"
with:
python-version: "3.12"
- name: "Type-Hints: mypy"
run: "poetry run invoke mypy"
needs:
- "black"
pydocstyle:
runs-on: "ubuntu-20.04"
env:
INVOKE_LOCAL: "True"
steps:
- name: "Check out repository code"
uses: "actions/checkout@v2"
- name: "Setup environment"
uses: "networktocode/gh-action-setup-poetry-environment@v2"
with:
python-version: "3.12"
- name: "Linting: pydocstyle"
run: "poetry run invoke pydocstyle"
needs:
- "black"
flake8:
runs-on: "ubuntu-20.04"
env:
INVOKE_LOCAL: "True"
steps:
- name: "Check out repository code"
uses: "actions/checkout@v2"
- name: "Setup environment"
uses: "networktocode/gh-action-setup-poetry-environment@v2"
with:
python-version: "3.12"
- name: "Linting: flake8"
run: "poetry run invoke flake8"
needs:
- "black"
yamllint:
runs-on: "ubuntu-20.04"
env:
INVOKE_LOCAL: "True"
steps:
- name: "Check out repository code"
uses: "actions/checkout@v2"
- name: "Setup environment"
uses: "networktocode/gh-action-setup-poetry-environment@v2"
with:
python-version: "3.12"
- name: "Linting: yamllint"
run: "poetry run invoke yamllint"
needs:
- "black"
build:
strategy:
fail-fast: true
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
runs-on: "ubuntu-20.04"
env:
PYTHON_VER: "${{ matrix.python-version }}"
steps:
- name: "Check out repository code"
uses: "actions/checkout@v2"
- name: "Setup environment"
uses: "networktocode/gh-action-setup-poetry-environment@v2"
- name: "Get image version"
run: "echo IMAGE_VER=`poetry version -s`-py${{ matrix.python-version }} >> $GITHUB_ENV"
- name: "Set up Docker Buildx"
id: "buildx"
uses: "docker/setup-buildx-action@v1"
- name: "Build"
uses: "docker/build-push-action@v2"
with:
builder: "${{ steps.buildx.outputs.name }}"
context: "./"
push: false
tags: "${{ env.IMAGE_NAME }}:${{ env.IMAGE_VER }}"
file: "./Dockerfile"
cache-from: "type=gha,scope=${{ env.IMAGE_NAME }}-${{ env.IMAGE_VER }}-py${{ matrix.python-version }}"
cache-to: "type=gha,scope=${{ env.IMAGE_NAME }}-${{ env.IMAGE_VER }}-py${{ matrix.python-version }}"
build-args: |
PYTHON_VER=${{ env.PYTHON_VER }}
needs:
- "bandit"
- "mypy"
- "pydocstyle"
- "flake8"
- "yamllint"
pylint:
runs-on: "ubuntu-20.04"
strategy:
fail-fast: true
matrix:
python-version: ["3.12"]
env:
PYTHON_VER: "${{ matrix.python-version }}"
steps:
- name: "Check out repository code"
uses: "actions/checkout@v2"
- name: "Setup environment"
uses: "networktocode/gh-action-setup-poetry-environment@v2"
- name: "Get image version"
run: "echo IMAGE_VER=`poetry version -s`-py${{ matrix.python-version }} >> $GITHUB_ENV"
- name: "Set up Docker Buildx"
id: "buildx"
uses: "docker/setup-buildx-action@v1"
- name: "Load the image from cache"
uses: "docker/build-push-action@v2"
with:
builder: "${{ steps.buildx.outputs.name }}"
context: "./"
push: false
load: true
tags: "${{ env.IMAGE_NAME }}:${{ env.IMAGE_VER }}"
file: "./Dockerfile"
cache-from: "type=gha,scope=${{ env.IMAGE_NAME }}-${{ env.IMAGE_VER }}-py${{ matrix.python-version }}"
cache-to: "type=gha,scope=${{ env.IMAGE_NAME }}-${{ env.IMAGE_VER }}-py${{ matrix.python-version }}"
build-args: |
PYTHON_VER=${{ env.PYTHON_VER }}
- name: "Debug: Show docker images"
run: "docker image ls"
- name: "Linting: Pylint"
run: "poetry run invoke pylint"
needs:
- "build"
pytest:
strategy:
fail-fast: true
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
runs-on: "ubuntu-20.04"
env:
PYTHON_VER: "${{ matrix.python-version }}"
steps:
- name: "Check out repository code"
uses: "actions/checkout@v2"
- name: "Setup environment"
uses: "networktocode/gh-action-setup-poetry-environment@v2"
- name: "Get image version"
run: "echo IMAGE_VER=`poetry version -s`-py${{ matrix.python-version }} >> $GITHUB_ENV"
- name: "Set up Docker Buildx"
id: "buildx"
uses: "docker/setup-buildx-action@v1"
- name: "Load the image from cache"
uses: "docker/build-push-action@v2"
with:
builder: "${{ steps.buildx.outputs.name }}"
context: "./"
push: false
load: true
tags: "${{ env.IMAGE_NAME }}:${{ env.IMAGE_VER }}"
file: "./Dockerfile"
cache-from: "type=gha,scope=${{ env.IMAGE_NAME }}-${{ env.IMAGE_VER }}-py${{ matrix.python-version }}"
cache-to: "type=gha,scope=${{ env.IMAGE_NAME }}-${{ env.IMAGE_VER }}-py${{ matrix.python-version }}"
build-args: |
PYTHON_VER=${{ env.PYTHON_VER }}
- name: "Debug: Show docker images"
run: "docker image ls"
- name: "Run Tests"
run: "poetry run invoke pytest"
- 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 tests/unit/test_acl.py"
needs:
- "pylint"
publish_gh:
name: "Publish to GitHub"
runs-on: "ubuntu-20.04"
if: "startsWith(github.ref, 'refs/tags/v')"
steps:
- name: "Check out repository code"
uses: "actions/checkout@v2"
- name: "Set up Python"
uses: "actions/setup-python@v2"
with:
python-version: "3.12"
- name: "Install Python Packages"
run: "pip install poetry"
- name: "Set env"
run: "echo RELEASE_VERSION=${GITHUB_REF:10} >> $GITHUB_ENV"
- name: "Run Poetry Version"
run: "poetry version $RELEASE_VERSION"
- name: "Run Poetry Build"
run: "poetry build"
- name: "Upload binaries to release"
uses: "svenstaro/upload-release-action@v2"
with:
repo_token: "${{ secrets.NTC_GITHUB_TOKEN }}"
file: "dist/*"
tag: "${{ github.ref }}"
overwrite: true
file_glob: true
needs:
- "pytest"
publish_pypi:
name: "Push Package to PyPI"
runs-on: "ubuntu-20.04"
if: "startsWith(github.ref, 'refs/tags/v')"
steps:
- name: "Check out repository code"
uses: "actions/checkout@v2"
- name: "Set up Python"
uses: "actions/setup-python@v2"
with:
python-version: "3.12"
- name: "Install Python Packages"
run: "pip install poetry"
- name: "Set env"
run: "echo RELEASE_VERSION=${GITHUB_REF:10} >> $GITHUB_ENV"
- name: "Run Poetry Version"
run: "poetry version $RELEASE_VERSION"
- name: "Run Poetry Build"
run: "poetry build"
- name: "Push to PyPI"
uses: "pypa/gh-action-pypi-publish@release/v1"
with:
user: "__token__"
password: "${{ secrets.PYPI_API_TOKEN }}"
needs:
- "pytest"
53 changes: 53 additions & 0 deletions .github/workflows/oui_filepull.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
name: "OUI-Updates"

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

jobs:
data_gathering:
runs-on: "ubuntu-latest"
env:
BRANCH_NAME: "OUI_Updates"
steps:
# Checkout repo
- name: "Check out code"
uses: "actions/checkout@v2"
with:
ref: "develop"
# Delete old branch if it exists
- name: "Delete existing branch"
run: "git branch -D $BRANCH_NAME || true"
# Create branch for Flatbot
- name: "Create Flatbot branch"
run: "git checkout -b $BRANCH_NAME"
# Push new branch so Flatbot can make its commit
- name: "Push Flatbot branch"
run: "git push -f --set-upstream origin $BRANCH_NAME"
# This step installs Deno, which is a new Javascript runtime that improves on Node. Can be used for an optional postprocessing step
- name: "Setup deno"
uses: "denoland/setup-deno@main"
with:
deno-version: "v1.10.x"
# The Flat Action step. We fetch the data in the http_url and save it as downloaded_filename
- name: "Fetch data"
uses: "githubocto/flat@v3"
with:
http_url: "https://standards-oui.ieee.org"
downloaded_filename: "./netutils/data_files/oui_mappings.py"
postprocess: "./flat_postprocess/oui_postprocess.ts"
pr_creation:
runs-on: "ubuntu-latest"
needs: "data_gathering"
steps:
# Checkout repo
- name: "Check out code"
uses: "actions/checkout@v2"
with:
ref: "OUI_Updates"
# Create PR from branch created above into develop
- name: "Create a Pull Request"
run: "gh pr create -B develop -H OUI_Updates --title 'Flatbot OUI File Updates' --body 'Created by Flatbot action'"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
Loading