summaryrefslogtreecommitdiff
path: root/lib/oxidized/model
AgeCommit message (Collapse)Author
2014-04-07pass command string to :all block for (example) to comment a commandAnton Aksola
that was run
2014-03-28comment expects stingSaku Ytti
2014-03-28added AOSW (AOS Wireless / Aruba) supportSaku Ytti
2014-03-28prokurwa may ask to save config, answer 'no'Saku Ytti
2014-03-28\w contains \d and _Saku Ytti
2014-03-18Be more liberal about username promptSaku Ytti
^\r? was too strict Also move non-config above of config, rancid-style. Also Procurve is unbelievably shitty crapbox, screen drawing is shit, telnet password is maximum 17 chars, ssh password maximum 16 chars, que?
2014-03-17Fix JunOS modelSaku Ytti
Block must return string, it returned nil which broke it. Also coerce type to string in future, so block won't fail so catastrophically, just output missing.
2014-03-14Introduce 'post' and 'pre' commandsSaku Ytti
Both post and pre are called after all 'cmd' are already called, but output from 'pre' is put on top of configuration output and output from 'post' is put on bottom of confguration output. Rationale is dynamic configuration, where you'll only know after running some commands what commands you want to run. Both except blocks, such as pre do # commands to execute end Both can be called multiple times
2014-03-07add better formatting to Arista modelSamer Abdel-Hafez
2014-03-07add Arista EOS and Cisco IOS XR modelsSamer Abdel-Hafez
2014-03-05Ignore rogue adhoc alert macsSaku Ytti
They keep changing dynamically in config
2014-03-05Add AireOS supportSaku Ytti
Crappy Cisco WLC 5k, much quality, very implementation, such secure * stop pre_logout from expecting prompt by default
2014-03-01Add Model#output methodSaku Ytti
Outputs about what we've seen last in input class. Quite dirty in telnet, so not sure I'm going to support it. Let's see if there is use-case for it.
2014-02-07Add AOS (ALU OmniSwitch) supportSaku Ytti
Specifically AOS 6, vxworks era, not linux era 7
2013-10-26add fetch API to git outputnopedial
2013-09-05filter mpls te bandwidth line from config if auto-bw is configured, and ↵p-sherratt
always attempt to enable if :enable password is configured
2013-05-12models enhancenopedial
2013-05-01add latest changesSamer Abdel-Hafez
2013-05-01Add Model#expect, support block at post/pre configSaku Ytti
Now we can deal with pager and additional PW prompts, such as 'enable' Examples in IOS model how to use. The Telnet implementation is particularly fugly, I just need one line in 'waitfor' to handle pager while waiting for prompt, but couldn't figure out clean way to do it, so needed to rewrit whole Telnet#waitfor just to add that line.
2013-04-29Fix README.md and add cmd to powerconnect modelSamer Abdel-Hafez
2013-04-27Add models and README.mdnopedial
2013-04-27Fix timeout on receiving command from inputSaku Ytti
2013-04-261.9/2.0 compatibility fix + syslogd cleanupSaku Ytti
2013-04-21Dont reimplement 'cmd', call #cmd from #getSaku Ytti
2013-04-21run Model::cmd(:all) for Model#cmd as wellSaku Ytti
2013-04-21Run 'main' method if it existsSaku Ytti
Gives alternative, maybe less awkward way to do conditional commands. You can first use cmd methods to gather stuff you want, then in main method you could conditional to things based on them, maybe futher call methods per model.
2013-04-19Add 'cmd :all' convenience, ran after each commandSaku Ytti
Easier screen-scraping, if each command produces always same set of cruft that needs to be removed
2013-04-17Initial commitSaku Ytti
Silly for shit-and-giggles attempt at rancid