Age | Commit message (Collapse) | Author |
|
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
|
|
|
|
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]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
It will always be MAX_SIZE+1 after push
|
|
Store N last mtimes
|
|
|
|
|
|
Fixes performance regression
|
|
|
|
|
|
* Remove more JunOS secrets
* Removed redundant junos secret replacements. Updated changelog.
* Moved this change to Master in the changelog.
|
|
|
|
So that input/output can be configured under model
|
|
Unsure what problem was being solved here originally, wish I had tests
for expected behaviour :)
|
|
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.
|
|
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.
|
|
Oxidized-web 0.10.2 requires gcc-c++ to be able to install the gem in Centos 7. Updated docs.
|
|
|
|
Local files could never be loaded, as the name does not contain file
extension, so check for their existance would always fail.
|
|
|
|
Main problem we're trying to solve is the silent failures. Requiring
files will never fail, one user had problem loading their souce http.rb,
which is obviously mandatory for them, but because it didn't fail, it
lead to a much harder to understand bug down the line, as we tried to
instansiate the 'nil' source.
Reason why I did it like this was laziness, because I didn't have to
care if or not the file exists, I always tried to load locally defined
models, and just return empty hash if I couldn't find any.
There may be other reasons and reliances that I've forgotten, but we'll
fix them as they come. Such is life without proper testing.
|
|
|
|
* introduce PR template in lieu of contribution guide for now
* bump rubocop to 0.56 and regenerate rubocop_todo
|
|
|
|
Since
https://github.com/ytti/oxidized-web/commit/1d65a7999a9712b72976abd7a968f3c520d94d96
added charlock_holmes which requires ICU to be installed
|
|
|
|
|
|
|
|
Related to PR #1333 by @gs-kamnas
|
|
|
|
Rework the Exclusions for FortiOS
|
|
OpenBSD model implementation.
|
|
|
|
|
|
|
|
Initial HTTP support
|
|
|
|
|
|
|
|
* ComnetMicrosemiSwitch support
|
|
Remove SNMP v3 Auth & Priv Password.
|
|
|
|
* Fixed: fix debug logging (passed @log to telnet)
* Fixed: call closed on sock of telnet instead of telnet
|
|
|