summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEverton Marques <everton.marques@gmail.com>2016-06-20 16:39:55 -0300
committerEverton Marques <everton.marques@gmail.com>2016-06-20 16:39:55 -0300
commit570d5e06ea25825c2fcd50023866d87a0c1a9b21 (patch)
treeaa4d67e04fa42b5468322c2ca5e2d1c16b8d5e5e
parent840369c015ea85e1ef8c9a25c2ccb93e40abe000 (diff)
Set comment prefix for Coriant models.
-rw-r--r--lib/oxidized/model/coriant8600.rb4
-rw-r--r--lib/oxidized/model/coriant8800.rb2
2 files changed, 5 insertions, 1 deletions
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|