<div dir="ltr"><div>Yes, different bird processes in each namespace. And if you need to "leak" routes between them for some reason, then you need to connect them somehow to pass routes between processes. There are concerns of course if you want to export those routes into routing table, because of separated interfaces, but at that point you should already know pretty well what dirty things you are trying to do. :)<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 12, 2019 at 3:15 PM Jakub Nowacki <<a href="mailto:jnowacki@greywizard.com">jnowacki@greywizard.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I'm in similar situation. Trying to run Bird on hardware that runs on top of kernel that doesn't support vrf.</div>Not sure if I understand correctly. Not sure how using Linux sockets would allow you to achieve separation between different namespaces? You would still need at least different Bird process, right?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 7, 2019 at 11:08 PM Alexander Zubkov <<a href="mailto:green@qrator.net" target="_blank">green@qrator.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Yes. Looks like they are accounted in their own network namespace, it<br>
is quite reasonable. But they are still can be accessed via the file<br>
system from another namespaces. I can confirm that it works too. An<br>
example with the bird control socket:<br>
<br>
localhost:~/run# birdc -s retn/bird.ctl show status<br>
BIRD 2.0.4 ready.<br>
BIRD 2.0.4<br>
Router ID is 87.245.192.0<br>
Current server time is 2019-06-07 20:47:32.479<br>
Last reboot on 2019-06-07 20:45:17.425<br>
Last reconfiguration on 2019-06-07 20:45:17.425<br>
Daemon is up and running<br>
localhost:~/run# ip netns exec retn birdc -s retn/bird.ctl show status<br>
BIRD 2.0.4 ready.<br>
BIRD 2.0.4<br>
Router ID is 87.245.192.0<br>
Current server time is 2019-06-07 20:47:49.452<br>
Last reboot on 2019-06-07 20:45:17.425<br>
Last reconfiguration on 2019-06-07 20:45:17.425<br>
Daemon is up and running<br>
<br>
<br>
On Fri, Jun 7, 2019 at 10:41 PM Maria Matejka <<a href="mailto:jan.matejka@nic.cz" target="_blank">jan.matejka@nic.cz</a>> wrote:<br>
><br>
> > On 6/7/19 12:14 PM, Maria Jan Matějka wrote:<br>
> >> Thinking once more about it, with respect to the interfaces and so,<br>
> >> the BGP transported over Unix socket seems to be quite simple feature<br>
> >> to do.<br>
> ><br>
> > I thought, and my initial tests support, that Unix sockets are network<br>
> > namespace specific.<br>
> ><br>
> > # netstat -aFunix<br>
> > Kernel Interface table<br>
> > Iface      MTU    RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP<br>
> > TX-OVR Flg<br>
> > eno1      1500 77564888      0    614 0      66111123      0      0 0 BMRU<br>
> > lo       65536 68143909      0      0 0      68143909      0      0 0 LRU<br>
> > # ip netns add test<br>
> > # ip netns exec test /bin/netstat -aFunix<br>
> > Kernel Interface table<br>
> > Iface      MTU    RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP<br>
> > TX-OVR Flg<br>
> > lo       65536        0      0      0 0             0      0      0<br>
> > 0 L<br>
> > # ip netns del test<br>
> ><br>
> > So, I'm not sure if that's going to work the way that you want.<br>
><br>
> It will work the same way as the BIRD control socket works.<br>
> You can try it by the attached script (run by root) which uses socat for<br>
> demonstration.<br>
><br>
> Maria<br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_8291665620274242668gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><span><br><div dir="ltr"><table style="border:medium none;border-collapse:collapse"><colgroup><col width="497"></colgroup><tbody><tr style="height:65pt"><td style="vertical-align:top;padding:5pt"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:10pt;font-family:Arial;color:rgb(102,102,102);background-color:transparent;font-weight:700;vertical-align:baseline;white-space:pre-wrap">Kuba Nowacki</span></p><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><font face="Arial" color="#666666"><span style="font-size:10.6667px;white-space:pre-wrap">Senior NetOps</span></font></p><br><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="font-size:8pt;font-family:Arial;color:rgb(102,102,102);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">M: +(48) 605 508 118</span></p><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="font-size:8pt;font-family:Arial;color:rgb(102,102,102);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">E: <a href="mailto:jnowacki@greywizard.com" target="_blank">jnowacki@greywizard.com</a></span></p></td></tr></tbody></table></div><br><div dir="ltr" style="margin-left:0pt"><table style="border:medium none;border-collapse:collapse"><colgroup><col width="74"><col width="121"><col width="129"><col width="108"><col width="138"></colgroup><tbody><tr style="height:60pt"><td style="border-bottom:0.5pt solid rgb(217,217,217);border-top:0.5pt solid rgb(217,217,217);vertical-align:top;padding:5pt"><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="font-size:12pt;font-family:Arial;color:rgb(102,102,102);background-color:transparent;font-weight:700;vertical-align:baseline;white-space:pre-wrap"><img style="border: medium none;" width="55" height="69"></span></p></td><td style="border-bottom:0.5pt solid rgb(217,217,217);border-top:0.5pt solid rgb(217,217,217);vertical-align:top;padding:5pt"><br><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(210,215,220);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><img style="border: medium none;" width="107" height="36"></span></p></td><td style="border-bottom:0.5pt solid rgb(217,217,217);border-top:0.5pt solid rgb(217,217,217);vertical-align:top;padding:5pt"><br><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt;text-align:right"><span style="font-size:8pt;font-family:Arial;color:rgb(210,215,220);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">GreyWizard Sp. z o.o.</span></p><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt;text-align:right"><span style="font-size:8pt;font-family:Arial;color:rgb(210,215,220);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">ul. Palacza 113</span></p><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt;text-align:right"><span style="font-size:8pt;font-family:Arial;color:rgb(210,215,220);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">60-273 Poznań, Poland</span></p></td><td style="border-bottom:0.5pt solid rgb(217,217,217);border-top:0.5pt solid rgb(217,217,217);vertical-align:top;padding:5pt"><br><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt;text-align:right"><span style="font-size:8pt;font-family:Arial;color:rgb(210,215,220);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">NIP: 779-24-22-423 </span></p><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt;text-align:right"><span style="font-size:8pt;font-family:Arial;color:rgb(210,215,220);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Regon: 302744400</span></p><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt;text-align:right"><span style="font-size:8pt;font-family:Arial;color:rgb(210,215,220);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">KRS: 0000512326</span></p><br></td><td style="border-bottom:0.5pt solid rgb(217,217,217);border-top:0.5pt solid rgb(217,217,217);vertical-align:top;padding:5pt"><br><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt;text-align:right"><span style="font-size:8pt;font-family:Arial;color:rgb(210,215,220);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><a href="http://greywizard.com" target="_blank">greywizard.com</a></span></p><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt;text-align:right"><span style="font-size:8pt;font-family:Arial;color:rgb(210,215,220);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><a href="mailto:support@greywizard.com" target="_blank">support@greywizard.com</a></span></p><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt;text-align:right"><span style="font-size:8pt;font-family:Arial;color:rgb(210,215,220);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">+48 22 201 33 13</span></p></td></tr></tbody></table></div><br><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="font-size:8pt;font-family:Arial;color:rgb(210,215,220);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Sąd Rejonowy w Poznaniu, VIII Wydział Gospodarczy Krajowego Rejestru Sądowego. Kapitał zakładowy 10000 PLN.</span></p><div><span style="font-size:8pt;font-family:Arial;color:rgb(210,215,220);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><br></span></div></span></div></div></div></div></div></div></div>
</blockquote></div>