From 0ae25a91609646fb818b64d584bec9728d1f74e5 Mon Sep 17 00:00:00 2001 From: djamp42 Date: Mon, 30 Jul 2018 11:57:08 -0400 Subject: Remove first and Last Line of config file --- lib/oxidized/model/axos.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/oxidized/model/axos.rb b/lib/oxidized/model/axos.rb index 5ce2b68..9c1a663 100644 --- a/lib/oxidized/model/axos.rb +++ b/lib/oxidized/model/axos.rb @@ -1,8 +1,13 @@ -class AXOS < Oxidized::Model +class AxOS < Oxidized::Model prompt /([\w.@()-]+[#]\s?)$/ comment '! ' + cmd 'show running-config | nomore' do |cfg| - cfg + cfg.cut_head + end + + cmd :all do |cfg| + cfg.cut_tail end cfg :ssh do -- cgit v1.2.1