]> git.proxmox.com Git - mirror_frr.git/log
mirror_frr.git
3 years agoMerge pull request #7711 from volta-networks/fix_ldpsync_client_close_callback
Renato Westphal [Fri, 11 Dec 2020 14:25:53 +0000 (11:25 -0300)]
Merge pull request #7711 from volta-networks/fix_ldpsync_client_close_callback

isisd, ospfd: update 'client close' callback to 'ldp fail' api

3 years agoisisd, ospfd: update 'client close' callback to 'ldp fail' api
Karen Schoener [Thu, 10 Dec 2020 18:35:34 +0000 (13:35 -0500)]
isisd, ospfd: update 'client close' callback to 'ldp fail' api

Update 'client close' callback to 'ldp fail' api.

Signed-off-by: Karen Schoener <karen@voltanet.io>
3 years agoMerge pull request #7678 from donaldsharp/aspath_to_zebra
Russ White [Thu, 10 Dec 2020 15:38:14 +0000 (10:38 -0500)]
Merge pull request #7678 from donaldsharp/aspath_to_zebra

Aspath to zebra

3 years agoMerge pull request #7677 from opensourcerouting/acl-back-compat
Donald Sharp [Thu, 10 Dec 2020 13:14:34 +0000 (08:14 -0500)]
Merge pull request #7677 from opensourcerouting/acl-back-compat

lib: restore previous access/prefix list behaviour

3 years agoMerge pull request #7706 from slankdev/slankdev-unexpose-lm-func-1
Donald Sharp [Thu, 10 Dec 2020 12:43:02 +0000 (07:43 -0500)]
Merge pull request #7706 from slankdev/slankdev-unexpose-lm-func-1

zebra: unexpose label-manager util-funcs as static

3 years agoMerge pull request #7708 from ton31337/fix/doc_hash_cmp
Rafael Zalamena [Thu, 10 Dec 2020 12:22:22 +0000 (09:22 -0300)]
Merge pull request #7708 from ton31337/fix/doc_hash_cmp

doc: update doc comment on hash_cmp (round 2)

3 years agoMerge pull request #7697 from pguibert6WIND/zebra_crash_startup_zns
Rafael Zalamena [Thu, 10 Dec 2020 12:10:34 +0000 (09:10 -0300)]
Merge pull request #7697 from pguibert6WIND/zebra_crash_startup_zns

zebra: anticipate zns creation at vrf creation when backend is vrf-lite

3 years agoMerge pull request #7492 from Niral-Networks/niral_ospfv3_fix_redist
Rafael Zalamena [Thu, 10 Dec 2020 12:01:12 +0000 (09:01 -0300)]
Merge pull request #7492 from Niral-Networks/niral_ospfv3_fix_redist

ospf6d : Code refactoring for route redistribution.

3 years agodoc: update doc comment on hash_cmp (round 2)
Donatas Abraitis [Thu, 10 Dec 2020 09:20:42 +0000 (11:20 +0200)]
doc: update doc comment on hash_cmp (round 2)

Related: c8aad9c3a4b3e6d6d85fcedaab80cc271015b1f9

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
3 years agoMerge pull request #7649 from qlyoung/fix-doc-comment-hashcmp
Donatas Abraitis [Thu, 10 Dec 2020 09:07:06 +0000 (11:07 +0200)]
Merge pull request #7649 from qlyoung/fix-doc-comment-hashcmp

lib: update doc comment on hash_cmp

3 years agoMerge pull request #7524 from donaldsharp/zebra_route_map_tighten
Donatas Abraitis [Thu, 10 Dec 2020 09:01:25 +0000 (11:01 +0200)]
Merge pull request #7524 from donaldsharp/zebra_route_map_tighten

zebra: deny when route map is specified but does not exist yet

3 years agoMerge pull request #7705 from chiragshah6/mdev
Donatas Abraitis [Thu, 10 Dec 2020 08:58:59 +0000 (10:58 +0200)]
Merge pull request #7705 from chiragshah6/mdev

bgpd: local routes use non-default distance

3 years agoMerge pull request #7703 from volta-networks/fix_ldpsync_remove_hello
Donald Sharp [Thu, 10 Dec 2020 01:21:11 +0000 (20:21 -0500)]
Merge pull request #7703 from volta-networks/fix_ldpsync_remove_hello

ldpd, isisd, ospfd: Remove periodic ldp-sync hello message

3 years agozebra: unexpose label-manager util-funcs as static
Hiroki Shirokura [Thu, 10 Dec 2020 00:33:29 +0000 (09:33 +0900)]
zebra: unexpose label-manager util-funcs as static

Following functions which is a piece of label-maanager implementation
isn't called from out side of its file. And all lines of label-manager
are coded on zebra/label_manager.c at this time. So these functions
should be unexposed.

Functions:
- create_label_chunk
- assign_label_chunk
- delete_label_chunk
- release_label_chunk

Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
3 years agobgpd: local routes use non-default distance
Chirag Shah [Wed, 9 Dec 2020 05:04:50 +0000 (21:04 -0800)]
bgpd: local routes use non-default distance

Use user provided AD for local routes (aggregate).

 address-family ipv4 unicast
  distance bgp 20 200 210
  network 47.2.2.8/30
  aggregate-address 51.1.0.0/16

Testing Done:

Before aggr route uses default 200 AD even user provided local AD.
B>* 51.1.0.0/16 [200/0] unreachable (blackhole), weight 1, 00:01:14

After:
B>* 51.1.0.0/16 [210/0] unreachable (blackhole), weight 1, 00:00:01

Signed-off-by: Chirag Shah <chirag@nvidia.com>
3 years agoMerge pull request #7685 from mjstapp/fix_nhrp_int_sa
Donald Sharp [Wed, 9 Dec 2020 20:02:42 +0000 (15:02 -0500)]
Merge pull request #7685 from mjstapp/fix_nhrp_int_sa

nhrpd: fix SA warning in nhrp_interface

3 years agoldpd, isisd, ospfd: Remove periodic ldp-sync hello message
Karen Schoener [Wed, 9 Dec 2020 17:09:18 +0000 (12:09 -0500)]
ldpd, isisd, ospfd: Remove periodic ldp-sync hello message

Removing the obsolete ldp-sync periodic 'hello' message.

When ldp-sync is configured, IGPs take action if the LDP process goes down.

The IGPs have been updated to use the zapi client close callback to detect
the LDP process going down.

Signed-off-by: Karen Schoener <karen@voltanet.io>
3 years agoMerge pull request #7699 from opensourcerouting/ldpd-printfrr-issue
Mark Stapp [Wed, 9 Dec 2020 18:36:28 +0000 (13:36 -0500)]
Merge pull request #7699 from opensourcerouting/ldpd-printfrr-issue

ldpd: fix printfrr format specifiers in the child processes

3 years agoMerge pull request #7700 from opensourcerouting/isisd-null-check
Mark Stapp [Wed, 9 Dec 2020 18:34:11 +0000 (13:34 -0500)]
Merge pull request #7700 from opensourcerouting/isisd-null-check

isisd: fix null pointer dereference when parsing LSP

3 years agoMerge pull request #7686 from volta-networks/fix_ldpsync_igps_detect_client_close
Donald Sharp [Wed, 9 Dec 2020 16:49:22 +0000 (11:49 -0500)]
Merge pull request #7686 from volta-networks/fix_ldpsync_igps_detect_client_close

isisd, ospfd: IGPs detect LDP down via zapi client close message

3 years agoisisd: fix null pointer dereference when parsing LSP
Renato Westphal [Thu, 3 Dec 2020 15:19:06 +0000 (12:19 -0300)]
isisd: fix null pointer dereference when parsing LSP

In some extraordinary circumstances an LSP might not have any
TLV. Add a null check to prevent a crash when that happens.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
3 years agoldpd: fix printfrr format specifiers in the child processes
Renato Westphal [Sun, 6 Dec 2020 00:44:41 +0000 (21:44 -0300)]
ldpd: fix printfrr format specifiers in the child processes

In ldpd, the child processes send IPC messages to the main process to
perform logging in their behalf (access to the file descriptor used
for logging needs to be serialized). This commit fixes a problem
that was preventing the printfrr format specifiers from working in
the child processes, since vsnprintf() was being used instead of
vsnprintfrr() before sending the log messages to the parent process.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
3 years agoisisd, ospfd: IGPs detect LDP down via zapi client close message
Karen Schoener [Tue, 8 Dec 2020 14:44:27 +0000 (09:44 -0500)]
isisd, ospfd: IGPs detect LDP down via zapi client close message

When ldp-sync is configured, IGPs take action if the LDP process goes down.

Currently, IGPs detect the LDP process is down if they do not receive a
periodic 'hello' message from LDP within 1 second.

Intermittently, this heartbeat mechanism causes false topotest failures.
When the failure occurs, LDP is busy receiving messages from zebra for a
few seconds.  During this time, LDP does not send the expected periodic
message.

With this change, IGPs detect LDP down via zapi client close message.

Signed-off-by: Karen Schoener <karen@voltanet.io>
3 years agozebra: anticipate zns creation at vrf creation when backend is vrf-lite
Philippe Guibert [Tue, 8 Dec 2020 11:11:05 +0000 (11:11 +0000)]
zebra: anticipate zns creation at vrf creation when backend is vrf-lite

in the case the namespace pointer is already available, feed it at vrf
creation. this prevents from crashing if the netlink parsing already
began, and the vrf-lite is not enabled yet.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
3 years agoMerge pull request #7690 from donaldsharp/nht_show_is_not_not_not
Mark Stapp [Wed, 9 Dec 2020 12:58:37 +0000 (07:58 -0500)]
Merge pull request #7690 from donaldsharp/nht_show_is_not_not_not

zebra, tests: Fix `show ip nht`

3 years agolib: prevent libyang abstraction memory leak
Rafael Zalamena [Wed, 9 Dec 2020 12:57:28 +0000 (09:57 -0300)]
lib: prevent libyang abstraction memory leak

Call `ly_set_free()` on `YANG_ITER_STOP` as well.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
3 years agoMerge pull request #7688 from kuldeepkash/bgp_multi_vrf
Donald Sharp [Wed, 9 Dec 2020 12:47:09 +0000 (07:47 -0500)]
Merge pull request #7688 from kuldeepkash/bgp_multi_vrf

tests: Enhanced auto-rd verification logic for evpn_type5 tests

3 years agoMerge pull request #7694 from slankdev/slankdev-use-zservsend-1
Donald Sharp [Wed, 9 Dec 2020 12:36:32 +0000 (07:36 -0500)]
Merge pull request #7694 from slankdev/slankdev-use-zservsend-1

zebra: use zserv_send_message instead of writen

3 years agozebra: use zserv_send_message instead of writen
Hiroki Shirokura [Wed, 9 Dec 2020 08:17:13 +0000 (17:17 +0900)]
zebra: use zserv_send_message instead of writen

Following functions is using writen to dispatch message
into socket, but another function uses zserv_send_message.
This commit does tiny unification for zapi's socket messaging.

Funcs:
- zsend_assign_label_chunk_response()
- zsend_label_manager_connect_response()

Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
3 years agoospf6d : Code refactoring for route redistribution.
Kaushik [Mon, 9 Nov 2020 15:51:29 +0000 (07:51 -0800)]
ospf6d : Code refactoring for route redistribution.

1. Created new ospf6_redist structure.
2. Moved the 'route_map' structure from structure 'ospf6' to
   structure 'ospf6_redist'.
3. Added new message type OSPF6_REDISTRIBUTE.
4. Added the placeholder for metric option in structure ospf6_redist
   for redistribute.
5. Added few API's for route redistribute lookup, add & del.

Signed-off-by: Kaushik <kaushik@niralnetworks.com>
3 years agozebra, tests: Fix `show ip nht`
Donald Sharp [Tue, 8 Dec 2020 20:50:46 +0000 (15:50 -0500)]
zebra, tests: Fix `show ip nht`

The `show ip nht` and `show ipv6 nht` commands were broken.
This is because recent code commit: 0154d8ce45a5099d2d0b9dd3de4e

assumed that p must not be NULL and this is not the case.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agoMerge pull request #7684 from donaldsharp/metric_doc
Mark Stapp [Tue, 8 Dec 2020 17:16:43 +0000 (12:16 -0500)]
Merge pull request #7684 from donaldsharp/metric_doc

doc: Add some notes about RR semantics and the Linux Kernel

3 years agotests: Enhanced auto-rd verification as per changes done in #7652
kuldeepkash [Tue, 8 Dec 2020 15:50:16 +0000 (15:50 +0000)]
tests: Enhanced auto-rd verification as per changes done in #7652

1. As per recent changes done in PR #7652, we have modified the auto-rd verification logic
link: https://github.com/FRRouting/frr/pull/7652
Signed-off-by: kuldeepkash <kashyapk@vmware.com>
3 years agonhrpd: fix SA warning in nhrp_interface
Mark Stapp [Tue, 8 Dec 2020 14:10:10 +0000 (09:10 -0500)]
nhrpd: fix SA warning in nhrp_interface

Clear SA warning from recent nhrp cache code changes.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
3 years agodoc: Update sharpd and bgpd documentation
Donald Sharp [Sat, 5 Dec 2020 20:41:53 +0000 (15:41 -0500)]
doc: Update sharpd and bgpd documentation

Update these two daemons to include the new
ability for both bgp and sharpd to send extra informational
data to zebra.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agobgpd, zebra: Add ability for bgp to send AS-Path information to zebra
Donald Sharp [Sat, 5 Dec 2020 20:34:59 +0000 (15:34 -0500)]
bgpd, zebra: Add ability for bgp to send AS-Path information to zebra

Add a bit of code to allow bgp to send the AS-Path associated with
the route being installed to zebra so it can be displayed and
used as part of the `show ip route A` command in zebra.

eva# show ip route 20.0.0.0/11
Routing entry for 20.0.0.0/11
  Known via "bgp", distance 20, metric 0, best
  Last update 00:00:00 ago
  * 192.168.161.1, via enp39s0, weight 1
    AS-Path: 60000 64539 15096 6939 8075

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agosharpd, zebra: Pass and display opaque data as PoC
Donald Sharp [Sat, 5 Dec 2020 19:51:21 +0000 (14:51 -0500)]
sharpd, zebra: Pass and display opaque data as PoC

Pass data from sharpd to zebra as opaque data and display
it as part of the detailed route data.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agozebra: Setup structure for opaque data to be displayed
Donald Sharp [Sat, 5 Dec 2020 12:06:38 +0000 (07:06 -0500)]
zebra: Setup structure for opaque data to be displayed

Setup the output mechanism for opaque data to be displayed
to the end operator.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agozebra: Gather opaque data into the route entry for storage
Donald Sharp [Sat, 5 Dec 2020 01:01:51 +0000 (20:01 -0500)]
zebra: Gather opaque data into the route entry for storage

Just gather the opaque data into the route entry.  Later
commits will display this data for end users as well as
to send it down.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agolib: Add encode/decode of opaque data
Donald Sharp [Sat, 5 Dec 2020 00:40:22 +0000 (19:40 -0500)]
lib: Add encode/decode of opaque data

Add a bit of code that allows for opaque data to be
sent from an upper level protocol to zebra.  This is just
pass through data that will be used as part of displaying
useful data about a route in a `show ip route` command
in future commits.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agolib, zebra: Fix overlapping message types
Donald Sharp [Mon, 7 Dec 2020 17:13:06 +0000 (12:13 -0500)]
lib, zebra: Fix overlapping message types

We had duplicate message id's.  Shit's broke yo.

Fix.  I have no idea how this properly worked.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agoMerge pull request #7683 from volta-networks/feat_zapi_client_close
Donald Sharp [Tue, 8 Dec 2020 14:05:00 +0000 (09:05 -0500)]
Merge pull request #7683 from volta-networks/feat_zapi_client_close

zebra: Adding zapi client close notification

3 years agodoc: Add some notes about RR semantics and the Linux Kernel
Donald Sharp [Tue, 8 Dec 2020 14:02:02 +0000 (09:02 -0500)]
doc: Add some notes about RR semantics and the Linux Kernel

Add doc about RR semantics for Linux Kernel and why it works
the way it does.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agozebra: Adding zapi client close notification
Karen Schoener [Mon, 7 Dec 2020 23:01:01 +0000 (18:01 -0500)]
zebra: Adding zapi client close notification

When zebra detects a client close, send a zapi client close
notification.

Signed-off-by: Karen Schoener <karen@voltanet.io>
3 years agoMerge pull request #7681 from chiragshah6/mdev
Russ White [Mon, 7 Dec 2020 22:19:09 +0000 (17:19 -0500)]
Merge pull request #7681 from chiragshah6/mdev

bgpd: fix distance for aggregate route

3 years agoMerge pull request #7582 from AnuradhaKaruppiah/frr-reload-cleanup
Russ White [Mon, 7 Dec 2020 21:19:04 +0000 (16:19 -0500)]
Merge pull request #7582 from AnuradhaKaruppiah/frr-reload-cleanup

frr reload fixes for mac and ip normalization

3 years agoMerge pull request #7501 from pguibert6WIND/nhrp_map_fix
Russ White [Mon, 7 Dec 2020 21:17:39 +0000 (16:17 -0500)]
Merge pull request #7501 from pguibert6WIND/nhrp_map_fix

nhrpd: cache config may disappear if iface not present at startup

3 years agobgpd: fix distance for aggregate route
Chirag Shah [Wed, 2 Dec 2020 00:02:36 +0000 (16:02 -0800)]
bgpd: fix distance for aggregate route

bgp aggregate address installs route with self peer which
can have peer->su of unspecifed type.
bgp_distance_apply bailed out as it fails to parse
sockunion2hostprefix for af type unspec.

config:
 address-family ipv4 unicast
  aggregate-address 50.1.0.0/16 summary-only

Testing Done:

Before:
B>* 50.1.0.0/16 [20/0] unreachable (blackhole), weight 1, 00:00:02

After:
B>* 50.1.0.0/16 [200/0] unreachable (blackhole), weight 1, 00:01:28

Signed-off-by: Chirag Shah <chirag@nvidia.com>
3 years agolib: silently ignore duplicated values
Rafael Zalamena [Mon, 7 Dec 2020 15:10:42 +0000 (12:10 -0300)]
lib: silently ignore duplicated values

Keep the previous CLI behavior of silently ignoring access lists which
contain the same value.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
3 years agolib: disallow prefix list duplicated values
Rafael Zalamena [Mon, 7 Dec 2020 15:08:44 +0000 (12:08 -0300)]
lib: disallow prefix list duplicated values

Don't allow users to create multiple entries in the same list with the
same value to keep the behavior previously to northbound migration.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
3 years agoMerge pull request #7671 from idryzhov/bfd-fix-session-lookup
Rafael Zalamena [Mon, 7 Dec 2020 13:09:34 +0000 (10:09 -0300)]
Merge pull request #7671 from idryzhov/bfd-fix-session-lookup

bfd: fix session lookup

3 years agoMerge pull request #7679 from donaldsharp/topo_fixes
Donatas Abraitis [Mon, 7 Dec 2020 09:14:09 +0000 (11:14 +0200)]
Merge pull request #7679 from donaldsharp/topo_fixes

tests: Close some open handles

3 years agotests: Close some open handles
Donald Sharp [Sun, 6 Dec 2020 01:05:52 +0000 (20:05 -0500)]
tests: Close some open handles

I accidently installed something that is telling me about
unlosed handles in the tests.  Let's clean them up.

<and yes I have no idea wtf I did>

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agolib: silently ignore duplicated values
Rafael Zalamena [Fri, 4 Dec 2020 21:12:58 +0000 (18:12 -0300)]
lib: silently ignore duplicated values

Keep the previous CLI behavior of silently ignoring access lists which
contain the same value.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
3 years agolib: disallow access list duplicated values
Rafael Zalamena [Fri, 4 Dec 2020 21:11:45 +0000 (18:11 -0300)]
lib: disallow access list duplicated values

Don't allow users to create multiple rules in the same list with the
same value to keep the behavior previously to northbound migration.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
3 years agoMerge pull request #7675 from donaldsharp/bgp_nh
Mark Stapp [Fri, 4 Dec 2020 20:36:27 +0000 (15:36 -0500)]
Merge pull request #7675 from donaldsharp/bgp_nh

bgpd: Let's actually track if the nh was updated

3 years agoMerge pull request #7669 from ranjanyash54/2370
Donald Sharp [Fri, 4 Dec 2020 15:39:53 +0000 (10:39 -0500)]
Merge pull request #7669 from ranjanyash54/2370

ospf6d: Router-ID filter is not filtering the show command "do show i…

3 years agoMerge pull request #7673 from idryzhov/isisd-sa
Donald Sharp [Fri, 4 Dec 2020 15:39:14 +0000 (10:39 -0500)]
Merge pull request #7673 from idryzhov/isisd-sa

isisd: fix SA warning

3 years agoMerge pull request #7667 from donaldsharp/vtysh_more_useful_data
Mark Stapp [Fri, 4 Dec 2020 13:14:23 +0000 (08:14 -0500)]
Merge pull request #7667 from donaldsharp/vtysh_more_useful_data

Vtysh more useful data

3 years agobgpd: Let's actually track if the nh was updated
Donald Sharp [Fri, 4 Dec 2020 13:01:31 +0000 (08:01 -0500)]
bgpd: Let's actually track if the nh was updated

In bgp_zebra_announce when iterating over multipath
we were checking to ensure that the nexthop was updated
but never initially clearing the nh_updated variable.
Thus leading to a situation where we could crash.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agoospf6d: Router-ID filter is not filtering the show command "do show ipv6 ospf6 neighb...
Yash Ranjan [Fri, 4 Dec 2020 09:40:33 +0000 (01:40 -0800)]
ospf6d: Router-ID filter is not filtering the show command "do show ipv6 ospf6 neighbour A.B.C.D"

Compare the neighbour id string from the arguments to the router_id of
the neighbor. If equal then call the show function.

Signed-off-by: Yash Ranjan <ranjany@vmware.com>
3 years agoisisd: fix SA warning
Igor Ryzhov [Fri, 4 Dec 2020 12:11:20 +0000 (15:11 +0300)]
isisd: fix SA warning

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
3 years agobfd: fix session lookup
Igor Ryzhov [Fri, 4 Dec 2020 11:37:36 +0000 (14:37 +0300)]
bfd: fix session lookup

local-address is optional for both IPv4 and IPv6.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
3 years agoMerge pull request #7663 from donaldsharp/vtysh_history_display
Donatas Abraitis [Fri, 4 Dec 2020 08:25:18 +0000 (10:25 +0200)]
Merge pull request #7663 from donaldsharp/vtysh_history_display

doc, vtysh: Add a `show history` command

3 years agovtysh: Have help dump the how FRR was built
Donald Sharp [Fri, 4 Dec 2020 03:23:57 +0000 (22:23 -0500)]
vtysh: Have help dump the how FRR was built

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agovtysh: Display version w/ vtysh --help
Donald Sharp [Fri, 4 Dec 2020 03:21:43 +0000 (22:21 -0500)]
vtysh: Display version w/ vtysh --help

Add a bit of useful data to know what version of FRR we
are playing with in this vtysh instance.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agoMerge pull request #7618 from ckishimo/nssa_role
Donald Sharp [Thu, 3 Dec 2020 21:24:21 +0000 (16:24 -0500)]
Merge pull request #7618 from ckishimo/nssa_role

ospfd: fix cosmetic show ip ospf when NSSA

3 years agoMerge pull request #7661 from volta-networks/fix_ldpsync_hello_timeout
Donald Sharp [Thu, 3 Dec 2020 21:14:17 +0000 (16:14 -0500)]
Merge pull request #7661 from volta-networks/fix_ldpsync_hello_timeout

isisd, ospfd: increase timeout to fix intermittent LDP Sync test failure

3 years agoMerge pull request #7656 from donaldsharp/bgp_convergence
Mark Stapp [Thu, 3 Dec 2020 19:17:09 +0000 (14:17 -0500)]
Merge pull request #7656 from donaldsharp/bgp_convergence

tests: Wait for convergence first

3 years agodoc, vtysh: Add a `show history` command
Donald Sharp [Thu, 3 Dec 2020 17:36:29 +0000 (12:36 -0500)]
doc, vtysh: Add a `show history` command

Dump the cli history to the user in vtysh when a `show history`
command is entered.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agoMerge pull request #7399 from AnuradhaKaruppiah/mh-mac-ecmp-fixes
Patrick Ruddy [Thu, 3 Dec 2020 16:27:49 +0000 (16:27 +0000)]
Merge pull request #7399 from AnuradhaKaruppiah/mh-mac-ecmp-fixes

evpn-mh: miscellaneous fixes in MAC-sync and MAC-ECMP handling

3 years agoisisd, ospfd: increase timeout to fix intermittent LDP Sync test failure
Karen Schoener [Thu, 3 Dec 2020 16:23:59 +0000 (11:23 -0500)]
isisd, ospfd: increase timeout to fix intermittent LDP Sync test failure

Currently, IGPs are coded to receive a 'hello' message from LDP every second.
Intermittently, LDP Sync topotests are failing because the IGPs fail to
receive this 'hello' message every second.
When the LDP Sync topotests fail, LDP logs show that LDP is processing
zapi messages for 1-2 seconds.

This is a shortterm fix, in order to prevent CI pipeline failures.
The longterm fix is in progress.

Signed-off-by: Karen Schoener <karen@voltanet.io>
3 years agoMerge pull request #7660 from rampxxxx/master
Donald Sharp [Thu, 3 Dec 2020 13:29:02 +0000 (08:29 -0500)]
Merge pull request #7660 from rampxxxx/master

doc: add building steps for openSUSE

3 years agodoc: add building steps for openSUSE
Javier Garcia [Thu, 3 Dec 2020 10:59:01 +0000 (11:59 +0100)]
doc: add building steps for openSUSE

Signed-off-by: Javier Garcia <rampxxxx@gmail.com>
3 years agoMerge pull request #7349 from opensourcerouting/bgp-delayopen
Donatas Abraitis [Thu, 3 Dec 2020 06:26:44 +0000 (08:26 +0200)]
Merge pull request #7349 from opensourcerouting/bgp-delayopen

bgpd: RFC 4271 optional session attribute DelayOpenTimer

3 years agoMerge pull request #7638 from donaldsharp/reduce_warn
Donatas Abraitis [Thu, 3 Dec 2020 06:17:59 +0000 (08:17 +0200)]
Merge pull request #7638 from donaldsharp/reduce_warn

zebra: Reduce warn -> debug

3 years agoMerge pull request #6950 from opensourcerouting/bfd-distributed-v3
Donald Sharp [Thu, 3 Dec 2020 01:50:47 +0000 (20:50 -0500)]
Merge pull request #6950 from opensourcerouting/bfd-distributed-v3

bfdd: distributed BFD

3 years agoMerge pull request #7590 from opensourcerouting/isisd-lfa
Donald Sharp [Thu, 3 Dec 2020 01:43:51 +0000 (20:43 -0500)]
Merge pull request #7590 from opensourcerouting/isisd-lfa

isisd: add support for classic LFA

3 years agoMerge pull request #7657 from mjstapp/fix_topo_asan_noise
Donald Sharp [Thu, 3 Dec 2020 01:07:53 +0000 (20:07 -0500)]
Merge pull request #7657 from mjstapp/fix_topo_asan_noise

tests: Cleanup topo asan noise

3 years agoMerge pull request #7625 from donaldsharp/pointtomultipoint
Russ White [Wed, 2 Dec 2020 18:07:28 +0000 (13:07 -0500)]
Merge pull request #7625 from donaldsharp/pointtomultipoint

Pointtomultipoint

3 years agoMerge pull request #7596 from gpnaveen/ospf_basic
Donald Sharp [Wed, 2 Dec 2020 17:35:43 +0000 (12:35 -0500)]
Merge pull request #7596 from gpnaveen/ospf_basic

tests : Adding 3 base ospf testcases.

3 years agoMerge pull request #7589 from pguibert6WIND/show_bgp_summary_desc
Donald Sharp [Wed, 2 Dec 2020 17:18:07 +0000 (12:18 -0500)]
Merge pull request #7589 from pguibert6WIND/show_bgp_summary_desc

Show bgp summary desc

3 years agoospfd: fix cosmetic show ip ospf when NSSA
ckishimo [Tue, 24 Nov 2020 14:53:22 +0000 (06:53 -0800)]
ospfd: fix cosmetic show ip ospf when NSSA

When executing the following command to change the NSSA translator role
from OSPF_NSSA_ROLE_ALWAYS to OSPF_NSSA_ROLE_NEVER
r2(config-router)# area 1 nssa translate-never

During the time the `ospf_abr_nssa_check_status()` function is not executed,
we are in a situation where the role is OSPF_NSSA_ROLE_NEVER (just configured)
but the NSSATranslatorState is still ENABLED

During this time the output of "show ip ospf" displays the following:

r2# show ip ospf
 Area ID: 0.0.0.1 (NSSA)
   Shortcutting mode: Default, S-bit consensus: no
   Number of interfaces in this area: Total: 1, Active: 1
   It is an NSSA configuration.
   Elected NSSA/ABR performs type-7/type-5 LSA translation.
   We are an ABR and    Number of fully adjacent neighbors in this area: 1 (**)

Basically the case TranslatorState=ENABLED && TranslatorRole=ROLE_NEVER is not
covered in `ospf_vty.c`

This PR adds the case TranslatorState=ENABLED and TranslatorRole=ROLE_NEVER
which should only happen for a small period of time

Signed-off-by: ckishimo <carles.kishimoto@gmail.com>
3 years agoMerge pull request #7572 from idryzhov/ospf6-cleanup
Donald Sharp [Wed, 2 Dec 2020 16:10:48 +0000 (11:10 -0500)]
Merge pull request #7572 from idryzhov/ospf6-cleanup

ospf6 code cleanup

3 years agotests: quiet noisy error log about asan files
Mark Stapp [Wed, 2 Dec 2020 16:08:38 +0000 (11:08 -0500)]
tests: quiet noisy error log about asan files

Turn a noisy error log into a debug - it's just reporting
that we're _looking_ for asan output.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
3 years agotests: fix typo in asan variable names
Mark Stapp [Wed, 2 Dec 2020 16:08:03 +0000 (11:08 -0500)]
tests: fix typo in asan variable names

Use AddressSanitizer consistently

Signed-off-by: Mark Stapp <mjs@voltanet.io>
3 years agoMerge pull request #7648 from donaldsharp/store_curr_mtu
Russ White [Wed, 2 Dec 2020 15:25:42 +0000 (10:25 -0500)]
Merge pull request #7648 from donaldsharp/store_curr_mtu

ospfd: Set Curr_mtu to when we get the mtu

3 years agoMerge pull request #7612 from deastoe/ospf-vlink-auth-cfg
Donald Sharp [Wed, 2 Dec 2020 14:27:16 +0000 (09:27 -0500)]
Merge pull request #7612 from deastoe/ospf-vlink-auth-cfg

ospfd: vlink auth type not shown in running config

3 years agoMerge pull request #7615 from gromit1811/feature_topotest_module_noload
Donald Sharp [Wed, 2 Dec 2020 14:23:30 +0000 (09:23 -0500)]
Merge pull request #7615 from gromit1811/feature_topotest_module_noload

tests: Add TOPOTEST_NOLOAD to skip module loading question

3 years agoMerge pull request #7644 from mjstapp/dplane_cleaner
Donald Sharp [Wed, 2 Dec 2020 14:01:44 +0000 (09:01 -0500)]
Merge pull request #7644 from mjstapp/dplane_cleaner

zebra: add an api to process/clean the pending dplane queue

3 years agoMerge pull request #7646 from volta-networks/fix_show_route_summary
Donald Sharp [Wed, 2 Dec 2020 13:59:54 +0000 (08:59 -0500)]
Merge pull request #7646 from volta-networks/fix_show_route_summary

zebra: fix show ip route vrf X summary

3 years agotests: Wait for convergence first
Donald Sharp [Wed, 2 Dec 2020 12:26:33 +0000 (07:26 -0500)]
tests: Wait for convergence first

The test_bgp_multi_vrf_topo2.py script had a bunch
of places where it would change an interface status
or add delete routes that would affect bgp convergence
but it was never ensuring that convergence had happened
before the test verified the bgp rib.  I believe this
was leading to many intermittant ci failures in
testing for other PR's to be accepted.  Modify
the code to wait for bgp convergence if we just
made a change to the topology

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agoospfd: Set Curr_mtu to when we get the mtu
Donald Sharp [Tue, 1 Dec 2020 20:37:03 +0000 (15:37 -0500)]
ospfd: Set Curr_mtu to when we get the mtu

Currently if you start ospfd, bring up neighbors and then issue
a tcpdump on a interface ospf is peering over, this causes the neighbor
relationship to be restarted:

root@spectrum301(mlx-4600c-01):mgmt:~# tcpdump -i vlan402
2020-11-13T21:25:38.059671+00:00 spectrum301 ospfd[29953]: AdjChg: Nbr 202.0.0.3(default) on vlan402:200.0.3.1: Full -> Deleted (KillNbr)
2020-11-13T21:25:38.065520+00:00 spectrum301 ospfd[29953]: ospfTrapNbrStateChange: trap sent: 200.0.3.2 now Deleted/DROther
2020-11-13T21:25:38.065922+00:00 spectrum301 ospfd[29953]: ospfTrapIfStateChange: trap sent: 200.0.3.1 now Down
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on vlan402, link-type EN10MB (Ethernet), capture size 262144 bytes
21:25:38.072330 IP 200.0.3.1 > igmp.mcast.net: igmp v3 report, 1 group record(s)
2020-11-13T21:25:38.080430+00:00 spectrum301 ospfd[29953]: ospfTrapIfStateChange: trap sent: 200.0.3.1 now Point-To-Point
2020-11-13T21:25:38.080654+00:00 spectrum301 ospfd[29953]: SPF Processing Time(usecs): 9734
2020-11-13T21:25:38.080829+00:00 spectrum301 ospfd[29953]:             SPF Time: 6422
2020-11-13T21:25:38.080991+00:00 spectrum301 ospfd[29953]:            InterArea: 1572
2020-11-13T21:25:38.081152+00:00 spectrum301 ospfd[29953]:                Prune: 67
2020-11-13T21:25:38.081329+00:00 spectrum301 ospfd[29953]:         RouteInstall: 1396
2020-11-13T21:25:38.081548+00:00 spectrum301 ospfd[29953]: Reason(s) for SPF: N, S, ABR, ASBR
21:25:38.092510 IP 200.0.3.1 > ospf-all.mcast.net: OSPFv2, Hello, length 44

This is happening because the curr_mtu is not being properly stored.  It was being set
on interface creation( but we have not actually read in the mtu part of the interface data, so
it is still 0 ).

Modify the code to store the curr_mtu at a point in interface creation *After* we have read
in interface data.

Ticket: CM-32276
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agoMerge pull request #7647 from ton31337/feature/show_best_path_reason_in_show_bgp
Donald Sharp [Wed, 2 Dec 2020 11:52:30 +0000 (06:52 -0500)]
Merge pull request #7647 from ton31337/feature/show_best_path_reason_in_show_bgp

bgpd: Show best path reason in JSON output for `show bgp` command

3 years agoMerge pull request #7651 from idryzhov/ospf-init-instance
Donald Sharp [Wed, 2 Dec 2020 11:50:15 +0000 (06:50 -0500)]
Merge pull request #7651 from idryzhov/ospf-init-instance

ospf: fix instance initialization when using multi-instance mode

3 years agoospf: fix instance initialization when using multi-instance mode
Igor Ryzhov [Wed, 2 Dec 2020 00:36:10 +0000 (03:36 +0300)]
ospf: fix instance initialization when using multi-instance mode

OSPF instance initialization was moved from "router ospf" vty command to
ospf_get function some time ago but the same thing must be done in
ospf_get_instance function used when multi-instance mode is enabled.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
3 years agoMerge pull request #7645 from sworleys/NHG-IFP-Error2Log
Mark Stapp [Tue, 1 Dec 2020 22:17:59 +0000 (17:17 -0500)]
Merge pull request #7645 from sworleys/NHG-IFP-Error2Log

zebra: make a couple NHG errors debugs

3 years agoospfd: vlink auth type not shown in running config
Duncan Eastoe [Thu, 26 Nov 2020 17:34:09 +0000 (17:34 +0000)]
ospfd: vlink auth type not shown in running config

The following virtual-link configuration was not represented in the
running configuration:
  area <area> virtual-link <ip> authentication [null|message-digest]

Signed-off-by: Duncan Eastoe <duncan.eastoe@att.com>
3 years agoMerge pull request #7601 from patrasar/pim_fix
Donald Sharp [Tue, 1 Dec 2020 20:53:53 +0000 (15:53 -0500)]
Merge pull request #7601 from patrasar/pim_fix

Pim fix

3 years agolib: update doc comment on hash_cmp
Quentin Young [Tue, 1 Dec 2020 20:47:56 +0000 (15:47 -0500)]
lib: update doc comment on hash_cmp

Signed-off-by: Quentin Young <qlyoung@nvidia.com>