diff options
author | djamp42 <apiasecki@gmail.com> | 2018-07-27 23:31:18 -0400 |
---|---|---|
committer | ytti <saku@ytti.fi> | 2018-07-31 21:11:29 +0300 |
commit | 6038c0afea18c27e5653de48f8223d83093796a1 (patch) | |
tree | 8f5a45d3aa78ea8093bb0c541032295e5b58cd2c /lib | |
parent | c5921b24766425254f5d9d547a15f87d70a5315b (diff) |
Support for Calix AXOS Devices
I have tested this on a Calix AxOS E5, backups config perfectly. The first line in the config file is the command to show the config, i don't know how to remove this, so if someone tells me i can update it and test again.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/oxidized/model/axos.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/oxidized/model/axos.rb b/lib/oxidized/model/axos.rb new file mode 100644 index 0000000..5ce2b68 --- /dev/null +++ b/lib/oxidized/model/axos.rb @@ -0,0 +1,11 @@ +class AXOS < Oxidized::Model + prompt /([\w.@()-]+[#]\s?)$/ + comment '! ' + cmd 'show running-config | nomore' do |cfg| + cfg + end + + cfg :ssh do + pre_logout 'exit' + end +end |