Commit Graph
100 Commits
Author SHA1 Message Date
nick nandGitHub 1b2c15e083 now with openbsd support 2022-11-10 22:51:15 +01:00
nick nandGitHub 97c05658b7 fix db scheme version for 2.058000 (#940)
2.058000 has db schema changes but we did not update the version here
2022-11-04 14:54:55 +00:00
nick nandGitHub a9b2589624 fix ordering to match headers, could be fallout from pr902 or adding ifindex (#931) 2022-10-04 10:53:57 +01:00
636aa07f2d Give Pseudo Devices better OS, OS ver, Port Descr, Discovered, and DNS Name
* started pseudodevice rework
* give them a type, os, os_ver and num_ports
  * os_ver will be the netdisco version in which they were created
* give their ports the same value for device_port.descr as device_port.port
* add db update to fill out those fields if they are null, which is most likely
* update last_discover if you make changes to the device
* num_ports will not be updates by the db script, neither will device_port.descr

* use device.name, not device.dns for pseudo

* at least try and get reverse dns for pseudo, works if there is one

* add db revision to manifest

* take dns no config into account

* new meta

* new version

Co-authored-by: Oliver Gorwits <ollyg@users.noreply.github.com>
2021-11-06 21:52:59 +00:00
nick nandGitHub 1f44d097b1 require Session::Storage::Secure 1.000 for #774 (#781)
we can put in the release notes that sessions will be invalidated by the upgrade and users must log in again
2021-06-23 22:03:42 +01:00
nick nandGitHub 20509e6a91 move travis from .org to .com (#793)
not tested but seems to work
2021-06-23 22:00:56 +01:00
nick nandGitHub 83a946d36e replace unicode nonbreaking space with ascii space (#794) 2021-06-23 22:00:33 +01:00
nick nandGitHub e62a35ac8d libera irc 2021-05-28 02:22:31 +02:00
nick nandGitHub de32a7a986 libera irc 2021-05-28 02:22:01 +02:00
nick nandGitHub cbbeaf68de ignore vscode dir (#780) 2021-04-13 23:18:25 +02:00
nick nandGitHub 951139fe7c ignore .vscode dir (#777) 2021-03-13 17:55:19 +01:00
nick nandGitHub b211c7c7e2 remove vim settings from files (#676)
vim is great, but just use .vimrc instead of settings in the source files.

or if anyone cares that much, write up a sample one and add it to git.
2019-10-31 03:36:19 +01:00
nick nandOliver Gorwits 2b666dd445 jquery security fix for CVE-2019-11358 (#655)
https://nvd.nist.gov/vuln/detail/CVE-2019-11358#vulnCurrentDescriptionTitle
since we are some versions (jq 1.9.1 or something close to that according to the source) behind the last release of the 1.x train (1.12.4) the patch was not compatible, so the file has been manually edited to apply the needed changes

jquery 1.12.4 official patch:
https://github.com/DanielRuf/snyk-js-jquery-174006/blob/master/jquery-1.12.4.min.patch
2019-10-05 12:19:36 +01:00
nick nandGitHub a3a368af49 typo
reported by scratchfury on irc
2019-09-27 17:12:39 +02:00
nick nandGitHub 4399705217 missing semicolon 2019-09-03 23:54:39 +02:00
nick nandGitHub a734890055 some documentation fixes (#640)
* a few more files to ignore

* the pgtune we reference seems to be dead, provide
a few alternatives.

* steal pod syntax check from snmp::info, but don't bother with checking Test::Pod version.
we want 1.22 or later, which was released in 2005

* reference the release notes in our wiki. changes you need to make manually during upgrades are documented there.

* add pod test to manifest

* term was defined around line 111 and then again at line 209, rename the second one
2019-08-29 02:22:28 +02:00
nick nandGitHub 9730b87afa move some things around 2019-08-28 22:43:29 +02:00
nick nandGitHub 2f4edb9225 more info equals faster troubleshooting 2019-08-28 22:39:12 +02:00
nick nandGitHub 30759d7102 trailing whitespace 2019-08-27 00:02:39 +02:00
nick nandGitHub adf80a1671 i guess this should work too 2019-08-23 21:05:55 +02:00
nick nandGitHub dbc3fae588 set default to false in create statement
this way existing users will be set to false instead of undef
2019-08-23 20:54:24 +02:00
nick nandGitHub 54fbc00407 license file renamed 2019-08-23 20:25:39 +02:00
nick nandGitHub 2b4802d21a typo 2019-08-17 10:43:30 +02:00
nick nandGitHub 8a40559115 typos 2019-08-17 10:37:21 +02:00
nick nandGitHub 131d80c95e typo 2019-08-17 10:35:57 +02:00
nick nandGitHub 22cb988a8f typo 2019-08-17 10:34:19 +02:00
nick nandGitHub 205a3932f2 typo 2019-08-17 10:33:32 +02:00
nick nandGitHub d31cae99bc typo 2019-08-17 10:32:13 +02:00
nick nandGitHub 860985673b typo 2019-08-17 10:30:25 +02:00
nick nandGitHub 26f410f9ce typo 2019-08-17 10:28:11 +02:00
nick nandGitHub bf789cb57b typos 2019-08-17 10:25:49 +02:00
nick nandGitHub 92bc49f274 typo 2019-08-17 10:20:22 +02:00
nick nandGitHub f031ae4992 typo 2019-08-17 10:18:43 +02:00
nick nandGitHub 416a6939ec you really need to install the packages we ask 2019-08-06 23:51:45 +02:00
nick nandGitHub 38b800e46f fix travis
i hope, seems they switched ubuntu versions to something more recent
2019-08-06 02:02:43 +02:00
nick nandOliver Gorwits 8a8deccdbe make sidebar tiny bit wider (#625) 2019-08-02 23:12:02 +01:00
nick nandOliver Gorwits e37a834749 compare ieee mac against 6 iterations (#611) 2019-08-02 23:07:56 +01:00
nick nandGitHub 4630879a1d add poe on/off icons to legend
inspired by the new wap icon
2019-07-19 06:45:44 +02:00
nick nandGitHub d1a1235c85 handle row.power.power being NULL
fixes this error, since device_port_power.power can be null:
Argument "" isn't numeric in numeric gt (>) at /home/netdisco/perl5/lib/perl5/auto/share/dist/App-Netdisco/views/ajax/device/ports.tt line 251.

currently only seen on cisco sb switches, which do have all other columns filled in
      ip       | port | module | admin |   status   | class  | power
---------------+------+--------+-------+------------+--------+-------
 10.40.254.150 | fa2  |      1 | true  | otherFault | class3 |
 10.40.254.150 | fa16 |      1 | true  | searching  | class3 |
 10.40.254.150 | fa3  |      1 | true  | searching  | class3 |
...
2019-07-19 04:16:06 +02:00
nick nandGitHub 5b9761cbae netdisco-docker triage
point netdisco docker users to the docker issue tracker as a first step, so we can spent less time on triaging issues.

netdisco docker has some quirks not present in regular netdisco, if it turns out to be non container related we can always move the issue back to this tracker.

btw, seems we need to change our issue templates, but only project admins can do so:
"You are using an old version of issue templates. Please update to the new issue template workflow. Learn more."
-> https://help.github.com/articles/about-issue-and-pull-request-templates
2019-07-19 01:14:27 +02:00
nick nandGitHub f1891be307 typo
noticed when checking docker config
2019-07-17 04:06:38 +02:00
nick nandGitHub 6f8dfabc87 a few more files to ignore (#609) 2019-06-25 03:42:18 +02:00
nick nandGitHub 1460d8864b fix pod
as seen in b58a62f & a61159d
2019-06-18 15:58:20 +02:00
nick nandGitHub da5cdeb602 fix pod as in b58a62 2019-06-18 15:57:17 +02:00
nick nandGitHub 26ab5da1c1 fix pod as in b58a62 2019-06-18 15:56:18 +02:00
nick nandGitHub 9006d83989 fix pod formatting and typos
as seen in b58a62f & a61159d
2019-06-18 15:53:30 +02:00
nick nandGitHub 8e0e27c149 fix pod formatting
as seen in b58a62f & a61159d
2019-06-18 15:45:51 +02:00
nick nandGitHub ad84047398 fix pod
as in a61159d
2019-06-18 15:44:02 +02:00
nick nandGitHub 469a9ce554 fix pod formatting
as seen in b58a62f
2019-06-18 15:41:10 +02:00
nick nandGitHub 441499f063 fix pod formatting
as seen in b58a62f
2019-06-18 15:39:47 +02:00
nick nandGitHub 9a92e7e2a2 yaml whitespace matters
so at least mention that as well as how to include it in tickets.
2019-06-16 05:27:14 +02:00
nick nandGitHub 534f3cc340 fix everything that does not use sidebar in web if
ade1466 broke this
2019-06-01 22:55:38 +02:00
nick nandGitHub ade14665fc fix #601
this broke all kinds of stuff, will need new netdisco release asap.

yet 1 more reason to work harder on my html5 transition
2019-06-01 22:51:10 +02:00
nick nandGitHub 7d9c86cee1 perl 5.30 is released
update travis
2019-05-30 04:06:38 +02:00
nick nandGitHub 5f36916018 last pieces of b59043d / #590 (#600)
since the rest was removed, these comments no longer make sense
2019-05-28 23:29:59 +02:00
nick nandOliver Gorwits e65f7b84c8 dbic sync between actual db & our functions/docs (#595) 2019-05-27 12:39:07 +01:00
nick nandGitHub f2ddf175b7 device_auth
also untested
2019-05-27 02:42:47 +02:00
nick nandGitHub 4514855b03 device_auth
uhhu, untested
2019-05-27 02:39:59 +02:00
nick nandGitHub 496a3719c0 device_auth usage
untested, who would have guessed?
2019-05-27 02:37:55 +02:00
nick nandGitHub 0a20f68859 device_auth config
totally untested, but old one was worse
2019-05-27 02:35:58 +02:00
nick nandGitHub 04eb4d9801 change to device_auth config
totally untested, but old config should be bad too.

also, change devicetype from ios to asa.
2019-05-27 02:32:43 +02:00
nick nandGitHub 065e74df62 ask for some device info
often needed while troubleshooting, and the verbose options give even more helpfull info
2019-05-23 23:40:27 +02:00
nick nandOliver Gorwits cd2a4b9362 html template fixups (#576)
* none is not a valid value for min-width, so set it to zero

* these 2 "checked" if statements need a space in front of them,
else they will attach to the previous element

id="nd_showspeed"checked="checked"

* multiple tag has no options according to
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select

also, don't close select before we've gotten to the option tags

* multiple tag has no options according to
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select

also, don't close select before we've gotten to the option tags

* just to be sure put a space in front of these optional tags as well,

* $a is technically allowed but is considered not best practice
2019-05-12 08:32:42 +01:00
nick nandGitHub 90a7ee6b56 configuration has moved to the wiki (#574)
found with intellij idea
2019-05-02 21:19:06 +02:00
nick nandOliver Gorwits 3ec136aea3 allow setting some speudo device info (#572)
* allow port name to be changed on pseudo devices, was once added in commit 1f020e07ee

* also allow this for location and contact
2019-05-02 13:19:46 +01:00
nick nandGitHub 3d5525ca77 intellij support (#573)
having a go at intellij + perl support & cygwin. working surprisingly well.

exclude it's project configuration
2019-05-02 05:07:08 +02:00
nick nandGitHub 7ae1e7b13c move testing targets to perl 5.10 and 5.28 2019-04-30 18:00:46 +02:00
nick nandGitHub 389e460878 show some opensuse love
at least for opensuse leap 15.0
2019-04-30 16:27:01 +02:00
nick nandGitHub 0f2ce6b055 spelling/wording 2019-04-24 22:17:06 +02:00
nick nandGitHub 5beed9cb04 wording 2019-04-24 21:50:45 +02:00
nick nandGitHub fd4752897d netdisco rancid updates (#558)
* typo

* make this a link

* netdisco-rancid-export has been replaced

* rancid worker config

* netdisco-rancid-export now a no-op

* note debugging option
2019-04-05 01:28:30 +02:00
nick nandGitHub 47adf30cc4 install graphviz package
GraphViz requires the dot binary which should come with the graphviz operating system package

this should hopefully fix
! Configure failed for GraphViz-2.24. See /home/travis/.cpanm/work/1553436397.11520/build.log for details.
2019-03-24 15:31:57 +01:00
nick nandOliver Gorwits 3e5e7d36cc whitespace cleanup (#547)
* whitespace

* start tbody correctly
2019-03-23 09:28:43 +00:00
nick nandGitHub 7ad712d79a missing closing anchor tag 2019-03-23 02:40:47 +01:00
nick nandGitHub 3f407685b1 unneeded question marks 2019-03-23 02:07:17 +01:00
nick nandGitHub a1f95028ca catch up with changes
noticed that rc-sshcollector-core received updates to changes, add them here as well.

didn't mention #499 & #522
2019-03-02 19:54:22 +01:00
nick nandGitHub 3f211650b8 last pieces for db schema upgrade
last piece of #510
2019-03-01 12:34:42 +01:00
nick nandGitHub 1620feaa6a tiny typo
iteself -> itself
2019-02-22 22:53:20 +01:00
nick nandOliver Gorwits fe70b01bcc i think end anchor should be in the if clause (#493) 2019-01-26 22:09:55 +00:00
nick nandOliver Gorwits e6d087ef5f fix for #491 (untested) (#492)
* move things to debug logging instead of info

* use message which was discussed

* merge master

* fix for #491. also use doublequotes in sprintf in portcontrol.pm line 59, else $device will not be printed
2019-01-24 14:12:06 +00:00
nick nandOliver Gorwits 89b8f8c0ce allow snmp::info base class in netdisco-do (#486)
* allow the use of base snmp::info

* dont use .

* should have been: dont use $_

* also document some extra features

* reword
2019-01-14 22:02:08 +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
nick nandGitHub c416e2505b more changes for 4.020003 2019-01-14 02:36:37 +01:00
nick nandGitHub 0205a11f01 makerancidconf overhaul
* Use the Fullname in top bar of Web interface and not the login

* Implement the following parameters:
 - add a rancid_conf parameter to retrieve the existing type for RANCID devices
 - add the default_group parameter to add devices in this group if they doesn't match the other parameters
 - add the hability to work with the RANCID version in https://github.com/earendilfr/rancid with subdirectory for the configuration files

* Fix following issues:
- Problem during the check of ACL when we have a negate character. The begate character is deleted during the first check
- The renumber function doesn't want to start

* Revert "Fix following issues:"

This reverts commit a8d9e8200a925b1a4d24374827d3fd5146f85b40.

* Revert "Implement the following parameters:"

This reverts commit aa29ca924cd92943490e4a2420a3972054e81e41.

* 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.

* New version of the pull request to merge the makerancid improvment.
I have fixe some errors that have impact the revert for the PR #408

I have manually check on my instance and didn't see any warning on the result of the command netdisco-do makerancidconf

* Fix an issue if the by_ip group not exist in the RANCiD part of configuration

* Print the entry sorted in the router.db file

* testing if the sql in #436 can be integrated

* a bit of documentation cleanup

* a few more doc fixes

* minor docs changes

* rename rancid_home to rancid_cvsroot, which is how the setting is defined in rancid. this should make things clearer

* a bit more in-depth examples. allow for more device types (allow - in their name). use strict & warnings

* just to many caps
2019-01-14 01:56:32 +01:00
nick nandOliver Gorwits 8f952ce2e3 option to fix #457 (#481)
* move things to debug logging instead of info

* use message which was discussed

* fix for address table sorting
2019-01-08 20:53:46 +00:00
nick nandOliver Gorwits 40df018ead also make os a link in device details (#482) 2019-01-08 20:53:17 +00:00
nick nandGitHub 98a5e2c407 #479 part 2, use debug logging instead of info (#480)
#479 part 2, use debug instead of info logging.

2 whitespace cleanups also included, as well as rewording props -> properties like in the rest of portproperties.pm
2019-01-08 01:50:21 +01:00
nick nandGitHub 272901204b remote stray </th>
firefox said:

XML Parsing Error: mismatched tag. Expected: </tr>.
Location: http://xxx/ajax/content/statistics
Line Number 59, Column 17:

you know what, it was right.
2019-01-03 20:45:43 +01:00
nick nandGitHub a8b88220e7 perhaps i can sneak my name in here too :) 2019-01-03 01:20:49 +01:00
nick nandGitHub 879237ff62 getting a head start on 2.040003 changes
since things are moving fast, alrdy add what has been done.
2019-01-03 01:19:09 +01:00
nick nandGitHub ddb2456a4a netdisco-sshcollector doc cleanup
passed travis build, podchecker, proofreading & running netdisco-sshcollector.
2019-01-01 17:55:53 +01:00
nick nandGitHub 485abbc9bd trailing whitespace 2018-12-30 07:52:27 +01:00
nick nandGitHub 5fb9d52278 reference wiki, not nonexisting manual 2018-12-30 00:26:07 +01:00
nick nandOliver Gorwits 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 nandOliver Gorwits 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
nick nandOliver Gorwits 08589ebf96 workaround for #457 (#465)
i'm not in anyway versed in javascript, but this hack fixes #457 for me.
2018-12-28 16:00:13 +00:00
nick nandOliver Gorwits 9f8dd0039b docs are maintained in wiki (#470)
per @ollyg:
"the manual files were all converted into GitHub wiki pages"
2018-12-28 14:32:05 +00:00
nick nandGitHub 733f82c3dc 2 typos 2018-12-13 22:52:48 +01:00
nick nandGitHub e94f15dc8a typo (paramter instead of parameter)
typo (paramter instead of parameter)
2018-12-13 22:42:52 +01:00
nick nandGitHub 3474d028ec 1 more isdn interface to ignore
not sure if this is a typo or not, but bri singaling interfaces have 1 'l' on cisco devices.

"BRI0-Signaling" was taken from a netdisco report, router is a "897VaK9" running ios "15.5(3)M7".

as such, i've added the 1 'l' variant to the ignore_interfaces list. if this was indeed a typo perhaps the double 'll' variant can be deleted.
2018-11-28 02:43:15 +01:00