summaryrefslogtreecommitdiff
path: root/lib/oxidized/model
diff options
context:
space:
mode:
authordjamp42 <apiasecki@gmail.com>2018-07-30 11:57:08 -0400
committerytti <saku@ytti.fi>2018-07-31 21:11:29 +0300
commit0ae25a91609646fb818b64d584bec9728d1f74e5 (patch)
treed9aa57f70bf5d9491dc5abcb311355d080a64b83 /lib/oxidized/model
parent6038c0afea18c27e5653de48f8223d83093796a1 (diff)
Remove first and Last Line of config file
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r--lib/oxidized/model/axos.rb9
1 files changed, 7 insertions, 2 deletions
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