From 0bd10a76a9a8bfbdcff57a6516ebe34b7be3522b Mon Sep 17 00:00:00 2001 From: makzdot Date: Mon, 6 Mar 2017 21:44:22 +0100 Subject: 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. --- lib/oxidized/model/saos.rb | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.1