]> git.proxmox.com Git - mirror_frr.git/log
mirror_frr.git
4 years agoFRRouting release 7.1 frr-7.1
David Lamparter [Tue, 18 Jun 2019 04:15:21 +0000 (06:15 +0200)]
FRRouting release 7.1

- gRPC northbound plugin
- "table NNN" removed from zebra
- more dataplane MT work
- EVPN in non-default VRFs
- RFC 8212 (default deny policy for eBGP)
- RFC 8106 (IPv6 RA DNS options)

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
4 years agoMerge pull request #4539 from opensourcerouting/7.1/watchfrr-sd-timeout
Donald Sharp [Mon, 17 Jun 2019 19:18:33 +0000 (15:18 -0400)]
Merge pull request #4539 from opensourcerouting/7.1/watchfrr-sd-timeout

[7.1] tools: retain sanity when reloading under systemd

4 years agotools: retain sanity when reloading under systemd
David Lamparter [Sun, 9 Jun 2019 23:35:04 +0000 (01:35 +0200)]
tools: retain sanity when reloading under systemd

Without this, we end up restarting watchfrr with the systemd watchdog
non-functional & tripped a bit later.  Also, if watchfrr is in the
"control" cgroup, systemd 232 will kill it.  (241 apparently doesn't.
Can't find anything about this in systemd's ChangeLog though.)

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
(cherry picked from commit 9c251d376ad8e604c25767b32c2816e9ae75a738)

4 years ago7.1: isisd: The RFC states that v6 addresses are limited to 16 in a hello … (#4475)
David Lamparter [Thu, 6 Jun 2019 17:44:03 +0000 (19:44 +0200)]
7.1: isisd: The RFC states that v6 addresses are limited to 16 in a hello … (#4475)

7.1: isisd: The RFC states that v6 addresses are limited to 16 in a hello …

4 years agoisisd: The RFC states that v6 addresses are limited to 16 in a hello packet
Donald Sharp [Wed, 5 Jun 2019 01:15:43 +0000 (21:15 -0400)]
isisd: The RFC states that v6 addresses are limited to 16 in a hello packet

The RFC states we can send only up to 16 v6 addresses in a hello packet
and cannot send sub tlv's of that type.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
4 years agoMerge pull request #4462 from donaldsharp/7.1_bfd_access_list
Rafael Zalamena [Wed, 5 Jun 2019 14:37:55 +0000 (11:37 -0300)]
Merge pull request #4462 from donaldsharp/7.1_bfd_access_list

7.1: bfdd: Modify bfdd to quietly accept access-lists

4 years agobfdd: Modify bfdd to quietly accept access-lists
Donald Sharp [Wed, 5 Jun 2019 01:38:11 +0000 (21:38 -0400)]
bfdd: Modify bfdd to quietly accept access-lists

The `access-list ...` command was causing bfdd to return
'unknown commands'.  Make bfdd at least cognizant of
access-lists enough to not create strange error messages

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
4 years agoMerge pull request #4425 from ton31337/feature/show_fqdn_in_show_ip_bgp_7.1
Donald Sharp [Thu, 30 May 2019 16:59:16 +0000 (12:59 -0400)]
Merge pull request #4425 from ton31337/feature/show_fqdn_in_show_ip_bgp_7.1

bgpd: [7.1] Show FQDN in `show [ip] bgp` output

4 years agobgpd: Show FQDN in `show [ip] bgp` output
Donatas Abraitis [Mon, 20 May 2019 13:43:01 +0000 (16:43 +0300)]
bgpd: Show FQDN in `show [ip] bgp` output

We already show this information in `show [ip] bgp <prefix`, thus why don't
show it in global output. It's very handy when using at scale and to see
the whole picture instead of resolving neighbor manually.

It will show FQDN only if `bgp default show-hostname` is toggled.

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
4 years agoMerge pull request #4423 from ton31337/feature/delete_prefix_list_by_sequence_number_7.1
Donald Sharp [Thu, 30 May 2019 13:01:54 +0000 (09:01 -0400)]
Merge pull request #4423 from ton31337/feature/delete_prefix_list_by_sequence_number_7.1

plist: [7.1] Delete prefix-list by sequence number

4 years agoplist: Delete prefix-list by sequence number
Donatas Abraitis [Fri, 24 May 2019 06:22:09 +0000 (09:22 +0300)]
plist: Delete prefix-list by sequence number

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
4 years agoMerge pull request #4411 from opensourcerouting/feature/fix-isis-route-deletion-7.1
Donald Sharp [Wed, 29 May 2019 13:11:57 +0000 (09:11 -0400)]
Merge pull request #4411 from opensourcerouting/feature/fix-isis-route-deletion-7.1

isisd: del routes when area is unconfigured

4 years agoisisd: del routes when area is unconfigured
Emanuele Di Pascale [Tue, 28 May 2019 14:46:06 +0000 (16:46 +0200)]
isisd: del routes when area is unconfigured

attempt to fix #4399

Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
4 years agoMerge pull request #4406 from opensourcerouting/snap-fix-7.1
Donald Sharp [Wed, 29 May 2019 01:05:08 +0000 (21:05 -0400)]
Merge pull request #4406 from opensourcerouting/snap-fix-7.1

[7.1] Snap fixes for 7.1

4 years agosnapcraft: Add libdb5.3 dependency
Martin Winter [Tue, 28 May 2019 22:56:24 +0000 (00:56 +0200)]
snapcraft: Add libdb5.3 dependency

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
4 years agosnapcraft: Disable libyang CACHE for snap package (Temp workaround)
Martin Winter [Mon, 18 Feb 2019 15:57:24 +0000 (07:57 -0800)]
snapcraft: Disable libyang CACHE for snap package (Temp workaround)

There seems to be a bug in latest libyang running when running in
a snap container which causes a failure of the cache logic. Disable
CACHE for now as it's not yet needed. Will be re-enabled in a later
release

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
4 years agosnapcraft: Add FabricD to Snap package
Martin Winter [Thu, 7 Feb 2019 23:12:14 +0000 (15:12 -0800)]
snapcraft: Add FabricD to Snap package

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
4 years agosnapcraft: Update bgpd to use newer rpki lib
Martin Winter [Thu, 7 Feb 2019 22:44:47 +0000 (14:44 -0800)]
snapcraft: Update bgpd to use newer rpki lib

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
4 years agosnapcraft: Add libyang to snap package
Martin Winter [Thu, 17 Jan 2019 19:02:04 +0000 (11:02 -0800)]
snapcraft: Add libyang to snap package

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
4 years agosnapcraft: Add missing staticd.conf.default
Martin Winter [Thu, 7 Feb 2019 15:07:25 +0000 (07:07 -0800)]
snapcraft: Add missing staticd.conf.default

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
4 years agosnapcraft: Don't stage libc6
Martin Winter [Thu, 17 Jan 2019 19:01:05 +0000 (11:01 -0800)]
snapcraft: Don't stage libc6

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
4 years agosnapcraft: Update RTRLIB to 0.6.3
Martin Winter [Thu, 17 Jan 2019 16:32:47 +0000 (08:32 -0800)]
snapcraft: Update RTRLIB to 0.6.3

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
4 years agoMerge pull request #4381 from opensourcerouting/7.1/dlist
Quentin Young [Fri, 24 May 2019 00:37:26 +0000 (20:37 -0400)]
Merge pull request #4381 from opensourcerouting/7.1/dlist

[7.1] DLIST / BGP adv_fifo deletion fix

4 years agobgpd: use DLIST for adv_fifo
David Lamparter [Mon, 20 May 2019 21:41:16 +0000 (23:41 +0200)]
bgpd: use DLIST for adv_fifo

I mistakenly assumed that something called "FIFO" would primarily be
used by removing items from the front.  This isn't the case for the
adv_fifo... so use a DLIST there to make sure deletions from the middle
of the queue are fast.

Signed-off-by: David Lamparter <equinox@diac24.net>
(cherry picked from commit 5ac8ecbabd9638f726fdff5d49b43e675a47e434)

4 years agolib: add DECLARE_DLIST (double-linked list)
David Lamparter [Sun, 12 May 2019 10:05:44 +0000 (12:05 +0200)]
lib: add DECLARE_DLIST (double-linked list)

Turns out we need one of these.  Same API as DECLARE_LIST, but deleting
random items is much faster.

Signed-off-by: David Lamparter <equinox@diac24.net>
(cherry picked from commit fdad523b547e68a2170a7e5fec4bad98222cb9a0)

4 years agoMerge pull request #4356 from donaldsharp/7.1_updates
Renato Westphal [Mon, 20 May 2019 13:34:39 +0000 (10:34 -0300)]
Merge pull request #4356 from donaldsharp/7.1_updates

7.1 updates

4 years agobgpd: display bgp neighbor advertised-routes json warning message
Sarita Patra [Tue, 14 May 2019 13:22:19 +0000 (06:22 -0700)]
bgpd: display bgp neighbor advertised-routes json warning message

Issue 1:
Getting an empty json without any warning message, while executing
the command "show ip bgp neighbor <x.x.x.x> advertised-routes
json" when the bgp instance is not present or getting created.

Issue 2:
Getting an empty json without any warning message, while executing
the command "show ip bgp vrf/view <name> advertised-routes json"
when the specified view/vrf is not present.

Fix:
Display warning message while executing the above cli commands, when
the bgp instance, specified vrf is not present.

Signed-off-by: Sarita Patra <saritap@vmware.com>
4 years agolib: fix crash in the CLI grammar sandbox
Renato Westphal [Mon, 13 May 2019 18:18:57 +0000 (15:18 -0300)]
lib: fix crash in the CLI grammar sandbox

The CLI grammer sandbox needs to initialize the northbound subsystem
otherwise the running_config global variable won't be set, which
leads to crashes.

Fixes #4319.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
4 years agodoc: fix ospf6d router-id cmd
Emanuele Di Pascale [Mon, 13 May 2019 11:05:59 +0000 (13:05 +0200)]
doc: fix ospf6d router-id cmd

in ospf6d, the 'router-id' command must be prefixed with 'ospf6'.
Update the docs to reflect this.

Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
4 years agobgpd: evpn json cli bug fix
Lakshman Krishnamoorthy [Sat, 11 May 2019 16:33:10 +0000 (09:33 -0700)]
bgpd: evpn json cli bug fix

Bug: If there are 2 different prefixes under an rd, the
output of "show bgp l2vpn evpn json" would print only one of the
prefixes.

RCA: prefix info was added to the json_object once per rd. Hence,
prefix and rd were added just once, as the loop iterated over all
the prefixes and paths.

This is related to my earlier commit that went in via PR 4283:
https://github.com/FRRouting/frr/pull/4283

Signed-off-by: Lakshman Krishnamoorthy <lkrishnamoor@vmware.com>
4 years agodoc: add doc for zebra dplane cli
Mark Stapp [Wed, 8 May 2019 18:12:55 +0000 (14:12 -0400)]
doc: add doc for zebra dplane cli

Add some notes about the cli associated with the zebra
dataplane.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
4 years agozebra: unset sticky mac upon local deletion
Chirag Shah [Thu, 9 May 2019 19:25:44 +0000 (12:25 -0700)]
zebra: unset sticky mac upon local deletion

if the local sticky mac delete request is received,
if there are associated neighbor entries present, mac's
only local flag is removed and marked as auto mac.

this results in next local mac learning automatically assumes
mac is sticky.

There is a case when bridge learning off is configured, user
configures sticky mac via bridge fdb add.
This MAC learns associated neighbor entry.
Later user deletes stick mac via bridge fdb del, this triggers
frr to delete mac but if there are neighbors present, frr marks
MAC as AUTO but does not remove sticky flag.
User enables bridge learning on which triggers
The mac to learn as dynamic entry and in absence of this
fix, the mac is marked as sticky.

Ticket:CM-24968
Reviewed By:CCR-8683
Testing Done:

Validated broken condition with internally reproduction
with fix and without.

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
4 years agodoc: add doc for bgp maximum-prefix knob
Quentin Young [Wed, 8 May 2019 19:29:13 +0000 (19:29 +0000)]
doc: add doc for bgp maximum-prefix knob

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
4 years agobgpd: Evpn json cli output missing
Lakshman Krishnamoorthy [Tue, 7 May 2019 21:07:35 +0000 (14:07 -0700)]
bgpd: Evpn json cli output missing

Issue1: The following json cli commands are broken (they dont display
anything):
1. show [ip] bgp l2vpn evpn json
2. show [ip] bgp l2vpn evpn all neighbors <IP> routes json
3. show [ip] bgp l2vpn evpn rd <RD> json
4. show [ip] bgp l2vpn evpn rd <RD> neighbors <IP> routes json

RCA1: The existing json_object was partially filled.
Some fields like "prefix", "prefixLen", etc were not
filled in the json_object.
RCA2: Code missing to display the constructed json_object.

Issue2: Column header not shown on bgp evpn commands.
Fix: turned on the flag to display header

Output after fix:
The above commands have been made to follow the existing output style of
"show bgp l2vpn evpn routes json"
leaf-1# sh bgp l2vpn evpn json
{
  "bgpTableVersion":1,
  "bgpLocalRouterId":"10.100.0.1",
  "defaultLocPrf":100,
  "localAS":65000,
  "10.100.0.1:3":{
    "rd":"10.100.0.1:3",
    "[3]:[0]:[32]:[10.100.0.1]":{
      "prefix":"[3]:[0]:[32]:[10.100.0.1]",
      "prefixLen":288,
      "paths":[
        {
          "valid":true,
          "bestpath":true,
          "pathFrom":"external",
          "routeType":3,
          "ethTag":0,
          "ipLen":32,
          "ip":"10.100.0.1",
          "weight":32768,
          "peerId":"(unspec)",
          "aspath":"",
          "path":"",
          "origin":"IGP",
          "nexthops":[
            {
              "ip":"10.100.0.1",
              "afi":"ipv4",
              "used":true
            }
          ]
        }
      ]
    }
  },
..........
..........
  "10.100.0.2:2":{
    "rd":"10.100.0.2:2",
    "[3]:[0]:[32]:[10.100.0.2]":{
      "prefix":"[3]:[0]:[32]:[10.100.0.2]",
      "prefixLen":288,
      "paths":[
        {
          "valid":true,
          "bestpath":true,
          "pathFrom":"external",
          "routeType":3,
          "ethTag":0,
          "ipLen":32,
          "ip":"10.100.0.2",
          "weight":0,
          "peerId":"205.0.113.2",
          "aspath":"65002",
          "path":"65002",
          "origin":"IGP",
          "nexthops":[
            {
              "ip":"10.100.0.2",
              "afi":"ipv4",
              "used":true
            }
          ]
        },
        {
          "valid":true,
          "pathFrom":"external",
          "routeType":3,
          "ethTag":0,
          "ipLen":32,
          "ip":"10.100.0.2",
          "weight":0,
          "peerId":"203.0.113.4",
          "aspath":"65001 65002",
          "path":"65001 65002",
          "origin":"IGP",
          "nexthops":[
            {
              "ip":"10.100.0.2",
              "afi":"ipv4",
              "used":true
            }
          ]
        }
      ]
    }
  },
....
....
  "numPrefix":10,
  "totalPrefix":10
}
leaf-1# sh bgp l2vpn evpn
BGP table version is 1, local router ID is 10.100.0.1
Status codes:s suppressed, d damped, h history, * valid, > best, i - int
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
Route Distinguisher: ip 10.100.0.1:3

*> [3]:[0]:[32]:[10.100.0.1]
                    10.100.0.1                         32768 i
Route Distinguisher: ip 10.100.0.1:4

*> [3]:[0]:[32]:[10.100.0.1]
                    10.100.0.1                         32768 i
Route Distinguisher: ip 10.100.0.1:5

*> [3]:[0]:[32]:[10.100.0.1]
                    10.100.0.1                         32768 i
Route Distinguisher: ip 10.100.0.1:6

*> [3]:[0]:[32]:[10.100.0.1]
                    10.100.0.1                         32768 i
Route Distinguisher: ip 10.100.0.2:2

*> [3]:[0]:[32]:[10.100.0.2]
                    10.100.0.2                             0 65002 i
*  [3]:[0]:[32]:[10.100.0.2]
                    10.100.0.2                             0 65001 65002
Route Distinguisher: ip 10.100.0.2:3

*> [3]:[0]:[32]:[10.100.0.2]
                    10.100.0.2                             0 65002 i
*  [3]:[0]:[32]:[10.100.0.2]
                    10.100.0.2                             0 65001 65002
Route Distinguisher: ip 10.100.0.2:4

*> [3]:[0]:[32]:[10.100.0.2]
                    10.100.0.2                             0 65002 i
*  [3]:[0]:[32]:[10.100.0.2]
                    10.100.0.2                             0 65001 65002

Displayed 10 out of 10 total prefixes

Signed-off-by: Lakshman Krishnamoorthy <lkrishnamoor@vmware.com>
4 years agoisisd: Don't set subtlv structure if we didn't unpack any subtlvs
Christian Franke [Fri, 10 May 2019 11:24:38 +0000 (13:24 +0200)]
isisd: Don't set subtlv structure if we didn't unpack any subtlvs

This ensures deserialized and serialized TLV representation is
consistent.

4 years agoPimd : S,G Mroute entries are not expiring even after KAT expiry,
rgirada [Fri, 3 May 2019 17:35:48 +0000 (10:35 -0700)]
Pimd : S,G Mroute entries are not expiring  even after KAT expiry,
       become stale entries.

Topology:
--------
Source
|
FHR
|
RP ------ LHR --- Recv1
|
Recv2

Root case :
-----------
When RP acts as a LHR i.e RP has a local receiver and registed for
the same group where LHR connected receiver also registered for the
same multicast group.When RP receives a (s,g) join form LHR , it
increments upstream ref count to two to track the Local membership
as well.But at the time of KAT expiry in RP , upstream reference
is not being removed Which is added to track local membership which
is causing to make these entries as stale in RP and FHR.

Fix : Made the change such that it removes the upstream reference
if it is added to track the local memberships.

Signed-off-by: Rajesh Girada <rgirada@vmware.com>
4 years agolib, bgpd: Disallow processing of duplicate config.
Naveen Thanikachalam [Wed, 8 May 2019 09:58:27 +0000 (02:58 -0700)]
lib, bgpd: Disallow processing of duplicate config.

This fix aims to reduce the load on BGPD when certain
exisiting configurations are replayed.
Specifically, the fix prevents BGPD from processing
routes when the following already existing configurations
are replayed:
1) A match criteria is configured within a route-map.
2) When "call" is invoked within a route-map.
3) When a route-map is tied to a BGP neighbor.

Signed-off-by: NaveenThanikachalam <nthanikachal@vmware.com>
4 years agolib : Child rmap not sending an update to parent rmap,if there is an update in child...
vishaldhingra [Thu, 9 May 2019 03:53:35 +0000 (20:53 -0700)]
lib : Child rmap not sending an update to parent rmap,if there is an update in child rmap.

Route map library creates a hash table to save the dependency binding.
route-map LRM permit 1
call rLRM
Whenever there is change in child routemap(rLRM), it tries to
find the dependency mapping with the child route map MATCH event
and it fails.The handing of match add and match delete was missing
to get the correct dependency,here it's LRM.
This fix would correct the flow to get the correct dependency.

Signed-off-by: vishaldhingra <vdhingra@vmware.com>
4 years agoMerge pull request #4336 from mjstapp/fix_vrf_lsps_7_1
Donald Sharp [Tue, 14 May 2019 17:35:57 +0000 (13:35 -0400)]
Merge pull request #4336 from mjstapp/fix_vrf_lsps_7_1

zebra: [7.1] remove vrf LSPs when vrf is deleted

4 years agozebra: [7.1] remove vrf LSPs when vrf is deleted
Mark Stapp [Tue, 14 May 2019 16:21:29 +0000 (12:21 -0400)]
zebra: [7.1] remove vrf LSPs when vrf is deleted

Try to remove any LSPs associated with a vrf when the vrf is
deleted. The vrf code was calling a helpful zebra_mpls api,
but that api was basically a no-op for vrfs other than
the default.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
4 years agoconfigure: Update Version to be 7.1
Donald Sharp [Wed, 8 May 2019 13:51:27 +0000 (09:51 -0400)]
configure: Update Version to be 7.1

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
4 years agoMerge pull request #4286 from vishaldhingra/show_expanded
Donald Sharp [Wed, 8 May 2019 11:56:00 +0000 (07:56 -0400)]
Merge pull request #4286 from vishaldhingra/show_expanded

bgpd : lcommlist not shows the standard and expanded conf. correctly.

4 years agobgpd : lcommlist not shows the standard and expanded conf. correctly.
vishaldhingra [Wed, 8 May 2019 04:12:03 +0000 (21:12 -0700)]
bgpd : lcommlist not shows the standard and expanded conf. correctly.

lcommunity_list_show uses the wrong macro to calculate the style.
Use the correct one LARGE_COMMUNITY_LIST_STANDARD.

Signed-off-by: vishaldhingra<vdhingra@vmware.com>
4 years agoMerge pull request #4280 from qlyoung/remove-yang-strreplace-func
Renato Westphal [Tue, 7 May 2019 21:52:16 +0000 (18:52 -0300)]
Merge pull request #4280 from qlyoung/remove-yang-strreplace-func

lib: remove str_replace function

4 years agoMerge pull request #4277 from rtrlib/2019-05-07-master-bugfix
Quentin Young [Tue, 7 May 2019 20:54:50 +0000 (16:54 -0400)]
Merge pull request #4277 from rtrlib/2019-05-07-master-bugfix

RPKI fixes/improvements

4 years agoMerge pull request #4082 from opensourcerouting/grpc-nb-plugin
Quentin Young [Tue, 7 May 2019 20:53:17 +0000 (16:53 -0400)]
Merge pull request #4082 from opensourcerouting/grpc-nb-plugin

gRPC northbound plugin

4 years agoMerge pull request #4215 from Orange-OpenSource/TE
Quentin Young [Tue, 7 May 2019 20:41:20 +0000 (16:41 -0400)]
Merge pull request #4215 from Orange-OpenSource/TE

ospfd: Correct Link-ID and Remote IP for TE LSA

4 years agolib: remove str_replace function
Quentin Young [Tue, 7 May 2019 17:53:23 +0000 (17:53 +0000)]
lib: remove str_replace function

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
4 years agoMerge pull request #4273 from donaldsharp/doc_zebra_command
Sri Mohana Singamsetty [Tue, 7 May 2019 16:30:09 +0000 (09:30 -0700)]
Merge pull request #4273 from donaldsharp/doc_zebra_command

doc: Add a couple of missed `show zebra ...` comamnds to doc

4 years agoMerge pull request #4270 from opensourcerouting/libyang-compat
Lou Berger [Tue, 7 May 2019 15:07:39 +0000 (11:07 -0400)]
Merge pull request #4270 from opensourcerouting/libyang-compat

lib, yang: disable libyang custom user types temporarily

4 years agobgpd: fix rpki module build without ssh support
Marcel Röthke [Tue, 7 May 2019 15:00:30 +0000 (17:00 +0200)]
bgpd: fix rpki module build without ssh support

Signed-off-by: Marcel Röthke <marcel.roethke@haw-hamburg.de>
4 years agobgpd: add missing newline to a warning message in the rpki module
Marcel Röthke [Tue, 7 May 2019 14:59:28 +0000 (16:59 +0200)]
bgpd: add missing newline to a warning message in the rpki module

Signed-off-by: Marcel Röthke <marcel.roethke@haw-hamburg.de>
4 years agodoc: Add a couple of missed `show zebra ...` comamnds to doc
Donald Sharp [Tue, 7 May 2019 02:51:45 +0000 (22:51 -0400)]
doc: Add a couple of missed `show zebra ...` comamnds to doc

Noticed that a couple of the `show zebra ...` commands are missing
from the zebra documentation that I use a bunch.  Let's add them
in.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
4 years agoMerge pull request #4266 from vishaldhingra/lcomm_dyn
Donald Sharp [Tue, 7 May 2019 02:16:28 +0000 (22:16 -0400)]
Merge pull request #4266 from vishaldhingra/lcomm_dyn

bgpd : dynamic modification in lcomm-list is not taking effect.

4 years agoMerge pull request #4268 from qlyoung/frrstr-replace
Renato Westphal [Tue, 7 May 2019 02:14:38 +0000 (23:14 -0300)]
Merge pull request #4268 from qlyoung/frrstr-replace

lib: add string replace function

4 years agoMerge pull request #4244 from donaldsharp/pim_single_interface
Renato Westphal [Tue, 7 May 2019 02:10:03 +0000 (23:10 -0300)]
Merge pull request #4244 from donaldsharp/pim_single_interface

pimd: Stop crash in show of single interface

4 years agoMerge pull request #4264 from pguibert6WIND/trace_bfd
Donald Sharp [Tue, 7 May 2019 01:42:18 +0000 (21:42 -0400)]
Merge pull request #4264 from pguibert6WIND/trace_bfd

More traces for BFD clients

4 years agolib, yang: disable libyang custom user types temporarily
Renato Westphal [Mon, 6 May 2019 18:57:02 +0000 (15:57 -0300)]
lib, yang: disable libyang custom user types temporarily

libyang 1.0 introduced a few changes in the user types API, and
these changes made FRR incompatible with libyang 1.x. In order to
ease our migration from libyang 0.x to libyang 1.x, let's disable
our libyang custom user types temporarily so that FRR can work
with both libyang 0.x and libyang 1.x. This should be especially
helpful to the CI systems during the transition. Once the migration
to libyang 1.x is complete, this commit will be reverted.

Disabling our libyang custom user types should have only
minimal performance implications when processing configuration
transactions. The user types infrastructure should be more important
in the future to perform canonization of YANG data values when
necessary.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
4 years agolib: add string replace function
Quentin Young [Mon, 6 May 2019 22:38:10 +0000 (22:38 +0000)]
lib: add string replace function

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
4 years agoMerge pull request #4256 from donaldsharp/zebra_table
Renato Westphal [Mon, 6 May 2019 22:08:17 +0000 (19:08 -0300)]
Merge pull request #4256 from donaldsharp/zebra_table

doc, zebra: Remove "table X" command

4 years agoMerge pull request #4253 from qlyoung/zapi-handler-args-macro
Renato Westphal [Mon, 6 May 2019 20:50:41 +0000 (17:50 -0300)]
Merge pull request #4253 from qlyoung/zapi-handler-args-macro

ZAPI callback args macro

4 years agoMerge pull request #4234 from donaldsharp/flood_the_vtep
Renato Westphal [Mon, 6 May 2019 20:33:34 +0000 (17:33 -0300)]
Merge pull request #4234 from donaldsharp/flood_the_vtep

zebra: Fix incorrect reading of REMOTE_VTEP_[ADD|DEL]

4 years agodoc, zebra: Remove "table X" command
Donald Sharp [Sat, 4 May 2019 00:54:20 +0000 (20:54 -0400)]
doc, zebra: Remove "table X" command

This command is broken and has been broken since the introduction
of vrf's.  Since no-one has complained it is safe to assume that
there is no call for this specialized linux command.  Remove
from the system with extreme prejudice.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
4 years agozebra: Be consistent in how we call rib_add( and rib_delete( with tableid
Donald Sharp [Mon, 6 May 2019 14:41:40 +0000 (10:41 -0400)]
zebra: Be consistent in how we call rib_add( and rib_delete( with tableid

The rib_add( and rib_delete( functions are there to allow
kernel interactions with the creation of routes.  Fixup the
code to be consistent in the passup of the tableid.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
4 years agobgpd : dynamic modification in lcomm-list is not taking effect.
vishaldhingra [Mon, 6 May 2019 12:32:58 +0000 (05:32 -0700)]
bgpd : dynamic modification in lcomm-list is not taking effect.

lcomm-list is configured and attached to route-map via match clause.
If you modify the lcomm-list then it is not taking into effect via routemap.

Signed-off-by: vishaldhingra <vdhingra@vmware.com>
4 years agoospfd: add bfd up event trace
Philippe Guibert [Thu, 2 May 2019 07:36:06 +0000 (09:36 +0200)]
ospfd: add bfd up event trace

that bfd trace is visible when using 'debug ospf nsm event' command.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
4 years agobgpd: add bfd event trace
Philippe Guibert [Thu, 2 May 2019 07:35:29 +0000 (09:35 +0200)]
bgpd: add bfd event trace

that bfd event trace is visible when 'debug bgp neighbor-event' is
enabled.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
4 years agoMerge pull request #4255 from donaldsharp/coverity_stole_my_sanity
Rafael Zalamena [Sun, 5 May 2019 11:48:40 +0000 (08:48 -0300)]
Merge pull request #4255 from donaldsharp/coverity_stole_my_sanity

Coverity stole my sanity

4 years agoMerge pull request #4233 from qlyoung/fix-zapi-msg-debugs
Mark Stapp [Fri, 3 May 2019 21:42:30 +0000 (17:42 -0400)]
Merge pull request #4233 from qlyoung/fix-zapi-msg-debugs

zebra: fix zapi msg debugging dumps

4 years ago*: use ZAPI_CALLBACK_ARGS macro for zapi handlers
Quentin Young [Fri, 3 May 2019 19:42:59 +0000 (19:42 +0000)]
*: use ZAPI_CALLBACK_ARGS macro for zapi handlers

This macro:
- Marks ZAPI callbacks for readability
- Standardizes argument names
- Makes it simple to add ZAPI arguments in the future
- Ensures proper types
- Looks better
- Shortens function declarations

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
4 years agozebra: fix zapi msg debugging dumps
Quentin Young [Wed, 1 May 2019 00:49:13 +0000 (00:49 +0000)]
zebra: fix zapi msg debugging dumps

When we switched to a pthread per client, we lost the ability to
correlate zapi message debugs with their handlers in zlog, because the
message was logged when it was read off the zapi socket and not right
before it was processed. Move the zapi msg hexdump to happen right
before we call the message handler.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
4 years agoMerge pull request #4252 from pogojotz/master
Quentin Young [Fri, 3 May 2019 19:54:41 +0000 (15:54 -0400)]
Merge pull request #4252 from pogojotz/master

doc: Fix failing `make doc`

4 years agolib: define ZAPI_CALLBACK_ARGS macro
Quentin Young [Fri, 3 May 2019 18:41:00 +0000 (18:41 +0000)]
lib: define ZAPI_CALLBACK_ARGS macro

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
4 years agodoc: Fix failing `make doc`
Juergen Werner [Fri, 3 May 2019 18:17:08 +0000 (20:17 +0200)]
doc: Fix failing `make doc`

This build system bug was introduced with 9251d1f596.

Signed-off-by: Juergen Werner <pogojotz@gmx.net>
4 years agozebra: Memory allocations do not fail
Donald Sharp [Sat, 4 May 2019 00:32:02 +0000 (20:32 -0400)]
zebra: Memory allocations do not fail

If a memory allocation fails then we *know* we assert
and core the program.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
4 years agolib: Remove functionally dead code.
Donald Sharp [Sat, 4 May 2019 00:28:38 +0000 (20:28 -0400)]
lib: Remove functionally dead code.

The vrf_with_default_name vrf variable is set to NULL
and then tested to see if it is valid.  Removing the
dead code.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
4 years agoospfd: continue statement is redundant
Donald Sharp [Sat, 4 May 2019 00:21:14 +0000 (20:21 -0400)]
ospfd: continue statement is redundant

The continue statement is redundant because DISCARD_LSA
has one in it already.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
4 years agobgpd: The vpn variable must be non-null
Donald Sharp [Sat, 4 May 2019 00:18:58 +0000 (20:18 -0400)]
bgpd: The vpn variable must be non-null

The vpn variable in bgp_evpn_advertise_svi_ip_vni must
be non-null as such it is impossible to ever need the
!vpn test case.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
4 years agozebra: Add some extra safety for route_info
Donald Sharp [Sat, 4 May 2019 00:14:39 +0000 (20:14 -0400)]
zebra: Add some extra safety for route_info

The route_info[X].meta_q_map *must* be less than MQ_SIZE
or we will do some strange stuff, so assert on it at startup.

The distance in route_info is a uint8_t so let's keep the data
structure the same.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
4 years agobgpd: Remove logically dead code assignment
Donald Sharp [Sat, 4 May 2019 00:09:54 +0000 (20:09 -0400)]
bgpd: Remove logically dead code assignment

The label value is set to MPLS_LABEL_NONE at the start
of the function and we never modify it, testing it for
BGP_PREVENT_VRF_2_VRF_LEAK equality will never be true

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
4 years agozebra: ifp must be a real pointer sometimes
Donald Sharp [Sat, 4 May 2019 00:06:55 +0000 (20:06 -0400)]
zebra: ifp must be a real pointer sometimes

The ifp pointer must be pointing at a real location
in memory since right above us in this loop we
return if it is.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
4 years agopbrd: Prevent usage of c if it is null
Donald Sharp [Sat, 4 May 2019 00:02:53 +0000 (20:02 -0400)]
pbrd: Prevent usage of c if it is null

It is possible, that a connected lookup from
zebra_interface_address_read is null.  Protect and Serve

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
4 years agoMerge pull request #4247 from mjstapp/fix_topotest_topo_only
Donald Sharp [Thu, 2 May 2019 22:48:28 +0000 (18:48 -0400)]
Merge pull request #4247 from mjstapp/fix_topotest_topo_only

topotest: fix pytest deprecation warning

4 years agotopotest: fix pytest deprecation warning
Mark Stapp [Thu, 2 May 2019 18:43:18 +0000 (14:43 -0400)]
topotest: fix pytest deprecation warning

As of pytest 4.something, a pattern we were using in conftest.py
was deprecated. Also make a new-ish test script executable (all
the rest appear to be?)

Signed-off-by: Mark Stapp <mjs@voltanet.io>
4 years agoMerge pull request #4243 from mjstapp/fix_dplane_strlcpy
Donald Sharp [Thu, 2 May 2019 14:58:47 +0000 (10:58 -0400)]
Merge pull request #4243 from mjstapp/fix_dplane_strlcpy

zebra: replace strncpy with strlcpy in dplane

4 years agopimd: Stop crash in show of single interface
Donald Sharp [Thu, 2 May 2019 14:37:04 +0000 (10:37 -0400)]
pimd: Stop crash in show of single interface

There exists a possiblity that we have upstream data but
at this point in time the rpf failed because there is no
path.  As such the rpf interface will be NULL and we
should not necessarily trust it.  Prevent a crash

Ticket: CM-24857
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
4 years agozebra: replace strncpy with strlcpy in dplane
Mark Stapp [Thu, 2 May 2019 13:52:48 +0000 (09:52 -0400)]
zebra: replace strncpy with strlcpy in dplane

The dataplane module picked up a couple of strncpys; replace
them.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
4 years agoMerge pull request #4238 from LabNConsulting/working/lb/master/tt-clear-nves
Donald Sharp [Thu, 2 May 2019 11:25:16 +0000 (07:25 -0400)]
Merge pull request #4238 from LabNConsulting/working/lb/master/tt-clear-nves

topotests/bgp_rfapi_basic_sanity: cleanup rfapi using non-debug command

4 years agoMerge pull request #4241 from FRRouting/revert-4192-biswajitfrr_4
Donald Sharp [Thu, 2 May 2019 11:15:51 +0000 (07:15 -0400)]
Merge pull request #4241 from FRRouting/revert-4192-biswajitfrr_4

Revert "bgpd: Prevent IPv6 routes received via a ibgp session with own ip as nexthop "

4 years agoRevert "bgpd: Prevent IPv6 routes received via a ibgp session with own ip as nexthop "
Donald Sharp [Thu, 2 May 2019 11:15:39 +0000 (07:15 -0400)]
Revert "bgpd: Prevent IPv6 routes received via a ibgp session with own ip as nexthop "

4 years agoMerge pull request #4240 from FRRouting/revert-4236-zebra_diet
Pascal Mathis [Thu, 2 May 2019 11:07:02 +0000 (13:07 +0200)]
Merge pull request #4240 from FRRouting/revert-4236-zebra_diet

Revert "Zebra diet"

4 years agoRevert "Zebra diet"
Lou Berger [Thu, 2 May 2019 10:54:59 +0000 (06:54 -0400)]
Revert "Zebra diet"

4 years agoMerge pull request #4236 from donaldsharp/zebra_diet
Lou Berger [Thu, 2 May 2019 10:34:17 +0000 (06:34 -0400)]
Merge pull request #4236 from donaldsharp/zebra_diet

Zebra diet

4 years agotopotests/bgp_rfapi_basic_sanity: cleanup rfapi using non-debug command
Lou Berger [Wed, 1 May 2019 21:16:14 +0000 (21:16 +0000)]
topotests/bgp_rfapi_basic_sanity: cleanup rfapi using non-debug command

Signed-off-by: Lou Berger <lberger@labn.net>
4 years agolib: Convert table code to use new hash type
Donald Sharp [Wed, 1 May 2019 00:23:52 +0000 (20:23 -0400)]
lib: Convert table code to use new hash type

This converts the new table code to use the new hash
type provided by David.

The following test is 1 million routes installed and how
much memory we are using:

Old mem usage:
Memory statistics for zebra:
System allocator statistics:
  Total heap allocated:  574 MiB
  Holding block headers: 0 bytes
  Used small blocks:     0 bytes
  Used ordinary blocks:  536 MiB
  Free small blocks:     33 MiB
  Free ordinary blocks:  4600 KiB
  Ordinary blocks:       0
  Small blocks:          0
  Holding blocks:        0

New Memory usage:
Memory statistics for zebra:
System allocator statistics:
  Total heap allocated:  542 MiB
  Holding block headers: 0 bytes
  Used small blocks:     0 bytes
  Used ordinary blocks:  506 MiB
  Free small blocks:     3374 KiB
  Free ordinary blocks:  33 MiB
  Ordinary blocks:       0
  Small blocks:          0
  Holding blocks:        0

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
4 years agolib: Make prefix_hash_key accept a const
Donald Sharp [Tue, 30 Apr 2019 23:40:11 +0000 (19:40 -0400)]
lib: Make prefix_hash_key accept a const

We should not be modifying the pointer for the prefix_hash_key
function, make it a const so that we can use it elsewhere.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
4 years agolib: Make _find functions treat the head as const
Donald Sharp [Tue, 30 Apr 2019 23:38:15 +0000 (19:38 -0400)]
lib: Make _find functions treat the head as const

The head of a list should not change for find functions.  Probably
are others that should be considered but these changes can come
in as needed I believe.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
4 years agozebra: Remove linked list and replace with new LIST
Donald Sharp [Tue, 30 Apr 2019 22:04:57 +0000 (18:04 -0400)]
zebra: Remove linked list and replace with new LIST

The `struct rib_dest_t` was being used to store the linked
list of rnh's associated with the node.  This was taking up
a bunch of memory.  Replace with new data structure supplied
by David and see the memory reductions associated with 1 million
routes in the zebra rib:

Old:
Memory statistics for zebra:
System allocator statistics:
  Total heap allocated:  675 MiB
  Holding block headers: 0 bytes
  Used small blocks:     0 bytes
  Used ordinary blocks:  567 MiB
  Free small blocks:     39 MiB
  Free ordinary blocks:  69 MiB
  Ordinary blocks:       0
  Small blocks:          0
  Holding blocks:        0

New:
Memory statistics for zebra:
System allocator statistics:
  Total heap allocated:  574 MiB
  Holding block headers: 0 bytes
  Used small blocks:     0 bytes
  Used ordinary blocks:  536 MiB
  Free small blocks:     33 MiB
  Free ordinary blocks:  4600 KiB
  Ordinary blocks:       0
  Small blocks:          0
  Holding blocks:        0

`struct rnh` was moved to rib.h because of the tangled web
of structure dependancies.  This data structure is used
in numerous places so it should be ok for the moment.
Future work might be needed to do a better job of splitting
up data structures and function definitions.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
4 years agodoc: Some minor doc cleanup for new data structures
Donald Sharp [Tue, 30 Apr 2019 21:56:05 +0000 (17:56 -0400)]
doc: Some minor doc cleanup for new data structures

Noticed during attempts at usage that the documentation
needed a couple small updates:

1) Tell the user which header to include
2) Some functions want the address of the data structure

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
4 years agoMerge pull request #4230 from sworleys/Route-Info-Check
Russ White [Wed, 1 May 2019 22:14:25 +0000 (18:14 -0400)]
Merge pull request #4230 from sworleys/Route-Info-Check

zebra: Check on startup route_info has all types