Bug 235985

Summary: net/frr6: add frr-reload
Product: Ports & Packages Reporter: Yakov Sh. <yman>
Component: Individual Port(s)Assignee: Olivier Cochard <olivier>
Status: Closed FIXED    
Severity: Affects Only Me CC: rgrimes
Priority: --- Flags: bugzilla: maintainer-feedback? (olivier)
Version: Latest   
Hardware: Any   
OS: Any   

Description Yakov Sh. 2019-02-24 09:47:27 UTC
In frr repository there are tools/frr-reload.py script, which can 'reload' current configuration of frr daemons without restarting them (works only in integrated-config mode).
IMO frr pretty much useless without that tool as of now (YANG support and rollbacks is not ready). Can we get this script into main port? Or maybe into it's own port? For example it's distributed as frr-pythontools package for Linux.

And if we can there are couple of problems, that must be solved:
 * where to put it? I'm not good in BSD hier, but maybe /usr/local/lib/frr will do (Linux use /usr/lib/frr/)
 * how to execute it? FRR repo contains /tools/frr-reload shell script which call that python script in turn, but it is not included into frr-pythontools
 * sed binaries hard-links. /usr/bin/python3 and /usr/bin/vtysh is not suitable for BSD

I tested script on FreeBSD 12.0-RELEASE with python 3.7 and looks like it works (both --test and --reload).
Comment 1 Olivier Cochard freebsd_committer freebsd_triage 2019-04-15 14:19:51 UTC
Adding this script will add python as running dependency to FRR.
So I like the idea of frr-pythontools port.
Comment 2 Rodney W. Grimes freebsd_committer freebsd_triage 2020-07-14 17:47:35 UTC
Ping
Comment 3 Olivier Cochard freebsd_committer freebsd_triage 2020-07-23 20:26:16 UTC
New port was added: net/frr7-pythontools:
https://svnweb.freebsd.org/changeset/ports/542960
It provide the official frr way by using the tools/frr-reload.py.