From 07b534e541a69f2e90f8924e1dbe3303cdd7d2f2 Mon Sep 17 00:00:00 2001 From: Samer Abdel-Hafez Date: Fri, 7 Mar 2014 11:07:37 +0100 Subject: add better formatting to Arista model --- lib/oxidized/model/eos.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/oxidized/model/eos.rb') 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 -- cgit v1.2.1