diff options
author | djamp42 <apiasecki@gmail.com> | 2018-07-30 11:57:08 -0400 |
---|---|---|
committer | ytti <saku@ytti.fi> | 2018-07-31 21:11:29 +0300 |
commit | 0ae25a91609646fb818b64d584bec9728d1f74e5 (patch) | |
tree | d9aa57f70bf5d9491dc5abcb311355d080a64b83 /lib/oxidized/model | |
parent | 6038c0afea18c27e5653de48f8223d83093796a1 (diff) |
Remove first and Last Line of config file
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r-- | lib/oxidized/model/axos.rb | 9 |
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 |