summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamer Abdel-Hafez <sam@arahant.net>2014-03-07 11:07:37 +0100
committerSamer Abdel-Hafez <sam@arahant.net>2014-03-07 11:07:37 +0100
commit07b534e541a69f2e90f8924e1dbe3303cdd7d2f2 (patch)
tree736dadafa26cd6575e244b7ac1698e9e87b7c8c8
parent35bd38b5dd3ea11a7bfc5205031741686a263071 (diff)
add better formatting to Arista model
-rw-r--r--lib/oxidized/model/eos.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/oxidized/model/eos.rb b/lib/oxidized/model/eos.rb
index e6e0bf1..e08598b 100644
--- a/lib/oxidized/model/eos.rb
+++ b/lib/oxidized/model/eos.rb
@@ -7,6 +7,10 @@ class EOS < Oxidized::Model
comment '! '
+ cmd :all do |cfg|
+ cfg.each_line.to_a[2..-2].join
+ end
+
cmd 'show inventory | no-more' do |cfg|
comment cfg
end