Bug 235985 - net/frr6: add frr-reload
Summary: net/frr6: add frr-reload
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Olivier Cochard
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-24 09:47 UTC by Yakov Sh.
Modified: 2019-04-15 14:19 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (olivier)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 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.