<html><head></head><body><div class="ydpad7c6669yahoo-style-wrap" style="font-family: Helvetica Neue, Helvetica, Arial, sans-serif; font-size: 13px;"><div></div>
<div dir="ltr" data-setdir="false"><div><div><span style="color: rgb(38, 40, 42);">Hi,</span><br></div></div></div><div dir="ltr" data-setdir="false"><div><p class="ydpbb2ba4e2MsoNormal">I assume when kernel protocol is configured with export all “protocol
kernel {ipv4 { export all;};}”, bird performs synchronization of bird's routing
tables with the OS kernel.</p>
<p class="ydpbb2ba4e2MsoNormal">When the learn switch is disabled and no import is there,
why bird is doing a periodic krt_scan and sends netlink request to os kernel to
get the routes dump?</p>
<p class="ydpbb2ba4e2MsoNormal">When learn switch is enabled, then non bird routes are learnt
from os kernel and added to bird’s routing table, then what's the use of import
command? Looks bit ambiguous.</p>
<p class="ydpbb2ba4e2MsoNormal">Please correct me if my understanding is incorrect.</p>
<p class="ydpbb2ba4e2MsoNormal"> </p>
<p class="ydpbb2ba4e2MsoNormal">Debug all all enabled:</p>
<p class="ydpbb2ba4e2MsoNormal">bird: krt_scan(time=2021-09-17 05:28:40.478)</p>
<p class="ydpbb2ba4e2MsoNormal">bird: kernel1: Scanning routing table</p>
<p class="ydpbb2ba4e2MsoNormal">bird: kernel1: 0.0.0.0/0: [alien] ignored</p>
<p class="ydpbb2ba4e2MsoNormal">bird: kernel1: Pruning table master4</p>
<p class="ydpbb2ba4e2MsoNormal"> </p>
<p class="ydpbb2ba4e2MsoNormal">my bird config for kernel:</p>
<p class="ydpbb2ba4e2MsoNormal">protocol kernel {</p>
<p class="ydpbb2ba4e2MsoNormal">ipv4 { };</p>
<p class="ydpbb2ba4e2MsoNormal">}</p>
<p class="ydpbb2ba4e2MsoNormal"> </p>
<p class="ydpbb2ba4e2MsoNormal">Or this happens with this config too</p>
<p class="ydpbb2ba4e2MsoNormal">protocol kernel {</p>
<p class="ydpbb2ba4e2MsoNormal">ipv4 { export all;};</p>
<p class="ydpbb2ba4e2MsoNormal">}</p></div><br></div></div><div id="ydpf05919a7yahoo_quoted_2473531188" class="ydpf05919a7yahoo_quoted"><div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;"><div><div id="ydpf05919a7yiv6492764204"><div><div class="ydpf05919a7yiv6492764204ydp7077cb9cyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div dir="ltr"><div><div><div style="color:rgb(38, 40, 42);font-family:Helvetica Neue, Helvetica, Arial, sans-serif;"><br></div><div style="color:rgb(38, 40, 42);font-family:Helvetica Neue, Helvetica, Arial, sans-serif;">Thanks and Regards,</div><div style="color:rgb(38, 40, 42);font-family:Helvetica Neue, Helvetica, Arial, sans-serif;">Senthil</div></div></div><br></div></div></div></div></div>
</div>
</div></body></html>