summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Nowak <mikenowak@users.noreply.github.com>2017-04-15 18:46:09 +0900
committerMike Nowak <mikenowak@users.noreply.github.com>2017-04-15 18:46:09 +0900
commit76e01672790843de33df67dd76686c00460377d8 (patch)
treeb2d3ac03e7d02250186db4bd78477df5d63706b0
parent339bf606b646f127e7f5a4544613cfafeaa28f8a (diff)
Support for Watchguard Logon Disclaimer
-rw-r--r--lib/oxidized/model/firewareos.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/oxidized/model/firewareos.rb b/lib/oxidized/model/firewareos.rb
index f2bef4c..3b24f89 100644
--- a/lib/oxidized/model/firewareos.rb
+++ b/lib/oxidized/model/firewareos.rb
@@ -7,6 +7,12 @@ class FirewareOS < Oxidized::Model
cfg.each_line.to_a[1..-2].join
end
+ # Handle Logon Disclaimer added in XTM 11.9.3
+ expect /^I have read and accept the Logon Disclaimer message. \(yes or no\)\? $/ do |data, re|
+ send "yes\n"
+ data.sub re, ''
+ end
+
cmd 'show sysinfo' do |cfg|
# avoid commits due to uptime
cfg = cfg.each_line.select { |line| not line.match /(.*time.*)|(.*memory.*)|(.*cpu.*)/ }