summaryrefslogtreecommitdiff
path: root/redhat
AgeCommit message (Collapse)Author
2021-10-15tools: add frr_babeltrace.py to /usr/lib/frrAnuradha Karuppiah
Make the script available as a part of the FRR package install for ease of use. Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
2021-08-11redhat: Install frr.conf only if no per daemon config existsMartin Winter
Install frr.conf template as a template file, but only install it as a config file if no per daemon file exists. This will use the integrated config with new setups, but keeps the per-daemon config for existing users Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2021-06-29build, doc: extricate `--enable-systemd`David Lamparter
Ouch, that is a *lot* of places to update... Signed-off-by: David Lamparter <equinox@diac24.net>
2021-05-13lib: adapt to version 2 of libyangChristian Hopps
Compile with v2.0.0 tag of `libyang2` branch of: https://github.com/CESNET/libyang staticd init load time of 10k routes now 6s vs ly1 time of 150s Signed-off-by: Christian Hopps <chopps@labn.net>
2021-04-09*: remove *.conf.sample filesQuentin Young
Most of these are many, many years out of date. All of them vary randomly in quality. They show up by default in packages where they aren't really useful now that we use integrated config. Remove them. The useful ones have been moved to the docs. Signed-off-by: Quentin Young <qlyoung@nvidia.com>
2021-04-09rpm: install frr.conf by defaultQuentin Young
Signed-off-by: Quentin Young <qlyoung@nvidia.com>
2021-03-05pceplib: Integrate pcelib into frrJavier Garcia
Signed-off-by: Brady Johnson <brady@voltanet.io> Co-authored-by: Javier Garcia <javier.garcia@voltanet.io> Signed-off-by: Javier Garcia <javier.garcia@voltanet.io>
2020-12-18pathd: New SR-TE policy management daemonSebastien Merle
This new daemon manages Segment-Routing Traffic-Engineering (SR-TE) Policies and installs them into zebra. It provides the usual yang support and vtysh commands to define or change SR-TE Policies. In a nutshell SR-TE Policies provide the possibility to steer traffic through a (possibly dynamic) list of Segment Routing segments to the endpoint of the policy. This list of segments is part of a Candidate Path which again belongs to the SR-TE Policy. SR-TE Policies are uniquely identified by their color and endpoint. The color can be used to e.g. match BGP communities on incoming traffic. There can be multiple Candidate Paths for a single policy, the active Candidate Path is chosen according to certain conditions of which the most important is its preference. Candidate Paths can be explicit (fixed list of segments) or dynamic (list of segment comes from e.g. PCEP, see below). Configuration example: segment-routing traffic-eng segment-list SL index 10 mpls label 1111 index 20 mpls label 2222 ! policy color 4 endpoint 10.10.10.4 name POL4 binding-sid 104 candidate-path preference 100 name exp explicit segment-list SL candidate-path preference 200 name dyn dynamic ! ! ! There is an important connection between dynamic Candidate Paths and the overall topic of Path Computation. Later on for pathd a dynamic module will be introduced that is capable of communicating via the PCEP protocol with a PCE (Path Computation Element) which again is capable of calculating paths according to its local TED (Traffic Engineering Database). This dynamic module will be able to inject the mentioned dynamic Candidate Paths into pathd based on calculated paths from a PCE. https://tools.ietf.org/html/draft-ietf-spring-segment-routing-policy-06 Co-authored-by: Sebastien Merle <sebastien@netdef.org> Co-authored-by: Renato Westphal <renato@opensourcerouting.org> Co-authored-by: GalaxyGorilla <sascha@netdef.org> Co-authored-by: Emanuele Di Pascale <emanuele@voltanet.io> Signed-off-by: Sebastien Merle <sebastien@netdef.org>
2020-11-24redhat: include new BFD development headerRafael Zalamena
Add to the package the BFD data plane protocol development header. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
2020-10-31redhat: Update changelog in frr.spec.inMartin Winter
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2020-10-31redhat: Add snmp as a subpackageMartin Winter
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2020-10-31redhat: Move RPKI to subpackage instead of a RPM build optionMartin Winter
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2020-08-07build, yang: bump libyang minimum required version to 1.0.184Renato Westphal
It's time to say good bye to libyang 0.16.105. The recently released libyang 1.0.184 includes numerous bug fixes and performance improvements that we need. Despite the major version bump from 0.x to 1.x, the libyang API is the same except for a single backward-incompatible change in the user types interface (which we're currently not using). Hence no code changes were necessary to adapt FRR to libyang 1.x. This commit also reintroduces some leafrefs that needed to be removed from our YANG modules due to a bug that was present on libyang 0.16.105. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2020-06-25redhat: Update logrotate to have knowledge of all daemonsDonald Sharp
Upon visual inspection the redhat logrotate file was incomplete Make it complete. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-04-14build: fix data plane FPM netlink moduleRafael Zalamena
Changes: * Let the package builder scripts know that we have a new module that needs to be taken care of. * Include the frr atomic header to avoid undeclared atomic operations. * Disable build on *BSDs because the code is using some zebra netlink functions only available for Linux. * Move data plane FPM module outside old FPM automake definition. * Fix atomic usage for Ubuntu 14.04 (always use explicit). Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
2020-01-25redhat: Update frr.spec.in to move all systems to Python3 except CentOS 6Martin Winter
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2020-01-05packaging: Redirect stderr to /dev/null in %post action (frr.spec.in)Donatas Abraitis
Solves: ``` /usr/bin/sed: couldn't write 40 items to stdout: Broken pipe /usr/bin/sed: couldn't write 40 items to stdout: Broken pipe /usr/bin/sed: couldn't write 40 items to stdout: Broken pipe /usr/bin/sed: couldn't write 40 items to stdout: Broken pipe /usr/bin/sed: couldn't write 40 items to stdout: Broken pipe /usr/bin/sed: couldn't write 40 items to stdout: Broken pipe /usr/bin/sed: couldn't write 40 items to stdout: Broken pipe ``` This happens because `grep -q` returns immediately after first match and closes the pipe while sed has more output to write. Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2019-12-27packaging: Fix bogus date in frr.spec.inDonatas Abraitis
``` RPM build errors: bogus date in %changelog: Sun May 28 2018 Rafael Zalamena <rzalamena@opensourcerouting.org> - 7.3_dev_MyRPMVersion ``` Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2019-12-27packaging: Adopt frr.spec.in to CentOS 8Donatas Abraitis
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2019-12-11zebra: create zebra_cumulus_mlag moduleDavid Lamparter
This is pretty much just to get rid of the HAVE_CUMULUS. The hook/module API is as "wtf" as it was before... Signed-off-by: David Lamparter <equinox@diac24.net>
2019-09-13tools: Modifications to copy support bundle filesSri Mohana Singamsetty
This commit is to copy the support bundle scripts to appropriate directories during installation Signed-off-by: Sri Mohana Singamsetty <msingamsetty@vmware.com>
2019-08-30bgpd/bmp: BMP implementationDavid Lamparter
This implements BMP. There's no fine-grained history here, the non-BMP preparations are already split out from here so all that remains is BMP proper. Signed-off-by: David Lamparter <equinox@diac24.net>
2019-08-19*: Fix spelling errors pointed out by debian packagingDonald Sharp
Debian packaging when run finds a bunch of spelling errors: I: frr: spelling-error-in-binary usr/bin/vtysh occurences occurrences I: frr: spelling-error-in-binary usr/lib/frr/bfdd Amount of times Number of times I: frr: spelling-error-in-binary usr/lib/frr/bgpd occurences occurrences I: frr: spelling-error-in-binary usr/lib/frr/bgpd recieved received I: frr: spelling-error-in-binary usr/lib/frr/isisd betweeen between I: frr: spelling-error-in-binary usr/lib/frr/ospf6d Infomation Information I: frr: spelling-error-in-binary usr/lib/frr/ospfd missmatch mismatch I: frr: spelling-error-in-binary usr/lib/frr/pimd bootsrap bootstrap I: frr: spelling-error-in-binary usr/lib/frr/pimd Unknwon Unknown I: frr: spelling-error-in-binary usr/lib/frr/zebra Requsted Requested I: frr: spelling-error-in-binary usr/lib/frr/zebra uknown unknown I: frr: spelling-error-in-binary usr/lib/x86_64-linux-gnu/frr/libfrr.so.0.0.0 overriden overridden This commit fixes all of them except the bgp `recieved` issue due to it being part of json output. That one will need to go through a deprecation cycle. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2019-06-04build: refactor & revamp python autoconf logicDavid Lamparter
Signed-off-by: David Lamparter <equinox@diac24.net>
2019-05-17vrrpd: update auto*, init scripts, etcQuentin Young
Add vrrpd to all the usual places daemons need to go Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2019-03-25Merge pull request #3989 from opensourcerouting/redhat-new-initDonald Sharp
redhat: switch to new init script
2019-03-22doc: move rpm build doc to dev docsQuentin Young
------------{ <(O.O)> }------------ Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2019-03-21redhat: switch to new init scriptDavid Lamparter
Drop the special versions of frr.init/frr.service/daemons from redhat/ and use the generic versions instead. Tested-by: Liam McBirnie <liam.mcbirnie@boeing.com> Signed-off-by: David Lamparter <equinox@diac24.net>
2019-02-20redhat: Require newer libyang (> 0.16.74) for embedded extensionsMartin Winter
The support of embedded extensions doesn't allow to build the RPM with and without (for older version). Require new version of Lbyang with embedded extensions supported Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2019-02-12Merge pull request #3719 from liam-mcb/masterMartin Winter
Revert "redhat: don't Requires initscript on systemd based distros"
2019-02-06tools: fix systemd dependency graphQuentin Young
Currently our systemd dependencies look something like this (example from vanilla Debian 9): $ systemctl list-dependencies frr frr.service ● ├─system.slice ● └─sysinit.target ... $ systemctl list-dependencies --reverse frr frr.service ● └─network-online.target ● └─apt-daily.service Note that sysinit.target does not depend on any network* service or target. In other words, unless there is a service that requires network-online.service, even if FRR is enabled it will not be started. Therefore network-online.target is the wrong unit to have in WantedBy=, as it is not always started. This patch updates our service file so that it is properly started by the system when enabled, delayed until networking is up, and if possible delayed until after NetworkManager, systemd-networkd or any other networking configuration manager has finished performing its tasks - i.e. after network-online.target. After these changes our new dependency graph looks like this: $ systemctl list-dependencies frr frr.service ● ├─system.slice ● │ └─networking.service ● ├─network.target ● └─sysinit.target ... $ systemctl list-dependencies --reverse frr frr.service ● └─multi-user.target ● └─graphical.target This way, FRR will be started by multi-user.target (just like most applications), but delayed until after networking has been configured. In the same stroke, this should also fix issues on systems that do not provide "networking.service" (such as CentOS 7). Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com> Signed-off-by: David Lamparter <equinox@diac24.net>
2019-02-01Revert "redhat: don't Requires initscript on systemd based distros"Liam McBirnie
This reverts commit ec59a1559cce612d04131639653eddf65d69e868. Frr.init (called by frr.service) requires functions provided by /etc/init.d/functions (part of the initscripts package). Signed-off-by: Liam McBirnie <liam.mcbirnie@boeing.com>
2018-12-06debian/tools: new init scriptDavid Lamparter
This separates the init script used for the system (and called in the systemd unit file) from the script that watchfrr uses to control daemons. Mixing these two caused the entire thing to become a rather huge spaghetti mess. Note that there is a behaviour change in that the new script always starts zebra regardless of zebra_enable. Side changes: - Ubuntu 12.04 removed from backports since it doesn't work anyway - zebra is always started regardless of zebra_enable. To disable FRR, the entire init script should be disabled through policy. - no-watchfrr operation is no longer supported by the scripts in the Debian packages. (This is intentional.) Signed-off-by: David Lamparter <equinox@diac24.net>
2018-12-06tools/frr: get rid of the bash array and "bB"David Lamparter
With a little shell-fu, this can actually be escaped properly. Signed-off-by: David Lamparter <equinox@diac24.net>
2018-10-31Merge pull request #2705 from opensourcerouting/northbound-yang-v2Donald Sharp
Northbound API
2018-10-28redhat: remove @CONFDATE@ from specDavid Lamparter
CONFDATE should not be used like this. Also, the extraversion is now burned into tarballs anyway so this is no longer neccessary. Signed-off-by: David Lamparter <equinox@diac24.net>
2018-10-28build: make rfptest and ospfclient "noinst"David Lamparter
Both of these are testing/demo-style tools that don't make sense as part of a normal installation. So don't install them. NB: this is only the executables, libospfclient and the RFP code are not affected. Signed-off-by: David Lamparter <equinox@diac24.net>
2018-10-27redhat: Added libyang dependencies to packageMartin Winter
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2018-09-26frr-reload.py: Add python2 & python3 compatibility.jpmondet
Signed-off-by: jpmondet <jp@mondet.org>
2018-09-10frr: improve READMEQuentin Young
Friendly READMEs are all the rage! Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-09-10frr: remove stale files, allow non-GNU AutomakeQuentin Young
* Add 'foreign' option to allow Automake to ignore missing GNU standard files * Remove AUTHORS * Remove NEWS * Remove ChangeLog Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-09-09build: move SPHINXBUILD= to configure in rpm buildDavid Lamparter
Need to pass this on configure now to work properly. Signed-off-by: David Lamparter <equinox@diac24.net>
2018-09-09Merge pull request #2862 from opensourcerouting/non-recursiveDonald Sharp
final non-recursive make
2018-09-09Update RPM building instructionsWilhelm Wijkander
2018-09-08*: cleanup .gitignore filesDavid Lamparter
Signed-off-by: David Lamparter <equinox@diac24.net>
2018-09-05redhat: Add fabricd to RPM packageMartin Winter
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2018-08-08bfdd: wire to the build processRafael Zalamena
Add BFD daemon to the build process and packaging instructions. Currently the bfdd daemon does nothing, this is just to document how the daemon insertion step occured. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
2018-07-29debianpkg, redhat, tools: Fixup startup/build for new daemonDonald Sharp
Add code to allow FRR to properly build and handle the staticd for some of the more common packaging. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-07-17RedHat spec: Add the rpki module when neededpcarana
Additional help complementing #2669, this adds the rpki module to the bgpd daemon at RPM creation.
2018-06-21redhat: cleanup %pre snippet a bitRuben Kerkhof
Based on https://fedoraproject.org/wiki/Packaging:UsersAndGroups Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>