Donatas Abraitis
0ad81e648e
Merge pull request #6387 from donaldsharp/reload
...
tools: revert frr-reload.py remove stderr redirects"
2020-05-13 09:10:06 +03:00
Donatas Abraitis
511a71f273
Merge pull request #6384 from kooky/set-src-doc
...
doc: Improve Zebra set src documentation. (IPv6)
2020-05-13 09:09:05 +03:00
Donatas Abraitis
7734484a37
Merge pull request #6383 from opensourcerouting/init-config-perms
...
build: use configfile mode in init script
2020-05-13 09:05:18 +03:00
Renato Westphal
a10f92e685
Merge pull request #6250 from chiragshah6/yang_nb6
...
*: RIB operational northbound callbacks implementation
2020-05-12 21:17:36 -03:00
Chirag Shah
00ebe5b5f9
yang: align keys and leafs
...
Align leafs according to keys order.
Fix some of the nits seen in yanglint -f yang format.
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-05-12 14:52:08 -07:00
Chirag Shah
748a972c03
yang: add unified protocol types in rib model
...
Add v4/v6 unified protocol list to rib operational
model.
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-05-12 14:52:08 -07:00
Chirag Shah
5a634c3440
zebra: rib northbound callback implementation
...
- add RIB's northbound list create/destory callback changes.
- add RIB's northbound callbacks implementation.
- add RIB's nexthop callbacks implementation.
- add RIB's nexthop weight field callback changes.
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-05-12 14:51:36 -07:00
Tim Bray
1d0372dd8f
doc: Improve Zebra set src documentation. (IPv6)
...
Include an IPv6 example for set src
And a note that the IP address has to exist. This is to try and make
people aware to avoid things like issue #4249
https://github.com/FRRouting/frr/issues/4249
Signed-off-by: Tim Bray <tim@kooky.org>
2020-05-12 22:49:33 +01:00
Chirag Shah
77f4028e50
zebra: afi-safi identity to value apis
...
Helper APIs to convert afi-safi identity to values.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-05-12 14:31:37 -07:00
Chirag Shah
db85668355
zebra: route node first next node
...
Add macros for route entry first and next node walk.
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-05-12 14:31:37 -07:00
Chirag Shah
56a88b9e1c
zebra: add zebra container to rib model
...
Add zebra container in rib tree.
When displaying RIB under vrf, it displays
zebra module name.
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-05-12 14:31:37 -07:00
Chirag Shah
9d86e091bb
zebra: northbound changes for the rib model
...
This commit implements:
RIB operational list create/destroy.
Walk over RIB tables using keys.
The first RIB table will be IPV4/unicast (table-id 254)
will be fetched.
Create a new api to fetch RIB table based on
afi-safi and table id as the keys.
remove mandatory true statement from the leaf which
is part of the list key.
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-05-12 13:25:10 -07:00
Mark Stapp
6bc5d97795
zebra: prefer outer label_type for recursive nexthops
...
When resolving a recursive nexthop, prefer the "outer"
label type, if present.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
2020-05-12 14:27:02 -04:00
Donald Sharp
b2be8c9286
tools: revert frr-reload.py remove stderr redirects"
...
This reverts commit 3fa139a65b
.
This is being reverted because this commit completely
breaks the invocation of frr-reload.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-05-12 13:31:09 -04:00
Sri Mohana Singamsetty
02b89bdca2
Merge pull request #6334 from ton31337/fix/labeled_unicast_table_scount
...
bgpd: Set a proper SAFI for labaled-unicast when looking for scount
2020-05-12 08:31:42 -07:00
Lou Berger
cc94d66cf2
Merge pull request #6340 from opensourcerouting/yang-license
...
Adopt the BSD-2-Clause license for our YANG modules
2020-05-12 11:29:52 -04:00
Renato Westphal
029ef880ec
Merge pull request #6366 from volta-networks/fix_pw_show
...
ldpd and Zebra: Expand existing debug commands.
2020-05-11 22:12:26 -03:00
Quentin Young
831f55ca4d
Merge pull request #6370 from barajus/patch-1
...
overview.rst: add RFC to VRRP
2020-05-11 16:35:34 -04:00
lynne
6bbdd9e979
ldpd and Zebra: Expand existing debug commands.
...
L2VPN PW are very hard to determine why they do not come up. The following
fixes expand the existing show commands in ldp and zebra to display a
reason why the PW is in the DOWN state and also display the labeled nexthop
route selected to reach the PW peer. By adding this information it will
provide the user some guidance on how to debug the PW issue. Also fixed an
assert if labels were changed for a PW that is between directly connected
peers.
Signed-off-by: Lynne Morrison <lynne@voltanet.io>
2020-05-11 16:22:52 -04:00
David Lamparter
5c90637711
build: use configfile mode in init script
...
This only applies for split-config; the init script would create an
empty config file with default permissions.
Reported-by: Robert Scheck <robert@fedoraproject.org>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2020-05-11 21:50:27 +02:00
Julien D
94b21e3c0d
doc: add RFC to VRRP
...
Add the VRRP bloc + RFC associated
Signed-off-by: barajus <julien.dhaille@gmail.com>
2020-05-11 21:46:20 +02:00
Renato Westphal
c78dec5385
Merge pull request #6381 from qlyoung/clean-grpc
...
lib: remove unnecessary rpc request in grpc
2020-05-11 16:36:00 -03:00
Quentin Young
f6239dc799
lib: remove unnecessary rpc request in grpc
...
Bit of leftover copypaste code there.
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2020-05-11 12:52:17 -04:00
Donatas Abraitis
420752a9b6
Merge pull request #6379 from donaldsharp/ip_as_path_removal_really
...
Ip as path removal really
2020-05-11 17:22:19 +03:00
Donald Sharp
9b6fddd415
doc: Fix doc to reflect reality on the ground
...
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-05-11 08:46:34 -04:00
Donald Sharp
0feba3716e
bgpd: really remove the no ip as-path...
command
...
We had already removed the `ip as-path..` command
to have `bgp as-path` but for some reason a `no ip as-path..`
command ALIAS was still around. Kill with extreme prejudice.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-05-11 08:45:11 -04:00
Donald Sharp
f3a9e1ab65
*: Update version string
...
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-05-11 08:04:15 -04:00
Quentin Young
6677126402
Merge pull request #6374 from opensourcerouting/grpc-undue-warning
...
lib: fix undue warning during gRPC module initialization
2020-05-11 00:24:54 -04:00
Donatas Abraitis
ec76a1d174
bgpd: Use default AFI_IP6/SAFI_UNICAST when displaying statistics
...
Without specifying a default afi/safi we get a segfault:
```
(gdb) frame 4
bgp_table_stats (..., afi=32724, safi=SAFI_UNICAST, ...
11349 if (!bgp->rib[afi][safi]) {
(gdb)
```
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2020-05-09 21:33:51 +03:00
Renato Westphal
69ec583289
lib: fix undue warning during gRPC module initialization
...
This warning only shows up when a daemon is started with --log=stdout.
Fix it.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2020-05-09 00:50:45 -03:00
Renato Westphal
0dca7bb209
Merge pull request #6368 from qlyoung/async-grpc
...
Async grpc
2020-05-09 00:48:52 -03:00
Quentin Young
ecf9fb30b7
lib: convert GRPC plugin to async
...
Synchronous GRPC services are called from arbitrary threads. This makes
access to anything outside the GRPC module unsafe. We need to convert
the plugin to use the async model that allows us to control our own
threads.
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2020-05-08 15:50:11 -04:00
Chirag Shah
0edcb505a3
lib: use frr_pthread to spawn grpc pthread
...
start grpc thread with frr_pthread library
callbacks to integrate with rcu infrastructure.
If a thread is created using native pthread callbacks
and if zlog is used then it leads to crash.
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
2020-05-08 15:50:11 -04:00
Donatas Abraitis
555fc63c75
Merge pull request #6348 from dslicenc/frr-reload-bfd
...
tools: fix frr traceback on bgp neighbor bfd deletion
2020-05-08 18:56:01 +03:00
Mark Stapp
a6f1ad43f0
Merge pull request #6362 from donaldsharp/typedef_i_hatez_it
...
Typedef replacements
2020-05-08 09:44:58 -04:00
Donald Sharp
91e6f25bc0
zebra: remove typedef rib_update_event_t from system
...
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-05-08 08:10:49 -04:00
Donald Sharp
630d596249
zebra: Remove typedef rib_table_info_t from system
...
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-05-08 08:10:49 -04:00
Donald Sharp
4d5647d076
zebra: Remove typedef rib_tables_iter_state from system
...
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-05-08 08:10:49 -04:00
Donald Sharp
f921557186
zebra: Remove typedef rnh_type_t from system
...
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-05-08 08:10:49 -04:00
Donald Sharp
67ceb40869
zebra: Remove typedef netlink_route_info_t
...
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-05-08 08:10:49 -04:00
Donald Sharp
7cf190690c
zebra: Remove the typedef netlink_nh_info_t
...
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-05-08 08:08:04 -04:00
Donald Sharp
c4528712b0
zebra: Remove typedef of mpls_srgb_t
...
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-05-08 08:08:04 -04:00
Donald Sharp
57dd86429f
zebra: Remove enum around ipv6_nd_suppress_ra_status
...
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-05-08 08:08:04 -04:00
Donald Sharp
768e40bde9
zebra: Remvoe typedef for zfpm_glob_t
...
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-05-08 08:08:04 -04:00
Donald Sharp
a78c2b98f7
zebra: Remove typedef zfpm_msg_format_e
...
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-05-08 08:08:04 -04:00
Donald Sharp
1d6a3ee83c
zebra: Remove the typedef for zfrpm_state_t
...
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-05-08 08:08:04 -04:00
Donald Sharp
eeaf257b79
zebra: Remove typedef of zfpm_stats_t
...
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-05-08 08:08:04 -04:00
Donald Sharp
332cba05a3
zebra: Remove typedef around zfpm_rnodes_iter
...
Typedef's are not used in our system remove.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2020-05-08 08:08:04 -04:00
Donatas Abraitis
bcf7b9e1c9
Merge pull request #6363 from donaldsharp/no_no_no
...
bgpd: `bgp bestpath bandwidth` should not be a legal command
2020-05-08 10:12:26 +03:00
Mark Stapp
faad472899
Merge pull request #6365 from donaldsharp/bsd_v6_Null_bs
...
zebra: Add code to install v6 blackhole routes on *bsd
2020-05-07 13:12:55 -04:00