frr icon indicating copy to clipboard operation
frr copied to clipboard

FreeBSD: frr reload not implemented?

Open eb0815 opened this issue 6 years ago • 3 comments

FreeBSD 11.3 (-RELEASE) frr 7-7.3 (from packages)

"service frr reload" is not implemented, checked the source of rc.d/frr

Am I missing an update?

eb0815 avatar Jun 05 '20 09:06 eb0815

Short answer:

If its not supported then we need to contact the FreeBSD maintainer or someone willing to do the work.

Long answer:

I don't use FreeBSD, but I recently wrote a init script for OpenRC here: https://github.com/FRRouting/gentoo-overlay/blob/master/net-misc/frr/files/frr-openrc-v1

If someone needs for version 7.2.1 or less then here: https://github.com/FRRouting/gentoo-overlay/blob/master/net-misc/frr/files/frr-noprofile-openrc-v1

It still requires bash because watchfrr will still call frrinit.sh, but it should be usable or someone could extract some parts of it to use for FreeBSD.

I think that if someone is willing to work on this we could create a new frrinit.sh that is shell agnostic (frrinit.sh uses some bashisms) and put here in the official repo for all OSes. Feel free to contact me to talk about it.

rzalamena avatar Jun 09 '20 15:06 rzalamena

Hi everybody,

thank you for looking into this - I thought it was something that needed to be ported to FreeBSD still and had just fallen off the wagon somewhere.

In the meantime I have experimented more, and found that the frr_reload.py is actually missing, but once copied over and the python path and the default paths fixed, works quite nicely.

So whoever can bounce this towards the BSD maintainer, it might be quite easy to implement. I can't do it - unfortunately it's out of my field of competence. For the time being I'll run with a hotfix, pushing the amended frr-reload.py out via puppet and fixing the reload/restart stanza, but a real update to the FreeBSD package would be highly appreciated, of course.

All the best, and thank you for all the hard work and time you put in.

Elmar.

[email protected] (Rafael Zalamena) wrote:

Short answer: If its not supported then we need to contact the FreeBSD maintainer or someone willing to do the work. Long answer: I don't use FreeBSD, but I recently wrote a init script for OpenRC here: https://github.com/FRRouting/gentoo-overlay/blob/master/net-misc/frr/files/frr- openrc-v1 If someone needs for version 7.2.1 or less then here: https://github.com/FRRouting/gentoo-overlay/blob/master/net-misc/frr/files/frr- noprofile-openrc-v1 It still requires bash because watchfrr will still call frrinit.sh, but it should be usable or someone could extract some parts of it to use for FreeBSD. I think that if someone is willing to work on this we could create a new frrinit.sh that is shell agnostic (frrinit.sh uses some bashisms) and put here in the official repo for all OSes. Feel free to contact me to talk about it. — You are receiving this because you authored the thread. Reply to this email directly, view_it_on_GitHub, or unsubscribe.

--

"Machen Sie sich erst einmal unbeliebt. Dann werden Sie auch ernstgenommen." (Konrad Adenauer)

--------------------------------------------------------------[ ELMI-RIPE ]---

eb0815 avatar Jun 09 '20 20:06 eb0815

@eb0815 thank you for your report. It seems the issue got a bug report in FreeBSD: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235985

I'll close this issue (since it is implemented) and if there is something to do in FRR we can open another one with the correct cause. Feel free to ping me if we have to fix something in FRR.

rzalamena avatar Jul 14 '20 17:07 rzalamena