Commit Graph

342 Commits

Author SHA1 Message Date
Oliver Gorwits
6b5d2602b5 allow api params to be generated from DBIC schema spec 2019-01-01 13:36:24 +00:00
Oliver Gorwits
c045a96a47 add openapi tags to group operations 2019-01-01 12:37:19 +00:00
Oliver Gorwits
2ad803da64 make api logout work 2019-01-01 12:28:48 +00:00
Oliver Gorwits
f362b0aee3 improvements to login/logout for API 2019-01-01 12:04:26 +00:00
Oliver Gorwits
3b0a9f6310 clean up subs 2019-01-01 10:41:33 +00:00
Oliver Gorwits
f56c48b83d fixes to SQL and api spec 2018-12-31 23:21:44 +00:00
Oliver Gorwits
0151fc86a7 add more openapi defs 2018-12-31 22:59:13 +00:00
Oliver Gorwits
0866747688 update version of swagger-ui to 3.20.3 2018-12-31 19:56:10 +00:00
Oliver Gorwits
4691808fa6 add api user role and fix api auth failure response 2018-12-31 19:30:48 +00:00
Oliver Gorwits
1a038079bf initial full swagger spec for nodeip search 2018-12-31 18:43:35 +00:00
Oliver Gorwits
5a4f9d784f move api util to utils area 2018-12-31 18:22:01 +00:00
Oliver Gorwits
92f1d2eb9d code formatting only 2018-12-31 18:21:28 +00:00
Oliver Gorwits
07cf1673e1 do not autodiscover swagger routes 2018-12-31 18:17:54 +00:00
Oliver Gorwits
32ba1a6b45 workaround for Swagger plugin weird response body 2018-12-31 18:14:42 +00:00
Oliver Gorwits
1a66dcccea use RFC7235 2018-12-31 17:43:31 +00:00
Oliver Gorwits
3b7bb65387 only AuthZ header for api use, and alway regen key on login 2018-12-31 17:39:36 +00:00
Oliver Gorwits
227d0ced40 Merge branch 'master' into og-api-tokens 2018-12-31 17:27:30 +00:00
Oliver Gorwits
b445d237e4 #471 OSPF Neighbor Discovery by router ID 2018-12-28 17:32:40 +00:00
nick n
8aed736925 ignore notpresent interfaces, with type filtering config item (set to [] to not filter). work done by postilion/nic bernstein, filter by me. also includes trailing space fix by nic. (#464) 2018-12-28 16:08:40 +00:00
nick n
86c38c9466 make job queue list in webinterface configurable (#469)
* add an option so you can define the amount of jobs returned in the webinterface jobq

* and now the actually working version
2018-12-28 16:01:40 +00:00
Christian Ramseyer
f5622929e0 Provide stdin to IOSXR.pm when none available (#462)
* See issue #461 for a detailed description
2018-12-28 14:33:02 +00:00
nick n
733f82c3dc 2 typos 2018-12-13 22:52:48 +01:00
Mohammad S Anwar
369590d17f Fixed pod error as reported by CPANTS. (#456) 2018-11-27 11:18:45 +00:00
Ryan Gasik
700cb73111 Add NodeIP support. 2018-10-24 21:06:43 -07:00
Ryan Gasik
acaa3b8c5c Break out utility functions into separate file, to allow other api portions to use 2018-10-24 20:53:29 -07:00
Ryan Gasik
d79411a34d Fix some error handling for API/Device.pm 2018-10-24 20:41:41 -07:00
Ryan Gasik
4d68bffeea Merge in working copy of API/Device.pm 2018-10-21 22:39:29 -07:00
Oliver Gorwits
ee8cd72ef1 basic Swagger spec support 2018-10-21 19:12:06 +01:00
Oliver Gorwits
734166fcef initial import of pyro3d api code 2018-10-21 18:07:20 +01:00
Oliver Gorwits
f01bc6a695 add token schema and validation 2018-10-21 17:46:25 +01:00
Oliver Gorwits
fb4e5c0793 initial token-based-api login handler 2018-10-21 13:37:27 +01:00
Oliver Gorwits
3ddc1a3c8a #446 fix typo in NodeVendor report - rflor 2018-10-19 21:33:58 +01:00
Oliver Gorwits
847d7e16e3 #443 attempt to handle IPs and Names in show arp output - darknicht66 2018-10-19 15:31:31 +01:00
Oliver Gorwits
ffa2aefd8d Revert "#432 fix regexp for arp display - stromsoe"
This reverts commit 75507ed521.
2018-10-19 15:29:32 +01:00
Oliver Gorwits
75507ed521 #432 fix regexp for arp display - stromsoe 2018-10-19 15:25:36 +01:00
Oliver Gorwits
ea2fde1e56 #439 add expire_userlog with default 365 days 2018-10-19 15:11:26 +01:00
Oliver Gorwits
fb3ef12854 in fact localtime is correct if server admin runs server in GMT
Revert "#441 change localtime to gmtime"

This reverts commit 779e0a618d.
2018-10-19 15:08:38 +01:00
Oliver Gorwits
2818591462 #431 sshcollector calls die() even if all the work is not done - stromsoe 2018-10-19 14:59:32 +01:00
Oliver Gorwits
779e0a618d #441 change localtime to gmtime 2018-10-19 14:49:03 +01:00
slofunk
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
e39cf197bf further tune job picker 2018-06-17 21:55:18 +01:00
Oliver Gorwits
13d5f04465 #419 "neigh - discrepancy in IP" due to differences in IPv6 formatting 2018-06-08 10:56:16 +01:00
Oliver Gorwits
0cce3b3834 jobs with username are only allowed one attempt to unskip 2018-06-07 23:17:13 +01:00
Oliver Gorwits
87f1297f25 Merge branch 'og-2.040' 2018-05-09 06:50:55 +01:00
Oliver Gorwits
d959adde36 issue DB schema statements each within savepoints 2018-05-09 06:07:30 +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
a97780201d Revert "Squashed commit of the following:"
This reverts commit 232df96457.
2018-05-07 17:25:24 +01:00
Oliver Gorwits
6098b893ad #410 improvements to Undiscovered Neighbors report 2018-05-07 17:15:11 +01:00
Oliver Gorwits
232df96457 Squashed commit of the following:
commit 43a3729a206c8d04f9e156d1d811a1b7cfb84089
Author: Oliver Gorwits <oliver@cpan.org>
Date:   Sun May 6 22:44:09 2018 +0100

    #408 improvements to MakeRancidConf (earendilfr)

commit 205911175ef52e0107ca59b96f51fee393120582
Author: Ambroise <earendil@toleressea.fr>
Date:   Thu Apr 26 17:44:15 2018 +0200

    Add the following parameters to the MakeRancidConf:

     + Change the default delimiter character from ':' to ';' that is the default RANCID delimiter since
       RANCID 3.x
     + Add an option to define the rancid config directory.
       This directory will be used to extract the vendor defined in the RANCID configuration to avoid to extract
       unexisting vendor devices in RANCID configuration (by example, Ubiquiti AirOS devices).
     + Add an option to define a default_group.
       If a device doesn't match the defined group, it will add to this group
     + Add an option to defined a manually excluded ACL
       To permit to not export devices from Netdisco to RANCID based on an ACL.
2018-05-06 22:46:57 +01:00