summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/gaiaos
diff options
context:
space:
mode:
authortotosh <je.gerv@gmail.com>2016-07-18 17:55:07 +0200
committerGitHub <noreply@github.com>2016-07-18 17:55:07 +0200
commit994577920a89cb64822ae661f09c84730d8621df (patch)
treec7f90b62c5e3ab745c059529235aa7305c7b7706 /lib/oxidized/model/gaiaos
parent6369c9c88c831919a4bbfbe722d808be6fb4b356 (diff)
Rename gaiaos to gaiaos.rb
Diffstat (limited to 'lib/oxidized/model/gaiaos')
-rw-r--r--lib/oxidized/model/gaiaos46
1 files changed, 0 insertions, 46 deletions
diff --git a/lib/oxidized/model/gaiaos b/lib/oxidized/model/gaiaos
deleted file mode 100644
index 434e774..0000000
--- a/lib/oxidized/model/gaiaos
+++ /dev/null
@@ -1,46 +0,0 @@
-class GaiaOS < Oxidized::Model
-
- # CheckPoint - Gaia OS Model
-
- # Gaia Prompt
- prompt /^([\[\]\w.@:-]+[#>]\s?)$/
-
- # Comment tag
- comment '# '
-
-
- cmd :all do |cfg|
- cfg = cfg.each_line.to_a[1..-2].join
- end
-
- cmd :secret do |cfg|
- cfg.gsub! /^(set expert-password-hash ).*/, '\1<EXPERT PASSWORD REMOVED>'
- cfg.gsub! /^(set user \S+ password-hash ).*/,'\1<USER PASSWORD REMOVED>'
- cfg.gsub! /^(set ospf .* secret ).*/,'\1<OSPF KEY REMOVED>'
- cfg.gsub! /^(set snmp community )(.*)( read-only.*)/,'\1<SNMP COMMUNITY REMOVED>\3'
- cfg.gsub! /^(add snmp .* community )(.*)(\S?.*)/,'\1<SNMP COMMUNITY REMOVED>\3'
- cfg.gsub! /(auth|privacy)(-pass-phrase-hashed )(\S*)/,'\1-pass-phrase-hashed <SNMP PASS-PHRASE REMOVED>'
- cfg
- end
-
- cmd 'show asset all' do |cfg|
- comment cfg
- end
-
- cmd 'show version all' do |cfg|
- comment cfg
- end
-
- cmd 'show configuration' do |cfg|
- cfg.gsub! /^# Exported by \S+ on .*/, '# '
- cfg
- end
-
-
- cfg :ssh do
- # User shell must be /etc/cli.sh
- post_login 'set clienv rows 0'
- pre_logout 'exit'
- end
-
-end