summaryrefslogtreecommitdiffstats
path: root/redhat (follow)
Commit message (Collapse)AuthorAgeFilesLines
* lib: adapt to version 2 of libyangChristian Hopps2021-05-131-1/+1
| | | | | | | | | 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>
* *: remove *.conf.sample filesQuentin Young2021-04-091-4/+1
| | | | | | | | | | 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>
* rpm: install frr.conf by defaultQuentin Young2021-04-091-0/+1
| | | | Signed-off-by: Quentin Young <qlyoung@nvidia.com>
* pceplib: Integrate pcelib into frrJavier Garcia2021-03-051-0/+1
| | | | | | 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>
* pathd: New SR-TE policy management daemonSebastien Merle2020-12-181-2/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* redhat: include new BFD development headerRafael Zalamena2020-11-241-0/+4
| | | | | | Add to the package the BFD data plane protocol development header. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
* redhat: Update changelog in frr.spec.inMartin Winter2020-10-311-1/+279
| | | | Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
* redhat: Add snmp as a subpackageMartin Winter2020-10-311-3/+21
| | | | Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
* redhat: Move RPKI to subpackage instead of a RPM build optionMartin Winter2020-10-311-15/+26
| | | | Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
* build, yang: bump libyang minimum required version to 1.0.184Renato Westphal2020-08-071-1/+1
| | | | | | | | | | | | | | | | | 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>
* redhat: Update logrotate to have knowledge of all daemonsDonald Sharp2020-06-251-0/+49
| | | | | | | Upon visual inspection the redhat logrotate file was incomplete Make it complete. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
* build: fix data plane FPM netlink moduleRafael Zalamena2020-04-141-0/+1
| | | | | | | | | | | | | | 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>
* redhat: Update frr.spec.in to move all systems to Python3 except CentOS 6Martin Winter2020-01-251-13/+43
| | | | Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
* packaging: Redirect stderr to /dev/null in %post action (frr.spec.in)Donatas Abraitis2020-01-051-1/+1
| | | | | | | | | | | | | | | | | | 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>
* packaging: Fix bogus date in frr.spec.inDonatas Abraitis2019-12-271-1/+1
| | | | | | | | | ``` 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>
* packaging: Adopt frr.spec.in to CentOS 8Donatas Abraitis2019-12-271-0/+19
| | | | Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
* zebra: create zebra_cumulus_mlag moduleDavid Lamparter2019-12-111-0/+1
| | | | | | | 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>
* tools: Modifications to copy support bundle filesSri Mohana Singamsetty2019-09-131-0/+3
| | | | | | This commit is to copy the support bundle scripts to appropriate directories during installation Signed-off-by: Sri Mohana Singamsetty <msingamsetty@vmware.com>
* bgpd/bmp: BMP implementationDavid Lamparter2019-08-301-0/+1
| | | | | | | | 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>
* *: Fix spelling errors pointed out by debian packagingDonald Sharp2019-08-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | 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>
* build: refactor & revamp python autoconf logicDavid Lamparter2019-06-041-7/+1
| | | | Signed-off-by: David Lamparter <equinox@diac24.net>
* vrrpd: update auto*, init scripts, etcQuentin Young2019-05-171-1/+19
| | | | | | Add vrrpd to all the usual places daemons need to go Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* Merge pull request #3989 from opensourcerouting/redhat-new-initDonald Sharp2019-03-254-694/+4
|\ | | | | redhat: switch to new init script
| * redhat: switch to new init scriptDavid Lamparter2019-03-214-694/+4
| | | | | | | | | | | | | | | | 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>
* | doc: move rpm build doc to dev docsQuentin Young2019-03-221-119/+0
|/ | | | | | ------------{ <(O.O)> }------------ Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* redhat: Require newer libyang (> 0.16.74) for embedded extensionsMartin Winter2019-02-201-2/+1
| | | | | | | | 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>
* Merge pull request #3719 from liam-mcb/masterMartin Winter2019-02-121-1/+1
|\ | | | | Revert "redhat: don't Requires initscript on systemd based distros"
| * Revert "redhat: don't Requires initscript on systemd based distros"Liam McBirnie2019-02-011-1/+1
| | | | | | | | | | | | | | | | | | 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>
* | tools: fix systemd dependency graphQuentin Young2019-02-061-3/+4
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* debian/tools: new init scriptDavid Lamparter2018-12-061-0/+3
| | | | | | | | | | | | | | | | | | | 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>
* tools/frr: get rid of the bash array and "bB"David Lamparter2018-12-062-20/+24
| | | | | | With a little shell-fu, this can actually be escaped properly. Signed-off-by: David Lamparter <equinox@diac24.net>
* Merge pull request #2705 from opensourcerouting/northbound-yang-v2Donald Sharp2018-10-311-0/+4
|\ | | | | Northbound API
| * redhat: Added libyang dependencies to packageMartin Winter2018-10-271-0/+4
| | | | | | | | Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
* | redhat: remove @CONFDATE@ from specDavid Lamparter2018-10-281-1/+1
| | | | | | | | | | | | | | 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>
* | build: make rfptest and ospfclient "noinst"David Lamparter2018-10-281-3/+0
|/ | | | | | | | | | 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>
* frr-reload.py: Add python2 & python3 compatibility.jpmondet2018-09-261-1/+1
| | | | Signed-off-by: jpmondet <jp@mondet.org>
* frr: improve READMEQuentin Young2018-09-101-1/+1
| | | | | | Friendly READMEs are all the rage! Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
* frr: remove stale files, allow non-GNU AutomakeQuentin Young2018-09-101-2/+2
| | | | | | | | | | * 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>
* build: move SPHINXBUILD= to configure in rpm buildDavid Lamparter2018-09-092-7/+9
| | | | | | Need to pass this on configure now to work properly. Signed-off-by: David Lamparter <equinox@diac24.net>
* Merge pull request #2862 from opensourcerouting/non-recursiveDonald Sharp2018-09-091-8/+0
|\ | | | | final non-recursive make
| * *: cleanup .gitignore filesDavid Lamparter2018-09-081-8/+0
| | | | | | | | Signed-off-by: David Lamparter <equinox@diac24.net>
* | Update RPM building instructionsWilhelm Wijkander2018-09-091-4/+3
|/
* redhat: Add fabricd to RPM packageMartin Winter2018-09-054-2/+14
| | | | Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
* bfdd: wire to the build processRafael Zalamena2018-08-084-8/+39
| | | | | | | | | 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>
* debianpkg, redhat, tools: Fixup startup/build for new daemonDonald Sharp2018-07-293-2/+6
| | | | | | | 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>
* RedHat spec: Add the rpki module when neededpcarana2018-07-171-0/+4
| | | Additional help complementing #2669, this adds the rpki module to the bgpd daemon at RPM creation.
* redhat: cleanup %pre snippet a bitRuben Kerkhof2018-06-211-14/+13
| | | | | | Based on https://fedoraproject.org/wiki/Packaging:UsersAndGroups Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
* redhat: add option to enable Cumulus extensionsRuben Kerkhof2018-06-211-0/+4
| | | | Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
* redhat: quote %name macroRuben Kerkhof2018-06-211-4/+4
| | | | Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
* redhat: replace hardcoded path with variableRuben Kerkhof2018-06-211-3/+3
| | | | Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>