summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/ios.rb
AgeCommit message (Collapse)Author
2014-08-30Remove ntp clock-period completelySaku Ytti
emj complained that it sometimes pops in, sometimes pops out. I guess really no point having it there.
2014-08-06small model changesSaku Ytti
- ios show first line of 'show version' - junos display omitted config
2014-07-13Change from grit to ruggedSaku Ytti
a) grit is not supported, rugged is b) grit requires git CLI installed, rugged does not c) grit needs monkey patching to work, rugged does not Closes #21 Closes #22
2014-06-11add secrets removal code + bump versionSamer Abdel-Hafez
2014-05-05Introduce node and group level varsAnton Aksola
Variables can now be fed to model from multiple locations. In order of preference: 1) node (from source) 2) group 3) global In a model vars should be accessed via 'vars' helper method though it is not required. Helper method ignores nil values so care needs to taken when designing model behaviour. Support for node level vars is currently available on sql source via 'vars_map' configuration. Following example populates node vars 'enable' and 'somevariable' from sql columns 'var_enable' and 'var_somevariable' sql: adapter: sqlite file: /home/aakso/.config/oxidized/sqrouter.db table: nodes map: name: hostname model: model group: node_group username: username password: password vars_map: enable: var_enablepw somevariable: var_somevariable
2014-04-15the second to last line isn't always emptySaku Ytti
sh ip bgp | i foo and you won't see empty line before prompt, ergo, we cannot always remove it. But I'm not too surprised JunOS + IOS templates are still mostly exactly the same they were from my testing to see how Oxidized works over year ago, they need rework to be production quality.
2014-04-14depend on AsetusSaku Ytti
Change models to Asetus syntax
2014-04-13IOS prompt now matches in config modeSaku Ytti
2014-03-05Add AireOS supportSaku Ytti
Crappy Cisco WLC 5k, much quality, very implementation, such secure * stop pre_logout from expecting prompt by default
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-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-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