Commit Graph
72 Commits
Author SHA1 Message Date
Oliver GorwitsandGitHub 65cc9a5de2 Update test.yml 2021-08-16 21:14:19 +01:00
Oliver GorwitsandGitHub 58bb832308 Update test.yml 2021-08-16 21:10:04 +01:00
Oliver GorwitsandGitHub 085bd8a7db Update test.yml 2021-08-16 21:04:46 +01:00
Oliver GorwitsandGitHub 5f9b566505 Update test.yml 2021-08-16 21:03:11 +01:00
Oliver GorwitsandGitHub 3c51387f2a Update test.yml 2021-08-16 21:00:53 +01:00
Oliver GorwitsandGitHub 36fe316f48 Update test.yml 2021-08-16 20:36:14 +01:00
Oliver GorwitsandGitHub 19056d2758 Update test.yml 2021-08-16 20:28:33 +01:00
Oliver GorwitsandGitHub 209f5c4163 Update test.yml 2021-08-16 20:19:40 +01:00
Oliver GorwitsandGitHub 8d6d97eb4a Update test.yml 2021-08-16 20:16:26 +01:00
Oliver GorwitsandGitHub 251686ee27 Update test.yml 2021-08-16 20:14:49 +01:00
Oliver GorwitsandGitHub 4b30cebcf0 Update test.yml 2021-08-16 17:20:47 +01:00
Oliver GorwitsandGitHub 73c3350fdf Update test.yml 2021-08-16 17:18:17 +01:00
Oliver GorwitsandGitHub 7aac9ba2c0 Update test.yml 2021-08-16 17:07:20 +01:00
Oliver GorwitsandGitHub 96c07499ca Update test.yml 2021-08-16 17:05:33 +01:00
Oliver GorwitsandGitHub bfd870eb5b Update test.yml 2021-08-16 17:03:51 +01:00
Oliver GorwitsandGitHub 2be742cd9c Update test.yml 2021-08-16 16:57:46 +01:00
Oliver GorwitsandGitHub fe0d449445 Update test.yml 2021-08-16 15:52:52 +01:00
Oliver GorwitsandGitHub db145359f2 Update test.yml 2021-08-16 15:51:20 +01:00
Oliver GorwitsandGitHub 451fe5313b Update test.yml 2021-08-16 15:34:52 +01:00
Oliver GorwitsandGitHub 416bf892f8 Update test.yml 2021-08-16 15:25:05 +01:00
Oliver GorwitsandGitHub b934167dab Update test.yml 2021-08-16 15:23:29 +01:00
Oliver GorwitsandGitHub 656b18a38e Update test.yml 2021-08-16 15:15:54 +01:00
Oliver GorwitsandGitHub bfe2c8538e Update test.yml 2021-08-16 15:11:47 +01:00
Oliver GorwitsandGitHub 18f374223d Update test.yml 2021-08-16 15:07:20 +01:00
Oliver GorwitsandGitHub 9e7b787278 Update test.yml 2021-08-16 14:58:28 +01:00
Oliver GorwitsandGitHub 3296e51a5d Update test.yml 2021-08-16 14:45:10 +01:00
Oliver GorwitsandGitHub c41a413c94 Update test.yml 2021-08-16 14:27:34 +01:00
Oliver GorwitsandGitHub 3b4a2ca2d7 Update test.yml 2021-08-16 12:21:22 +01:00
Oliver GorwitsandGitHub c3955ce68b Update test.yml 2021-08-16 12:16:17 +01:00
Oliver GorwitsandGitHub 423d29e4cd Update test.yml 2021-08-16 12:16:01 +01:00
Oliver GorwitsandGitHub 63572350fb Update test.yml 2021-08-16 12:14:52 +01:00
Oliver GorwitsandGitHub 2e474a5d3c Update test.yml 2021-08-16 12:11:37 +01:00
Oliver GorwitsandGitHub 953eef39f7 Update test.yml 2021-08-16 12:04:26 +01:00
Oliver GorwitsandGitHub 408661bb45 Update test.yml 2021-08-16 11:24:29 +01:00
Oliver GorwitsandGitHub 09522b22db Update test.yml 2021-08-16 11:23:02 +01:00
Oliver GorwitsandGitHub 3bca23577f Update test.yml 2021-08-16 11:20:20 +01:00
Oliver GorwitsandGitHub 6e7684ce64 Update test.yml 2021-08-16 11:16:31 +01:00
Oliver GorwitsandGitHub 59b0d9f25b Update test.yml 2021-08-15 20:48:44 +01:00
Oliver GorwitsandGitHub 28389cb73b Update test.yml 2021-08-15 20:46:39 +01:00
Oliver GorwitsandGitHub 93f2546d5b Update release.yml 2021-08-15 20:14:07 +01:00
Oliver GorwitsandGitHub dff26abc5c API implementation (#712)
* initial v0 creator

* working json api for generic reports

* add require login

* move report swagger into plugin, and set new default layout of noop

* require proper role and also use new util func

* start to tidy authn

* some work on cleaning up web authn

* clean up the authN checks

* fix bug

* fix the auth for api

* fixes to json handling

* set swagger sort order

* enable most reports for api endpoints

* fix doc

* add paramters to reports

* add missed report

* allow api_parameters in reports config

* reorganise api

* add vlan search

* add port search

* make sure to enable layout processing

* add device search

* add v1 to api paths

* add Node Search

* support api_responses

* add device object search; fix spurious ports field in device result class

* handle some plugins just returning undef if search fails

* errors from api seamlessley

* fix error in date range default

* more sensible default for prefix

* change order of endpoints in swagger-ui

* all db row classes can now TO_JSON

* add device_port api endpoint

* add device ports endpoint

* do not expand docs

* add swagger ui json tree formatter

* add all relations from Device table

* add port relations

* add nodes retrieve on device or vlan

* rename to GetAPIKey

* update config for previous commit
2020-04-15 21:15:52 +01:00
Oliver GorwitsandGitHub 4e3bfee214 Add TACACS+ support per #660 (#662) 2019-10-15 18:23:51 +01:00
Oliver GorwitsandGitHub ecc9c6f209 sort the os_ver in the web interface (#663) 2019-10-15 18:23:34 +01:00
Oliver GorwitsandChristian Ramseyer 884a75a866 #659 speed up Macsuck::Nodes while using $snmp->cisco_comm_indexing (#661)
* #659 speed up Macsuck::Nodes while using $snmp->cisco_comm_indexing

* Do not read qb_fw_vlan when using cisco_comm_indexing
2019-10-14 22:08:38 +02:00
Oliver GorwitsandGitHub 4575aab888 Make more room for port log/control icons in port list display (#555) 2019-03-31 15:28:32 +01:00
Oliver GorwitsandGitHub da33ed4d4c Update .travis.yml 2019-03-28 22:15:55 +00:00
Oliver GorwitsandGitHub 46d8c52a08 Implement changes for API authentication and Swagger UI (#541)
* initial token-based-api login handler

* add token schema and validation

* initial import of pyro3d api code

* basic Swagger spec support

* Merge in working copy of API/Device.pm

* Fix some error handling for API/Device.pm

* Break out utility functions into separate file, to allow other api portions to use

* Add NodeIP support.

* Add nodeip plugin to config

* remove double define of "plugin:" (#448)

disclaimer: i did not test this is any way, came across it when looking for something else.

* only AuthZ header for api use, and alway regen key on login

* use RFC7235

* workaround for Swagger plugin weird response body

* do not autodiscover swagger routes

* code formatting only

* move api util to utils area

* initial full swagger spec for nodeip search

* add api user role and fix api auth failure response

* update version of swagger-ui to 3.20.3

* add more openapi defs

* fixes to SQL and api spec

* clean up subs

* improvements to login/logout for API

* make api logout work

* add openapi tags to group operations

* allow api params to be generated from DBIC schema spec

* remove API calls for nodes and devices

* remove some poor assumptions about api calls

* tidy up

* remove DDP

* make login and logout similar

* example of api call being handled by ajax call

* make the branch authonly
2019-03-17 20:27:19 +00:00
Oliver GorwitsandGitHub b5329d228b Add store phase and update Arpnip::Nodes to use it (#538)
* add store phase

* rework arpnip nodes to use store phase

* add late phase too so that users can still access content in db
2019-03-15 05:20:57 +00:00
Oliver GorwitsandGitHub d44a8f56ea Integrate netdisco-sshcollector into Worker::Plugin architecture (#489) (#535)
* update changes and SNMP::Info dep

* Integrate netdisco-sshcollector into Worker::Plugin architecture (#489)

* Initial integration of sshcollector into Worker::Plugin architecture

 * add NodesBySSH.pm
 * update Build.PL and config.yml to integrate the new module

* Further integration of sshcollector into Worker::Plugin architecture

 * added App::Netdisco::Transport::CLI loosely based on ::SNMP counterpart
 * switched to the more prevalent two-space tabs style
 * removed various TBD items, some new ones

* Further steps to integration of sshcollector into Worker::Plugin architecture

 * cleaned up code
 * added various error handling
 * warning for bin/netdisco-sshcollector deprecation
 * device_auth allows passing master_opts to Net::OpenSSH
 * netdisco-do -D also toggles Net::OpenSSH debug

* Merged NodesBySSH.pm into Nodes.pm

 * see https://github.com/netdisco/netdisco/pull/489#pullrequestreview-205603516

* Further integration of sshcollector into Worker::Plugin architecture

 * add snmp_arpnip_also option to sshcollector device_auth
 * cleanup code

* Remove big TBD: comment from CLI.pm as doc is updated now

* add transport/cli.pm to manifest

* revert some changes to allow simpler merging

* silent exit legacy script unless explicitly requested

* move ssh code into Transport, part one

* rewrite the CLI transport to provide an API

* merge in og-get_external_credentials

Squashed commit of the following:

commit 3fe8f383a7
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Mon Mar 11 17:07:42 2019 +0000

    add debug lines and tested

commit 3249739e42
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Mon Mar 11 16:54:11 2019 +0000

    change config name to get_credentials

commit e78558397a
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Mon Mar 11 16:51:11 2019 +0000

    separate out generic device auth to DeviceAuth module

commit 249f05165f
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Wed Mar 6 18:43:31 2019 +0000

    release 2.040007

commit e3af64df77
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Wed Mar 6 18:42:47 2019 +0000

    #521-redux fix wifi date search

commit 48857ae300
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Mon Mar 4 12:03:31 2019 +0000

    release 2.040006

commit e09dab5362
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Mon Mar 4 11:39:12 2019 +0000

    #527 update List::MoreUtils version requirement

commit 6e7de3fff3
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Mon Mar 4 09:59:41 2019 +0000

    release 2.040005

commit 0c98318a45
Author: Oliver Gorwits <oliver@spike.local>
Date:   Mon Mar 4 09:57:18 2019 +0000

    #526 fix discover syntax bug

commit e9efc45182
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sun Mar 3 14:56:48 2019 +0000

    release 2.040004

commit 6cdfd80d10
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sun Mar 3 14:34:00 2019 +0000

    allow undiscovered neighbors report to use discover_{waps,phones} setting

commit ac381e0802
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sun Mar 3 14:13:20 2019 +0000

    #506 was a red herring

commit b83e614c85
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sun Mar 3 13:00:36 2019 +0000

    make discover_{phones,waps} work with LLDP capabilities as well

commit 189d234b55
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sun Mar 3 12:47:38 2019 +0000

    check discover_no_type and friends earlier on in neighbors list build

commit 9c956466f3
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sun Mar 3 12:32:07 2019 +0000

    also update default config for new discover_phones and discover_waps settings

commit 09d29954d2
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sun Mar 3 12:26:50 2019 +0000

    #512 fix regression in phone/wap discovery exclusion

commit 2bae91f1b6
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sun Mar 3 12:01:34 2019 +0000

    rename match_devicetype() to match_to_setting()

commit 57cb6ddb70
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sun Mar 3 09:19:39 2019 +0000

    fix for over-eager fix to #506

commit ef560fb59a
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sat Mar 2 22:41:40 2019 +0000

    #506 relax device renumber so it works for an alias

commit 7a8bcb094e
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sat Mar 2 22:23:39 2019 +0000

    #521 Search Node Date Range not working

commit a643820a62
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sat Mar 2 21:54:27 2019 +0000

    #428 Port-Channels not showing in netmap

commit 5ba5bcd295
Merge: e7aacddb a1f95028
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sat Mar 2 20:04:11 2019 +0000

    Merge branch 'master' of github.com:netdisco/netdisco

commit e7aacddbc6
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sat Mar 2 20:01:05 2019 +0000

    #498 Map with VLAN filter omits unconnected devices

commit a1f95028ca
Author: nick n <39005454+inphobia@users.noreply.github.com>
Date:   Sat Mar 2 19:54:22 2019 +0100

    catch up with changes

    noticed that rc-sshcollector-core received updates to changes, add them here as well.

    didn't mention #499 & #522

commit ce1b847cea
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sat Mar 2 18:47:44 2019 +0000

    fix bug showing no nodes when only one matches in netmap

commit 78e30a7926
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sat Mar 2 16:28:15 2019 +0000

    #500 filtering in device/ports on native vlan duplicates entries

commit 9952f0c6c7
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sat Mar 2 15:02:12 2019 +0000

    #499 netdisco-do renumber reports wrong ip (inphobia)

commit ca3fd8f466
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sat Mar 2 15:00:18 2019 +0000

    #505 device renumber should update device port properties and device skips

commit 1265bc8470
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sat Mar 2 14:52:21 2019 +0000

    #520 catch slave ports defined without a master

commit d4c7579c10
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sat Mar 2 14:47:49 2019 +0000

    #522 TypeAhead.pm can reference empty data (inphobia)

commit 77decc23b7
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sat Mar 2 14:45:37 2019 +0000

    #514 inconsistent results in ip inventory (inphobia)

commit 3f211650b8
Author: nick n <39005454+inphobia@users.noreply.github.com>
Date:   Fri Mar 1 12:34:42 2019 +0100

    last pieces for db schema upgrade

    last piece of #510

* import legacy sshcollector config

* add default use_legacy_sshcollector config

* remove unneeded deps

* various fixes and now tested

* enable sshcollector platform tests
2019-03-12 18:50:24 +00:00
Oliver GorwitsandGitHub b9218d91c8 Support for external command to provide device_auth stanza (#532)
* separate out generic device auth to DeviceAuth module

* change config name to get_credentials

* add debug lines and tested
2019-03-12 13:13:06 +00:00
Oliver GorwitsandGitHub 65f695410e test compilation of all scripts and modules (#537)
* test compilation of all scripts and modules passes

* try adding NetSNMP::default_store

* try adding NetSNMP::default_store

* travis test all branches

* make Configuration.pm safe for tests

* remove dep

* try adding net-snmp

* dist: xenial

* try building Net-SNMP locally

* no need for Try::Tiny

* allow test to pass for DPP:p

* better testing setup for session cookies

* yay! working compile tests for ALL!
2019-03-12 13:02:35 +00:00
Oliver GorwitsandGitHub e4dabe525c Always notify from Travis to IRC and email on any code commit 2018-12-28 18:34:29 +00:00
Oliver GorwitsandGitHub 5cc99cf20f Update .travis.yml
Send git commit emails to the mail list from Travis, instead of from GitHub (they are retiring the option for that).
2018-12-28 18:24:05 +00:00
Oliver GorwitsandGitHub 515ea06687 Update README.md 2018-02-03 19:12:16 +00:00
Oliver GorwitsandGitHub ab3a9e3dc2 Update README.md 2018-02-03 19:01:26 +00:00
Oliver GorwitsandGitHub bef051521f Update README.md 2018-02-03 19:00:44 +00:00
Oliver GorwitsandGitHub 9566c3ab5a Update .travis.yml 2018-01-29 20:09:30 +00:00
Oliver GorwitsandGitHub 98e9749bba Update .travis.yml 2018-01-29 19:49:32 +00:00
Oliver GorwitsandGitHub ea4eab740d simplify test builds
to speed them up and be kinder to Travis CI free service.
2018-01-29 19:47:07 +00:00
Oliver GorwitsandGitHub 3f11009ebc Update README.md 2018-01-26 09:48:13 +00:00
Oliver GorwitsandGitHub 1a73c19d51 Update README.md 2018-01-25 15:22:11 +00:00
Oliver GorwitsandGitHub 13a29dc8f8 Update README.md 2018-01-23 20:00:19 +00:00
Oliver GorwitsandGitHub a9d9b49ad6 add docker images link 2018-01-23 19:58:52 +00:00
Oliver GorwitsandGitHub 6047373d3e Update README.md 2018-01-23 19:52:14 +00:00
Oliver GorwitsandGitHub 87c1537a80 Update .travis.yml
only build tags matching 2.######
2018-01-10 01:30:36 +00:00
Oliver GorwitsandGitHub 8fe9b4e9bd Update .travis.yml 2018-01-06 10:48:44 +00:00
Oliver GorwitsandGitHub ee51aa65ac added comments about SNMP::Info and netdisco-mibs 2017-08-21 20:19:06 +01:00
Oliver GorwitsandGitHub 8b33f4be0a typo fix 2017-07-04 18:06:03 +01:00
Oliver GorwitsandGitHub 9437bccb72 Update Changes 2017-02-04 20:09:55 +00:00
Oliver GorwitsandGitHub 2cf2119f77 Fix #27 SNMP for Huawei, CloudEngine, Linksys 2017-02-04 20:08:01 +00:00
Oliver GorwitsandGitHub bf3ffc460b Add documentation note about SNMPv3 configuration on Cisco IOS (#288)
* Add note about SNMPv3 context config on IOS

* Update changelog for snmpv3 doc note
2017-01-06 14:06:11 +00:00
Oliver GorwitsandGitHub f031446a6f Add issues template for github (#287)
* Added issue template file to help users.

* Added link to markdown docs

* reformat
2017-01-06 12:42:14 +00:00