[dev] Reg ospfclient api issue

Renato Westphal renato at opensourcerouting.org
Mon Apr 15 13:52:18 EDT 2019


Hi Kotesh,

You need to start ospfd with the --apiserver command-line option.

The OSPF API server socket should be created if you do that:
# ss -tal4p | grep ospfd
LISTEN   0         3                  0.0.0.0:ospfd
0.0.0.0:*       users:(("ospfd",pid=5601,fd=11))
LISTEN   0         3                  0.0.0.0:ospfapi
0.0.0.0:*       users:(("ospfd",pid=5601,fd=8))

It seems however that our documentation for the OSPF API is outdated
as it doesn't mention the --apiserver option. If possible please open
an issue in our repo so that we can keep track of this problem.

Regards,
Renato.

On Mon, Apr 15, 2019 at 1:26 PM kotesh <kotesh.chundu at gmail.com> wrote:
>
> Hi,
>
>   I am trying to invoke ospfclientapi through ospfclient application. I am seeing following error. Any clue if i am missing something?
>
> ./ospfclient evr_4d07_vfemu-linux1 10 250 20 0.0.0.0 0.0.0.1
> ospf_apiclient_connect: sync connect failed
> Connecting to OSPF daemon on evr_4d07_vfemu-linux1 failed!
>
> I have added opaque-lsa config under router ospf.
>
> Thanks,
> Kotesh babu.Chundu
> _______________________________________________
> dev mailing list
> dev at lists.frrouting.org
> https://lists.frrouting.org/listinfo/dev



-- 
Renato Westphal



More information about the dev mailing list