Commit Graph
86 Commits
Author SHA1 Message Date
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 Gorwits e3af64df77 #521-redux fix wifi date search 2019-03-06 18:42:47 +00:00
Oliver Gorwits 6cdfd80d10 allow undiscovered neighbors report to use discover_{waps,phones} setting 2019-03-03 14:34:00 +00:00
Oliver Gorwits 2bae91f1b6 rename match_devicetype() to match_to_setting() 2019-03-03 12:01:34 +00:00
Oliver Gorwits 7a8bcb094e #521 Search Node Date Range not working 2019-03-02 22:23:39 +00:00
Oliver Gorwits a643820a62 #428 Port-Channels not showing in netmap 2019-03-02 21:54:27 +00:00
Oliver Gorwits e7aacddbc6 #498 Map with VLAN filter omits unconnected devices 2019-03-02 20:01:05 +00:00
Oliver Gorwits ce1b847cea fix bug showing no nodes when only one matches in netmap 2019-03-02 18:47:44 +00:00
Oliver Gorwits 78e30a7926 #500 filtering in device/ports on native vlan duplicates entries 2019-03-02 16:28:15 +00:00
Oliver Gorwits d4c7579c10 #522 TypeAhead.pm can reference empty data (inphobia) 2019-03-02 14:47:49 +00:00
Oliver Gorwits 77decc23b7 #514 inconsistent results in ip inventory (inphobia) 2019-03-02 14:45:37 +00:00
nick nandOliver Gorwits 6a36baa961 add a new tab to device -> vlans (#483)
* first steps for vlan tab

* export sort_vlans, use strict/warnings

* update manifest, get worker closer to functioning

* remove ie 9 script & extra ./th

* make it work

* cleanup

* readd internet explorer code

* start for csv output

* move things to debug logging instead of info

* use message which was discussed

* fix for address table sorting

* link os

* final touches thx to ollyg

* fetch origin/master

* VLAN is the preferred style for user interface usage

* does a missing libexpat-dev make travis builds complain?

* Revert "does a missing libexpat-dev make travis builds complain?"

This reverts commit 0cebc66f42708ff0f946213aab4bcbcc1b1b1379.
2019-01-14 21:57:37 +00:00
Oliver Gorwits 1b2592321d address https://metacpan.org/pod/distribution/perl/pod/perldelta.pod#Removal-of-use-vars 2019-01-07 22:51:05 +00:00
Oliver Gorwits 3ddc1a3c8a #446 fix typo in NodeVendor report - rflor 2018-10-19 21:33:58 +01:00
slofunkandOliver Gorwits 00ac3cff4a update NodeVendor.pm (#427)
It would seem like we'd want for this to be distinct mac addresses here right? Otherwise you'd could get duplicate counters. In our environment where things move around this makes for repeat lines in the nodes table. To get a true inventory count I'd think this should only count unique macs. Apologies if this is NOT the desired output for this module.
2018-10-19 14:42:37 +01:00
Oliver Gorwits 3d27184b1c #414 clicking discover button with empty field causes crash 2018-05-08 22:33:31 +01:00
Oliver Gorwits d7a0bec20b device port search will match on Description as well as Port 2018-05-07 17:34:13 +01:00
Oliver Gorwits 6098b893ad #410 improvements to Undiscovered Neighbors report 2018-05-07 17:15:11 +01:00
Oliver Gorwits 5eb443438c make netmap Color By Host Group work with no groups selected 2018-04-23 20:41:07 +01:00
Oliver Gorwits f7df6b907b copy munge_highspeed from SNMP::Info to avoid having dependency from web frontend 2018-04-23 08:12:57 +01:00
Oliver Gorwits 75a199690c #400 add defanged_admin config to allow disabling of risky actions 2018-04-22 18:49:15 +01:00
Oliver Gorwits 2c440e2dda #393 (redux) avoid "modification of readonly variable" error in netmap 2018-04-19 08:25:04 +01:00
Oliver Gorwits a30cb33de9 #394 (redux) enabled "Management IPs" hides after "Redraw Map" 2018-04-19 08:17:37 +01:00
Oliver Gorwits 61211cfd20 fix typo 2018-04-18 21:35:06 +01:00
Oliver Gorwits f2ebd07c07 #393 avoid "modification of readonly variable" error in netmap 2018-04-18 21:12:25 +01:00
Oliver Gorwits 2caae8a642 clean up check_mac() interface (ml-cms) 2018-04-18 19:24:08 +01:00
Oliver Gorwits 11e49671fd #388 searching for 0.x.x.x returns Internal Server Error (C. Neuhaus) 2018-04-10 21:22:06 +01:00
Oliver Gorwits 7a481282c0 allow empty description 2018-04-08 13:11:02 +01:00
Oliver Gorwits d9a0103150 fix case insensitive username match for LDAP 2018-03-26 22:57:01 +01:00
Oliver Gorwits 3d5a26266e better link speed names on network map 2018-03-24 11:33:09 +00:00
Oliver Gorwits b3457954a3 access to manual topology for admins without port_control role 2018-03-22 17:17:27 +00:00
Oliver Gorwits ea9ac1c1a1 #371 usernames are case insensitive but case preserving 2018-03-21 09:23:11 +00:00
Oliver Gorwits 72b64048bb fix netmap position saving 2018-03-19 22:58:14 +00:00
Oliver Gorwits 90cfac5e7a rename device_groups to host_groups in netmap positions 2018-03-19 18:15:50 +00:00
Oliver Gorwits a2ce65c8b8 working folters and colors for host group and location 2018-03-19 17:47:22 +00:00
Oliver Gorwits 22e6e7a2d8 initial location filtering 2018-03-10 14:27:04 +00:00
Oliver Gorwits ffc3f21533 rename devgrp to hgroup in netmap 2018-03-10 14:05:12 +00:00
Oliver Gorwits 9fa8372685 #274 errors in IP Inventory report 2018-03-10 11:32:02 +00:00
Oliver Gorwits a2269c469f #24 Show device age in device search view 2018-03-10 11:09:04 +00:00
Oliver Gorwits 66e3d2d64e #31 Configurable Free Time in Port Utilization Report 2018-03-10 10:45:39 +00:00
Oliver Gorwits dd44877059 #48 Node Monitor supports matching on OUI 2018-03-10 09:26:23 +00:00
Oliver Gorwits 66ecb203a7 #370 Missing Map Links due to inability to parse port speeds 2018-03-05 21:42:02 +00:00
Oliver Gorwits 6a43842ea9 #372 fix inventory doesn't work with only one device 2018-03-02 15:59:47 +00:00
Oliver Gorwits 0806a3c321 cleaner display for remote phones and aps without SNMP 2018-03-02 13:00:55 +00:00
Oliver Gorwits 7b5f8c76f3 complete the migration of connected device ID to connected inventory 2018-03-02 12:42:36 +00:00
Oliver Gorwits 8d82023ac6 implement system_reports and convert PortErrorDisabled to system report 2018-02-22 21:31:17 +00:00
Oliver Gorwits 2aaec6b059 add start of err disabled report 2018-02-22 07:52:41 +00:00
Oliver Gorwits b69ad22a52 show port error disable state in device ports view 2018-02-22 07:27:11 +00:00
Oliver Gorwits b1abf826dc #363 Show user fullname if available in navbar (earendilfr) 2018-01-28 18:20:39 +00:00
Oliver Gorwits 57d308196b better tooltip for netmap 2018-01-01 01:07:56 +00:00