Commit Graph

86 Commits

Author SHA1 Message Date
Oliver Gorwits
ef560fb59a #506 relax device renumber so it works for an alias 2019-03-02 22:41:40 +00:00
Oliver Gorwits
1265bc8470 #520 catch slave ports defined without a master 2019-03-02 14:52:21 +00:00
ram
c2600ac550 Change location of ifindex to DevicePortProperties
* instead of DevicePort
* as requested by Oliver in PR #513 review
2019-02-23 15:26:38 +01:00
ram
24a7e80470 PR for #510 - store ifindex in device_port 2019-02-23 15:26:38 +01:00
nick n
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 n
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 n
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 n
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
Oliver Gorwits
7f1074ff84 #479 attempt better cache control for device ports 2019-01-07 22:47:13 +00:00
Oliver Gorwits
1dc3e70e37 fix to hopefully catch txrate and rate being scalar not list, as reported by inphobia 2019-01-03 22:59:33 +00:00
Oliver Gorwits
7811c32147 fix cached ports list which needs to be complete rows for Neighbors.pm to work 2019-01-03 22:56:17 +00:00
Oliver Gorwits
ccb0f0c78a #475 fix discover plugins do not respect ignore* config 2019-01-02 22:36:59 +00:00
Oliver Gorwits
3769b7b66b fix to the fix for ospf_routers discovery 2019-01-02 20:56:41 +00:00
Oliver Gorwits
6a986783e4 fix to the fix for ospf_routers discovery 2019-01-02 20:54:50 +00:00
Oliver Gorwits
505b7b5625 #471 fix bug in checking if there are OSPF router IDs to poll 2019-01-02 20:21:34 +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
Mohammad S Anwar
369590d17f Fixed pod error as reported by CPANTS. (#456) 2018-11-27 11:18:45 +00:00
Oliver Gorwits
ea2fde1e56 #439 add expire_userlog with default 365 days 2018-10-19 15:11:26 +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
a97780201d Revert "Squashed commit of the following:"
This reverts commit 232df96457.
2018-05-07 17:25:24 +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
Oliver Gorwits
0d8cd3e764 #411 store_modules: false is ignored 2018-05-05 16:12:43 +01:00
Oliver Gorwits
fa6f70ac8a #413 manual retrigger of discovery does not work 2018-05-05 16:00:14 +01:00
Oliver Gorwits
cddbf44916 do not enqueue the same routed peer more than once 2018-04-28 11:40:58 +01:00
Eric A. Miller
8d1fb71c76 #401 Autodiscovery via EIGRP peers 2018-04-19 00:16:56 -04:00
Oliver Gorwits
b36a9e5699 #392 fix heuristic neighbour detection 2018-04-18 21:27:02 +01:00
Oliver Gorwits
2caae8a642 clean up check_mac() interface (ml-cms) 2018-04-18 19:24:08 +01:00
Oliver Gorwits
454ededa46 Revert "#380 attempt to resolve port name when it is given wrong"
This reverts commit f4a143612b.
2018-04-10 21:03:10 +01:00
Oliver Gorwits
08a5652ae0 Revert "save a device_port lookup"
This reverts commit d19b2fac93.
2018-04-10 20:58:07 +01:00
Oliver Gorwits
67ee1808b6 Revert "better way to construct short interface name"
This reverts commit 8bcfaf12d0.
2018-04-10 20:58:06 +01:00
Oliver Gorwits
00f3f2a796 Revert "work for shortening or lengthening ports"
This reverts commit 9d48c4a025.
2018-04-10 20:58:05 +01:00
Oliver Gorwits
52e14aeeeb Revert "no need for quotemeta"
This reverts commit 9339c1a2ce.
2018-04-10 20:58:02 +01:00
Oliver Gorwits
9339c1a2ce no need for quotemeta 2018-04-09 23:15:58 +01:00
Oliver Gorwits
9d48c4a025 work for shortening or lengthening ports 2018-04-09 23:05:17 +01:00
Oliver Gorwits
8bcfaf12d0 better way to construct short interface name 2018-04-09 22:58:23 +01:00
Oliver Gorwits
d19b2fac93 save a device_port lookup 2018-04-08 13:22:52 +01:00
Oliver Gorwits
87d42eacac enforce single row return 2018-04-07 23:24:53 +01:00
Oliver Gorwits
f4a143612b #380 attempt to resolve port name when it is given wrong 2018-04-07 23:17:23 +01:00
Oliver Gorwits
3ae4eabd39 #12 store Cisco PortFast status in device_port_properties:faststart 2018-03-21 10:53:09 +00:00
Oliver Gorwits
7529a93501 #382 invaid regexp syntax 2018-03-20 10:10:41 +00:00
Oliver Gorwits
938b375df6 #381 LLDP port name is space compressed 2018-03-19 18:22:45 +00:00
Oliver Gorwits
1ba1ea2e27 better handling of malformed IPs in c_ip results 2018-03-17 14:57:13 +00:00
Oliver Gorwits
fb42c871c1 add interface alias for discovery IP 2018-03-17 14:24:05 +00:00
Oliver Gorwits
dd44877059 #48 Node Monitor supports matching on OUI 2018-03-10 09:26:23 +00:00
Oliver Gorwits
8d01a415e7 strip whitespace from model on HP 2018-03-05 22:55:36 +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
0229d46f86 fix typo in log 2018-03-02 20:20:17 +00:00
Oliver Gorwits
e1b9f2225e move wap and phone detection into portproperties worker 2018-03-01 04:56:07 +00:00
Oliver Gorwits
94da566184 gather lldp remote capabilities and info 2018-02-28 21:41:34 +00:00