Question regarding interaction between custom protocols and OSPF tables
Is it possible to advertise routes from a custom protocol via OSPF as an internal route type instead of external-1 or external-2? The use case is an application that does not use the kernel routing table and needs to inject routes into OSPF. To do this, I'm experimenting with a custom protocol that communicates with the application and imports the routes for me. Unfortunately, since the routes in the common table appear to come from my protocol instead of OSPF, they're exported as external which distinctly not the desired behavior. Thanks for any help or advice you can provide, Adam
On Wed, Nov 11, 2015 at 05:13:06PM +0000, Adam Schultz wrote:
Is it possible to advertise routes from a custom protocol via OSPF as an internal route type instead of external-1 or external-2?
No, such feature is not implemented, but is it an interesting idea. -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
From the OSPF protocol code, I suspected as much. ospf_rt_notify() just sends an external LSA.
I haven't completely familiarized myself with the OSPF code so I'm not comfortable modifying things yet, but would there be a safe way to call ospf_originate_rt_lsa() directly from ospf_rt_notify()? I can modify the code to detect the custom protocol as the source, I just don't want to force the OSPF protocol into a bad state. Thank you for the reply, Adam -----Original Message----- From: Ondrej Zajicek [mailto:santiago@crfreenet.org] Sent: Thursday, November 12, 2015 10:54 AM To: Adam Schultz <aschultz@talari.com> Cc: bird-users@network.cz Subject: Re: Question regarding interaction between custom protocols and OSPF tables On Wed, Nov 11, 2015 at 05:13:06PM +0000, Adam Schultz wrote:
Is it possible to advertise routes from a custom protocol via OSPF as an internal route type instead of external-1 or external-2?
No, such feature is not implemented, but is it an interesting idea. -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
participants (2)
-
Adam Schultz -
Ondrej Zajicek