1 parent ae61cb4 commit 87355fdCopy full SHA for 87355fd
1 file changed
lib/oxidized/model/fortigate.rb
@@ -5,13 +5,12 @@ class FortiGate < Oxidized::Model
5
6
prompt(/
7
^
8
- (?:\(\w\)\ )? # optional status indicator, e.g. "(M) "
9
- [-\w.~]+ # hostname
10
- (?:\((?:Primary|Secondary)\))? # optional HA cluster status
11
- (?:\s[(\w\-.)]+)? # optional VDOM
12
- ~?\s?[#>$]\s?$ # End of prompt
+ (?:\(\w\)\ )? # optional status indicator, e.g. "(M) "
+ [-\w.~]+ # hostname
+ (?:\((?:\w+)\))? # optional HA cluster status (Primary|Secondary)
+ (?:\ [(\w\-.)]+)? # optional VDOM
+ ~?\ ?[#>$]\ ?$ # End of prompt
13
/x)
14
-
15
# When a post-login-banner is enabled, you have to press "a" to log in
16
expect /^\(Press\s'a'\sto\saccept\):/ do |data, re|
17
send 'a'
0 commit comments