<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hello,<div class=""><br class=""></div><div class="">I've relocated the ospf md5-keys filter definition before the rsa filter and this make it work.</div><div class=""><br class=""></div><span class=""><font face="Courier New" class="">@@ -224,7 +228,11 @@<br class=""> ProcessHistory("","","","#$1 last-login <removed>\n");<br class=""> next;<br class=""> }<br class="">-<br class="">+ # filter ospf md5-keys<br class="">+ if (/^(\s*set)\smd5-key\s(.)\s(.*)/ && $filter_osc) {<br class="">+ ProcessHistory("","","","#$1 md5-key $2 <removed>\n");<br class="">+ next;<br class="">+ }<br class=""> # filter cycling RSA private keys<br class=""> if ($filter_osc &&<br class=""> /^\s*set private-key "-----BEGIN (RSA|ENCRYPTED) PRIVATE KEY-----/) {<br class="">@@ -247,11 +255,6 @@<br class=""> ProcessHistory("ENC","","","#$1 ENC <removed> $4\n");<br class=""> next;<br class=""> }<br class="">- # filter ospf md5-keys<br class="">- if (/^(\s*set)\smd5-key\s(.)\s(.*)/ && $filter_osc) {<br class="">- ProcessHistory("","","","#$1 md5-key $2 <removed>\n");<br class="">- next;<br class="">- }<br class=""><br class=""> ProcessHistory("","","","$_");<br class=""> }<br class=""></font></span><span class=""><br class=""><br class=""><blockquote type="cite" class="">On Nov 28, 2017, at 11:34 AM, heasley <<a href="mailto:heas@shrubbery.net" class="">heas@shrubbery.net</a>> wrote:<br class=""><br class="">Thu, Nov 23, 2017 at 10:33:44AM -0500, Gerhard Mourani:<br class=""><blockquote type="cite" class=""><br class="">Hello,<br class=""><br class="">In the pass, I've got problem related to OSPF MD5 Key with Fortigate devices who changed all time. See this post for more information about the problem -> <a href="http://www.shrubbery.net/pipermail/rancid-discuss/2016-December/009317.html" class="">http://www.shrubbery.net/pipermail/rancid-discuss/2016-December/009317.html</a> <<a href="http://www.shrubbery.net/pipermail/rancid-" class="">http://www.shrubbery.net/pipermail/rancid-</a>discuss/2016-December/009317.html><br class=""><br class="">This seem to be fixed but come back with Rancid 3.7 and FortiGate version 5.4.6. Here some example of the annoying output:<br class=""><br class="">@@ -44723,9 +44723,9 @@<br class=""> unset md5-key<br class=""> unset md5-key<br class=""> unset md5-key<br class=""> unset md5-key<br class="">- set md5-key 10 "ENC 3yV3M0T82oypXb4WPTZe5cgOe5az"<br class="">+ set md5-key 10 "ENC ihw7GyiIM/c7Pj741Siec2vF/ahW"<br class=""> unset md5-key<br class=""> unset md5-key<br class=""> unset md5-key<br class=""> unset md5-key<br class=""><br class="">Gerhard,<br class=""></blockquote><br class="">Does this work?<br class=""><br class="">Index: bin/fnrancid.in<br class="">===================================================================<br class="">--- bin/fnrancid.in<span class="Apple-tab-span" style="white-space:pre"> </span>(revision 3734)<br class="">+++ bin/fnrancid.in<span class="Apple-tab-span" style="white-space:pre"> </span>(working copy)<br class="">@@ -248,7 +248,7 @@<br class=""><span class="Apple-tab-span" style="white-space:pre"> </span> next;<br class=""><span class="Apple-tab-span" style="white-space:pre"> </span>}<br class=""><span class="Apple-tab-span" style="white-space:pre"> </span># filter ospf md5-keys<br class="">-<span class="Apple-tab-span" style="white-space:pre"> </span>if (/^(\s*set)\smd5-key\s(.)\s(.*)/ && $filter_osc) {<br class="">+<span class="Apple-tab-span" style="white-space:pre"> </span>if (/^(\s*set)\smd5-key\s(\d+)\s(.*)/ && $filter_osc) {<br class=""><span class="Apple-tab-span" style="white-space:pre"> </span> ProcessHistory("","","","#$1 md5-key $2 <removed>\n");<br class=""><span class="Apple-tab-span" style="white-space:pre"> </span> next;<br class=""><span class="Apple-tab-span" style="white-space:pre"> </span>}<br class=""><br class=""></blockquote><br class=""></span></body></html>