From 570d5e06ea25825c2fcd50023866d87a0c1a9b21 Mon Sep 17 00:00:00 2001 From: Everton Marques Date: Mon, 20 Jun 2016 16:39:55 -0300 Subject: Set comment prefix for Coriant models. --- lib/oxidized/model/coriant8600.rb | 4 +++- lib/oxidized/model/coriant8800.rb | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/oxidized/model/coriant8600.rb b/lib/oxidized/model/coriant8600.rb index 1398949..d54082f 100644 --- a/lib/oxidized/model/coriant8600.rb +++ b/lib/oxidized/model/coriant8600.rb @@ -1,6 +1,8 @@ class Coriant8600 < Oxidized::Model - prompt /^[^\s#]+[#>]/ + comment '# ' + + prompt /^[^\s#>]+[#>]/ cmd 'show hw-inventory' do |cfg| comment cfg diff --git a/lib/oxidized/model/coriant8800.rb b/lib/oxidized/model/coriant8800.rb index 1c2bf07..dfc941e 100644 --- a/lib/oxidized/model/coriant8800.rb +++ b/lib/oxidized/model/coriant8800.rb @@ -1,5 +1,7 @@ class Coriant8800 < Oxidized::Model + comment '# ' + prompt /^[^\s#]+#\s/ cmd 'show node extensive' do |cfg| -- cgit v1.2.1