summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristoffer Stokbaek <christoffers@easyspeedy.com>2016-08-05 10:20:07 +0200
committerChristoffer Stokbaek <christoffers@easyspeedy.com>2016-08-05 10:20:07 +0200
commitb8988ecf7edfbcb414fc93baa54e702f95ed80fe (patch)
treee2bb79ad8f686fed4a4f2ec8f0787229dda2e19a /lib
parent1aca290d70b5f2dec16bc313111cca4155b80a23 (diff)
Switched from prompt grap to ssh exec
Diffstat (limited to 'lib')
-rw-r--r--lib/oxidized/pfsense.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/oxidized/pfsense.rb b/lib/oxidized/pfsense.rb
index 67a1a49..078c2a4 100644
--- a/lib/oxidized/pfsense.rb
+++ b/lib/oxidized/pfsense.rb
@@ -1,6 +1,5 @@
class PfSense < Oxidized::Model
- prompt /^\e\[0;1;33m\[\S*\e\[0;1;33m\]\e\[0;1;33m\e\[\S*\e\[0;1;31m@\S*\e\[0;1;33m\]\S*\e\[0;1;31m:\e\[0;0;0m\s$/
comment '# '
@@ -20,6 +19,10 @@ class PfSense < Oxidized::Model
end
+ cfg :ssh do
+ exec true
+ end
+
cfg :telnet do
username /^Username:/
password /^Password:/