summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2017-04-15 14:50:14 +0300
committerGitHub <noreply@github.com>2017-04-15 14:50:14 +0300
commit2af3541417fc6a1b23df3819d8befd631531583e (patch)
tree91132e3229a1b580a0092ea7ce3fe70418996b4a
parent84be6105bc31b0b7917fa2c97960c96fa3edb1ff (diff)
parent76e01672790843de33df67dd76686c00460377d8 (diff)
Merge pull request #811 from mikenowak/watchguard-logindisclaimer
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 046a123..5d51afc 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.*)/ }