summaryrefslogtreecommitdiff
path: root/lib/oxidized
AgeCommit message (Collapse)Author
2018-07-07use convenience methods in modelsWild Kat
* use convenience methods in models for legibility * disable Style/SymbolProc in rubocop * introduce cut_both instead of cut_head.cut_tail chain * document cut_both convenience method
2018-07-07Changes to secret filtering:Nick Bailey
Fixed greedy regex's which would eat much of configuration.
2018-07-07Add support for ECI Telecom Apollo platform (#1437)arienv
PR #1437
2018-07-07Changes to secret filtering:Nick Bailey
Fixed secret regex which would strip config after secret string (like "privilege 15") and which would not match on: "bsd-username test secret $1$FAKESTRINGblahblah" which is created whenever username secret is created. Added regex to filter password hashes for configs not using password 7 instead of secret such as: username test password 7 8888blahblah8888 privilege 4
2018-07-01Add Viptela model (closes #1376) (#1427)Brad Searle
2018-06-29Coriant Groove FP3.x only accepts a line length of 4000 chars (#1424)Nick Hilliard
2018-06-27Don't use SSH logger unless input debug is setSaku Ytti
2018-06-26adding node group to worker logsmsil
pr #1420
2018-06-25Tidy up logic for sending 'enable' with or without password (#1418)Brian Candler
2018-06-22Use Oxidized.logger for ssh loggerSaku Ytti
From issue #1414
2018-06-22smell reduction bug fixesSaku Ytti
2018-06-22rubycop fixesSaku Ytti
2018-06-22Merge branch 'refactor-smells'Saku Ytti
2018-06-22rubycop fixesSaku Ytti
2018-06-22Refactor smellsytti
* reduce no/resolve_repo smell * reduce input/ssh/connect smell * reduce source/http load smell * reduce node/worker smell * reduce source/csv smell * reduce output/http smell Get's code climate from B to A, so I'm sure it's super duper important.
2018-06-22ehh what can you doSaku Ytti
2018-06-22reduce http output smellSaku Ytti
2018-06-22remove csv smellSaku Ytti
2018-06-22remove worker smellSaku Ytti
2018-06-22remove source/http load smellsSaku Ytti
2018-06-22remove SSH::connect smellSaku Ytti
2018-06-22Remove resolve_repo smellsSaku Ytti
2018-06-22enable SSH logging if input logging is trueSaku Ytti
2018-06-21added telnet password prompt detection for Netgears. (#1413)KodApa85
Tested on Netgear M5300's running firmware 10.0.0.53, 11.0.0.23 & 11.0.0.31
2018-06-19Unintentional config changes in legacy xos, closes #1348 (#1362)Bartek
2018-06-14Scrub uptime in ciscosmb more carefully, closes #1398 (#1400)Wild Kat
Scrub uptime in ciscosmb more carefully, closes #1398
2018-06-14scrub temperature from 'show system' in edgecos, closes #1394 (#1399)Wild Kat
2018-06-14bump up versionSaku Ytti
2018-06-14Fix 1385 - telnet brokenytti
Refactor to common login method to ssh/telnet was broken, as common login method made assumptions of expect and cmd API which weren't true for telnet. telnet.rb updated to resemble ssh.rb API.
2018-06-14Correct typo in D-Link model (#1396)Wild Kat
2018-06-14relax d-link prompt expectations, closes #1389 (#1392)Wild Kat
2018-06-14Model callback enhancementytti
Allows cfg, cmd, pre, post and expect blocks to reset the callback array or change from push to unshift. Use case is in custom models which monkey-patch the distribution model. You might want to replace for example distribution ```cmd :secret``` with your own version, like such: cmd :secret clear: true do ... end Or if you instead want to unshift your block to be first to be called: cfg :ssh do prepend: true do .. end Closes #1384
2018-06-13ciscosmb uptime filter is for show system (#1388)Wild Kat
2018-06-13Feature string navigation for HTTP source API JSONytti
Allow HTTP API to place host array in arbitrary place defined as: hosts_location: a.b[0].c Also support arrays in mapping keys: key: location[0].is.here[2]
2018-06-12allow configurable history size in statsSaku Ytti
2018-06-12rubycop fixSaku Ytti
2018-06-12useless branchingSaku Ytti
It will always be MAX_SIZE+1 after push
2018-06-12Honor mtime in statsSaku Ytti
Store N last mtimes
2018-06-12Merge branch 'master' of github.com:ytti/oxidizedSaku Ytti
2018-06-12add mtime and bump up versionSaku Ytti
Fixes performance regression
2018-06-11Add support for frr in new versions of cumulus - closes #1087 (#1375)Brad Searle
2018-06-08Remove more JunOS secrets (#1359)Zmegolaz
* Remove more JunOS secrets * Removed redundant junos secret replacements. Updated changelog. * Moved this change to Master in the changelog.
2018-06-08rc 0.57.1, fixup, todo + drop rails_best_practices (#1372)Wild Kat
2018-06-08We should resolve model firstSaku Ytti
So that input/output can be configured under model
2018-06-07Fix IP address assingmentSaku Ytti
Unsure what problem was being solved here originally, wish I had tests for expected behaviour :)
2018-06-07Updated HPE Comware - Issue #611 Fix (#1305)Adam
This change works for newer HPE Comware model switches and *shouldn't* cause any issues with the previous Comware models although past functionality hasn't been tested as I don't have an older model.
2018-06-07Refactor manager, take2Saku Ytti
Make all the add_* return falsy valuem and make all the callers raise, this has benefit that the caller has more information, like it can tell what node we were trying to load when model failed to load. We were only failing to do this in two places in the code, source and plugin.
2018-06-07oops, actually add the class to sourceSaku Ytti
2018-06-07Fix local file loadingSaku Ytti
Local files could never be loaded, as the name does not contain file extension, so check for their existance would always fail.
2018-06-07make login username/passord detection genericSaku Ytti