summaryrefslogtreecommitdiff
path: root/lib/oxidized/model
AgeCommit message (Collapse)Author
2015-04-20Added a less strict promptflorian
Added less strict prompt
2015-04-17Changed prompt (too strict)florian
Changed prompt (too strict)
2015-04-14Add a pre_logout for some devicesflorian
Add an other post_login for some devices and a pre_logout
2015-04-10ironware model improvementflorian
2015-04-08Merge pull request #100 from rodecker/masterytti
hide enable secret when remove_secret is enabled
2015-04-08hide enable secret when remove_secret is enabledMartin Pels
2015-04-01Add match for 35xx Switches, tidy up regexMrRJ45
Added a check for 35xx switches Also extract only on the model number, not the suffix (P or F) as we dont need that.
2015-03-30PowerConnect Model not skipping some detailsMrRJ45
Some PowerConnect models were skipping fine as "Uptime" for example is shown across one line. Some models show this as a heading, and then lines for each stack member and so this was being included in the configuration. This will skip that "section" which is terminated by the next blank line.
2015-03-26rename fileSaku Ytti
2015-03-26remove whitespace, rename classSaku Ytti
2015-03-23Backup full ASA configuration (include passwords)Stefan Schlesinger
At the old version it didn't backup things like ldap passwords, which ended up in output marked as '****'. pre: ldap-login-password ***** now: ldap-login-password wBGqqqCY5SjZ8hY
2015-03-16Remove traces of telnet supportEric
2015-03-16Added support for Mikrotik RouterOSEric
2015-03-14Also fix logout issue as described in #89Eric
2015-03-14Fix terminal length issues with older powerconnect switches as mentioned in ↵Eric
#89. Fixed by sending both commands and allowing one of them to fail.
2015-03-07Add back ability to use passwordless enable on EOSJ. Brandt Buckley
This commit adds the ability to go into Privileged EXEC mode when no password is required by setting `enable: true`. By default, in Arista EOS you aren't prompted for a password when entering Privileged EXEC (or privilege mode 15) mode. In PR #86, oxidized began always expecting a password. An unquoted `true` in YAML is a boolean. So when `var(:enabled)` is `TrueClass`, we interpret this as meaning that the user wishes to go into Privileged EXEC mode and does not require a password.
2015-03-03fixes for EOS switches with enable secret configuredMartin Pels
2015-02-27better prompt for Arista EOSSamer Abdel-Hafez
2015-02-27Minor cosmetic changes and additionsSamer Abdel-Hafez
2015-02-24set_cmd can't be nilSaku Ytti
still not sure if this is the right way to guard non-string blocks...
2015-02-23guard against model returning non-stringSaku Ytti
Return empty string instead of what ever model returned. Closes #63
2015-02-19Logout behaviour fixed.fhibler
2015-02-19Password detection fixedfhibler
2015-02-07Added model for Comware based devicesJasper
Added support for Comware based devices from HP (A-series), H3C and 3Com.
2015-01-20stop Aruba changing the diff each 'show inventory'Charlie Allom
Also fix the boilerplate comment to reflect the OEM relationship
2014-12-03Merge branch 'master' into cfg_as_objectSaku Ytti
2014-10-27model/asa: ASA prompt contains HA Failover state separated by slashesStefan Schlesinger
2014-10-23model/asa: removing >show clock and ignoring uptime in >show versionStefan Schlesinger
2014-10-23model/asa: fixing prompt - hostname regex taken from ios modelStefan Schlesinger
2014-10-02Fixed more ever changing output in powerconnect model, only shows up on some ↵Eric
firmware versions
2014-09-26Removed ever-changing output from powerconnect model, thanks @artmannEric
2014-09-22Added model for cisco NXOSEric
2014-09-22Fixed small bug in powerconnect enable codeEric
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-24Add Brocade NOSSaku Ytti
2014-08-24Add ExtremeXOSSaku Ytti
2014-08-19Merge branch 'master' into cfg_as_objectSaku Ytti
2014-08-18Add model for Cisco small business switchesMatthew Boehlig
Supports 200, 300, 500, and ESW2 series switches
2014-08-16Merge branch 'master' into cfg_as_objectSaku Ytti
2014-08-15Added enable magic for powerconnect model, fixed pagination issuesEric
2014-08-15Add Ubiquiti AirOS modelWill Glynn
2014-08-14Merge branch 'master' into cfg_as_objectSaku Ytti
2014-08-14fix ios-xr promptSaku Ytti
2014-08-13Merge branch 'master' into cfg_as_objectSaku Ytti
2014-08-13fix pre/post blocksSaku Ytti
2014-08-13Remove changing lines from procurve.rbJari Salo
2014-08-08Merge branch 'master' into cfg_as_objectSaku Ytti
2014-08-08refactor cfg as objectSaku Ytti
- now default type is 'nil', which is collapsed to flat config via Outputs#to_cfg - if type is not 'nil' then name is automatically set if not set by model - if name and type is set, separate file is created - if name is not set, but type is set, outputs from type are collapsed as with 'nil' types This model: cmd 'show ip cef' do |out| out.type = 'poop' out.name = false out end cmd 'show process cpu' do |out| out.type = 'poop' out.name = 'my_cpu' out end cmd 'show memory statistics' do |out| out.type = 'poop' out.name = false out end cmd 'show ip bgp summary' do |out| out.type = 'poop' end Would produce git output: [ytti@ytti.fi ~/.config/oxidized]% ls poop bu.ip.fi bu.ip.fi--cpu bu.ip.fi--show_ip_bgp_summary [ytti@ytti.fi ~/.config/oxidized]% bu.ip.fi contains the collapsed stuff bu.ip.fi--cpu is manually named bu.ip.fi--show_ip_bgp_summary is automatically named
2014-08-07Use a more compatible Foundry/Brocade syntax for turning off pagingMatthew Walster
Unfortunately, older Foundry/Brocade hardware doesn't support "terminal length 0" and you have to use the much clunkier "skip-page-display" instead. This especially affects older FastIron era devices.
2014-08-07Keep config as Oxidized::Config instead of hashSaku Ytti
The model will look like this: cmd 'show ip cef' do |out| out.type = 'poop' out end cmd 'show process cpu' do |out| out.type = 'poop' out end cmd 'show memory statistics' do |out| out.type = 'poop' out end I think it's cleaner.