summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/eos.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/model/eos.rb')
-rw-r--r--lib/oxidized/model/eos.rb22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/oxidized/model/eos.rb b/lib/oxidized/model/eos.rb
new file mode 100644
index 0000000..e6e0bf1
--- /dev/null
+++ b/lib/oxidized/model/eos.rb
@@ -0,0 +1,22 @@
+class EOS < Oxidized::Model
+
+ # Arista EOS model #
+ # need to add telnet support here .. #
+
+ prompt /^[^\(]+\([^\)]+\)#/
+
+ comment '! '
+
+ cmd 'show inventory | no-more' do |cfg|
+ comment cfg
+ end
+
+ cmd 'show running-config | no-more' do |cfg|
+ cfg
+ end
+
+ cfg :telnet, :ssh do
+ pre_logout 'exit'
+ end
+
+end