summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormakzdot <makzdot@users.noreply.github.com>2017-03-06 21:44:22 +0100
committerGitHub <noreply@github.com>2017-03-06 21:44:22 +0100
commit0bd10a76a9a8bfbdcff57a6516ebe34b7be3522b (patch)
tree50b80085ebbb7eba758a1dd7150cf1fbc2f9c5ee /lib
parent584a1d919cc650e0731e319f1e399c5e87db301d (diff)
Update saos.rb
This proposed change is to make shure lines starting with "! Created: " are ignored. This preventes a diff in the config every time oxidized runs over Ciena SAOS devices. This is probably not the most elegant way but it's a start.
Diffstat (limited to 'lib')
-rw-r--r--lib/oxidized/model/saos.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/oxidized/model/saos.rb b/lib/oxidized/model/saos.rb
index 5d460cf..649daa7 100644
--- a/lib/oxidized/model/saos.rb
+++ b/lib/oxidized/model/saos.rb
@@ -10,6 +10,7 @@ class SAOS < Oxidized::Model
end
cmd 'configuration show' do |cfg|
+ cfg.gsub! /^! Created: [^\n]*\n/, ''
cfg
end