]> git.proxmox.com Git - mirror_frr.git/log
mirror_frr.git
2 years agoospfd: add all_rtrs route table when opaque enabled
Christian Hopps [Sat, 15 Jan 2022 11:13:43 +0000 (06:13 -0500)]
ospfd: add all_rtrs route table when opaque enabled

The reachable router table is used by OSPF opaque clients in order to
determine if the router advertising the opaque LSA data is
reachable (i.e., 2-way conectivity check).

Signed-off-by: Christian Hopps <chopps@labn.net>
2 years agoospfd: cli: add client api debug option
Christian Hopps [Mon, 17 Jan 2022 12:54:12 +0000 (07:54 -0500)]
ospfd: cli: add client api debug option

Signed-off-by: Christian Hopps <chopps@labn.net>
2 years agoospfd: cli: add opaque data to json output
Christian Hopps [Sat, 8 Jan 2022 11:17:15 +0000 (06:17 -0500)]
ospfd: cli: add opaque data to json output

Signed-off-by: Christian Hopps <chopps@labn.net>
2 years agoMerge pull request #11281 from opensourcerouting/fix/gh_actions
Donald Sharp [Thu, 26 May 2022 11:32:11 +0000 (07:32 -0400)]
Merge pull request #11281 from opensourcerouting/fix/gh_actions

github: Use pull_request_target as a target

2 years agoMerge pull request #11244 from pguibert6WIND/flowspec_added_twice
Stephen Worley [Wed, 25 May 2022 16:29:27 +0000 (12:29 -0400)]
Merge pull request #11244 from pguibert6WIND/flowspec_added_twice

zebra: avoid pbr iptable added twice when used with flowspec

2 years agogithub: Use pull_request_target as a target
Donatas Abraitis [Wed, 25 May 2022 16:07:40 +0000 (19:07 +0300)]
github: Use pull_request_target as a target

And drop checkout action - not needed.

Due to the dangers inherent to automatic processing of PRs, GitHub’s standard
pull_request workflow trigger by default prevents write permissions and
secrets access to the target repository. However, in some scenarios such
access is needed to properly process the PR.

To this end the pull_request_target workflow trigger was introduced.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2 years agoMerge pull request #11279 from opensourcerouting/fix/labeler_gh_actions
Donald Sharp [Wed, 25 May 2022 15:44:28 +0000 (11:44 -0400)]
Merge pull request #11279 from opensourcerouting/fix/labeler_gh_actions

github: Add permissions for labeler action

2 years agogithub: Add permissions for labeler action
Donatas Abraitis [Wed, 25 May 2022 15:25:42 +0000 (18:25 +0300)]
github: Add permissions for labeler action

Should solve this:

```
Error: HttpError: Resource not accessible by integration
Error: Resource not accessible by integration
```

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2 years agoMerge pull request #11239 from opensourcerouting/feature/topotests_for_notification_gr
Donald Sharp [Wed, 25 May 2022 14:07:49 +0000 (10:07 -0400)]
Merge pull request #11239 from opensourcerouting/feature/topotests_for_notification_gr

tests: Add Notification support for Graceful-Restart tests

2 years agoMerge pull request #11245 from opensourcerouting/fix/doc_overview_package_url
Donald Sharp [Wed, 25 May 2022 14:06:48 +0000 (10:06 -0400)]
Merge pull request #11245 from opensourcerouting/fix/doc_overview_package_url

doc: Use full URL for FRR keyword highlight

2 years agoMerge pull request #11250 from opensourcerouting/feature/add_label_automatically_to_s...
Donald Sharp [Wed, 25 May 2022 14:03:53 +0000 (10:03 -0400)]
Merge pull request #11250 from opensourcerouting/feature/add_label_automatically_to_show_base_branch

github: Add base branch label to every PR to distinguish easily

2 years agoMerge pull request #11252 from Jafaral/rel-pkg
Donatas Abraitis [Wed, 25 May 2022 12:33:53 +0000 (15:33 +0300)]
Merge pull request #11252 from Jafaral/rel-pkg

debian, redhat: update changelog for new release

2 years agozebra: avoid pbr iptable added twice when used with flowspec
Philippe Guibert [Mon, 23 May 2022 08:21:16 +0000 (10:21 +0200)]
zebra: avoid pbr iptable added twice when used with flowspec

The usage of zebra dplane makes the job asyncronous which implies
that a given job will try to add an iptable, while the second job
will not know that its iptable is the same as the former one.

The below exabgp rules stand for two bgp flowspec rules sent to
the bgp device:

flow {
route {match {
source 185.228.172.73/32;
destination 0.0.0.0/0;
source-port >=49156&<=49159;
}then {redirect 213.242.114.113;}}
route {match {
source 185.228.172.73/32;
destination 0.0.0.0/0;
source-port >=49160&<=49163;
}then {redirect 213.242.114.113;}}
}

This rule creates a single iptable, but in fact, the same iptable
name is appended twice. This results in duplicated entries in the
iptables context. This also results in contexts not flushed, when
BGP session or 'flush' operation is performed.

iptables-save:
[..]
-A PREROUTING -m set --match-set match0x55baf4c25cb0 src,src -g match0x55baf4c25cb0
-A PREROUTING -m set --match-set match0x55baf4c25cb0 src,src -g match0x55baf4c25cb0
-A match0x55baf4c25cb0 -j MARK --set-xmark 0x100/0xffffffff
-A match0x55baf4c25cb0 -j ACCEPT
-A match0x55baf4c25cb0 -j MARK --set-xmark 0x100/0xffffffff
-A match0x55baf4c25cb0 -j ACCEPT
[..]

This commit addresses this issue, by checking that an iptable
context is not already being processed. A flag is added in the
original iptable context, and a check is done if the iptable
context is not already being processed for install or uinstall.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2 years agoMerge pull request #11267 from donaldsharp/cspf_topo1_scale_fix
Olivier Dugeon [Wed, 25 May 2022 11:19:34 +0000 (13:19 +0200)]
Merge pull request #11267 from donaldsharp/cspf_topo1_scale_fix

tests: Allow cspf_topo1 to function correctly at scale

2 years agoMerge pull request #11268 from opensourcerouting/fix/drop_rpki_cli_server_redundand
Donald Sharp [Tue, 24 May 2022 21:51:22 +0000 (17:51 -0400)]
Merge pull request #11268 from opensourcerouting/fix/drop_rpki_cli_server_redundand

bgpd: Drop redundand output under `show rpki prefix-table`

2 years agoMerge pull request #11270 from opensourcerouting/fix/docker_builds_centos
Donald Sharp [Tue, 24 May 2022 21:50:34 +0000 (17:50 -0400)]
Merge pull request #11270 from opensourcerouting/fix/docker_builds_centos

docker: CentOS/UBI adoptions for librtr 0.8.0

2 years agoMerge pull request #11271 from opensourcerouting/fix/docker_build_alpine
Donald Sharp [Tue, 24 May 2022 21:49:33 +0000 (17:49 -0400)]
Merge pull request #11271 from opensourcerouting/fix/docker_build_alpine

docker: Use Alpine 3.15 for build

2 years agoMerge pull request #11266 from opensourcerouting/feature/rpki_cache_server_json
Donald Sharp [Tue, 24 May 2022 21:48:54 +0000 (17:48 -0400)]
Merge pull request #11266 from opensourcerouting/feature/rpki_cache_server_json

bgpd: Add JSON support for `show rpki cache-server`

2 years agobgpd: Add JSON support for `show rpki cache-server`
Donatas Abraitis [Tue, 24 May 2022 12:43:47 +0000 (15:43 +0300)]
bgpd: Add JSON support for `show rpki cache-server`

```
spine1-debian-11# sh rpki cache-server json
{
  "servers":[
    {
      "mode":"tcp",
      "host":"192.168.10.17",
      "port":"8283"
    },
    {
      "mode":"tcp",
      "host":"192.168.10.17",
      "port":"8282"
    }
  ]
}
spine1-debian-11# sh rpki cache-server
host: 192.168.10.17 port: 8283
host: 192.168.10.17 port: 8282
spine1-debian-11#
```

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2 years agoMerge pull request #11265 from opensourcerouting/fix/ssh_config_rpki
Donald Sharp [Tue, 24 May 2022 16:05:14 +0000 (12:05 -0400)]
Merge pull request #11265 from opensourcerouting/fix/ssh_config_rpki

bgpd: Put ssh_config->port as integer, not as string in RPKI code

2 years agodocker: Use Alpine 3.15 for build
Donatas Abraitis [Tue, 24 May 2022 15:10:00 +0000 (18:10 +0300)]
docker: Use Alpine 3.15 for build

This has librtr 0.8.0, while 3.13 has 0.7.0.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2 years agoMerge pull request #11248 from donaldsharp/fix_pbr_topo1
Donatas Abraitis [Tue, 24 May 2022 14:49:24 +0000 (17:49 +0300)]
Merge pull request #11248 from donaldsharp/fix_pbr_topo1

tests: pbr_topo1 sometimes fails under really heavy load

2 years agodocker: Install systemd-devel for centos7 build
Donatas Abraitis [Tue, 24 May 2022 14:24:16 +0000 (17:24 +0300)]
docker: Install systemd-devel for centos7 build

```
error: Failed build dependencies:
systemd-devel is needed by frr-8.3_git275938094422-01.el7.x86_64
```

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2 years agodocker: Use librtr 0.8.0 for centos/ubi builds
Donatas Abraitis [Tue, 24 May 2022 14:18:14 +0000 (17:18 +0300)]
docker: Use librtr 0.8.0 for centos/ubi builds

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2 years agobgpd: Drop redundand output under `show rpki prefix-table`
Donatas Abraitis [Tue, 24 May 2022 13:18:11 +0000 (16:18 +0300)]
bgpd: Drop redundand output under `show rpki prefix-table`

This is already handled by a separate command `show rpki cache-server`.

Probably just copy/paste error.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2 years agotests: Allow cspf_topo1 to function correctly at scale
Donald Sharp [Tue, 24 May 2022 13:15:40 +0000 (09:15 -0400)]
tests: Allow cspf_topo1 to function correctly at scale

The cspf_topo1 test is comparing the adj-sid value that is
assigned dynamically based upon bring up order.  Under very
large scale this order changes causing the test to fail.
Since the adj-sid is dynamically allocated and appears to
be tested elsewhere, let's remove it from the grab all check.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2 years agobgpd: Put ssh_config->port as integer, not as string in RPKI code
Donatas Abraitis [Tue, 24 May 2022 11:56:45 +0000 (14:56 +0300)]
bgpd: Put ssh_config->port as integer, not as string in RPKI code

tcp_host->port is a string, ssh_config->port is an integer...

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2 years agoMerge pull request #11256 from opensourcerouting/feature/bgp_rpki_json
Donald Sharp [Tue, 24 May 2022 11:51:24 +0000 (07:51 -0400)]
Merge pull request #11256 from opensourcerouting/feature/bgp_rpki_json

bgpd: Add JSON output for `show rpki cache-connection`

2 years agoMerge pull request #11261 from opensourcerouting/fix/double_notify_atomic
Donald Sharp [Tue, 24 May 2022 11:50:26 +0000 (07:50 -0400)]
Merge pull request #11261 from opensourcerouting/fix/double_notify_atomic

bgpd: Don't increment twice notification sent stats counter

2 years agobgpd: Don't increment twice notification sent stats counter
Donatas Abraitis [Tue, 24 May 2022 07:04:50 +0000 (10:04 +0300)]
bgpd: Don't increment twice notification sent stats counter

Before:

```
$ vtysh -c 'clear ip bgp 192.168.10.17'
$ vtysh -c 'show bgp neighbor 192.168.10.17 json' | jq '."192.168.10.17".messageStats.notificationsSent'
2
```

After:

```
$ vtysh -c 'clear ip bgp 192.168.10.17'
$ vtysh -c 'show bgp neighbor 192.168.10.17 json' | jq '."192.168.10.17".messageStats.notificationsSent'
1
```

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2 years agobgpd: Add JSON output for `show rpki cache-connection`
Donatas Abraitis [Mon, 23 May 2022 16:40:45 +0000 (19:40 +0300)]
bgpd: Add JSON output for `show rpki cache-connection`

```
spine1-debian-11# sh rpki cache-connection
Connected to group 1
rpki tcp cache 192.168.10.17 8283 pref 1 (connected)
rpki tcp cache 192.168.10.17 8282 pref 2
spine1-debian-11# sh rpki cache-connection json
{
  "connectedGroup":1,
  "connections":[
    {
      "mode":"tcp",
      "host":"192.168.10.17",
      "port":"8283",
      "preference":1,
      "state":"connected"
    },
    {
      "mode":"tcp",
      "host":"192.168.10.17",
      "port":"8282",
      "preference":2,
      "state":"disconnected"
    }
  ]
}
```

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2 years agodebian, redhat: update changelog for new release
Jafar Al-Gharaibeh [Wed, 2 Mar 2022 06:09:40 +0000 (00:09 -0600)]
debian, redhat: update changelog for new release

Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
2 years agotests: pbr_topo1 sometimes fails under really heavy load
Donald Sharp [Mon, 23 May 2022 12:16:56 +0000 (08:16 -0400)]
tests: pbr_topo1 sometimes fails under really heavy load

This test is sometimes failing under severe load.  Give some time
for the linux rule installation to actually be registered by the
system before declaring failure.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2 years agoMerge pull request #11150 from opensourcerouting/fix/use_librtr_higher_0.8.0
Jafar Al-Gharaibeh [Mon, 23 May 2022 15:11:10 +0000 (11:11 -0400)]
Merge pull request #11150 from opensourcerouting/fix/use_librtr_higher_0.8.0

packaging: Require librtr >= 0.8.0

2 years agogithub: Add base branch label to every PR to distinguish easily
Donatas Abraitis [Mon, 23 May 2022 13:56:39 +0000 (16:56 +0300)]
github: Add base branch label to every PR to distinguish easily

Faster notice and filter backports by labels per release.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2 years agodoc: Use full URL for FRR keyword highlight
Donatas Abraitis [Mon, 23 May 2022 08:47:16 +0000 (11:47 +0300)]
doc: Use full URL for FRR keyword highlight

Seems replacement is not working when referenced, only when used directly
in the text |PACKAGE_URL|.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2 years agoMerge pull request #10836 from anlancs/bgpd-mh-delay-esi
Donatas Abraitis [Mon, 23 May 2022 05:49:08 +0000 (07:49 +0200)]
Merge pull request #10836 from anlancs/bgpd-mh-delay-esi

zebra: delay setting esi in zebra_evpn_local_es_update()

2 years agotests: Add Notification support for Graceful-Restart tests
Donatas Abraitis [Sun, 22 May 2022 17:19:01 +0000 (20:19 +0300)]
tests: Add Notification support for Graceful-Restart tests

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2 years agoMerge pull request #11217 from opensourcerouting/fix/doc_overview
Donald Sharp [Sun, 22 May 2022 19:03:05 +0000 (15:03 -0400)]
Merge pull request #11217 from opensourcerouting/fix/doc_overview

doc: Fix FRR/Slack keyword links in overview section

2 years agoMerge pull request #11238 from opensourcerouting/rtadv-cleanup
Donald Sharp [Sun, 22 May 2022 19:02:27 +0000 (15:02 -0400)]
Merge pull request #11238 from opensourcerouting/rtadv-cleanup

zebra: clean up rtadv integration

2 years agozebra: clean up rtadv integration
David Lamparter [Sun, 18 Apr 2021 10:11:14 +0000 (12:11 +0200)]
zebra: clean up rtadv integration

Move a few things into places they actually belong, and reduce the
number of places we have `#ifdev HAVE_RTADV`.  Just overall code
prettification.

... I had actually done this quite a while ago while doing some other
random hacking and thought it more useful to not be sitting on it on my
disk...

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2 years agoMerge pull request #11227 from donaldsharp/verify_not_queued
Jafar Al-Gharaibeh [Fri, 20 May 2022 20:03:23 +0000 (16:03 -0400)]
Merge pull request #11227 from donaldsharp/verify_not_queued

tests: Ensure routes are not queued when calling verify_rib

2 years agoMerge pull request #11223 from donaldsharp/ospf_shenanigans
David Lamparter [Fri, 20 May 2022 16:32:07 +0000 (18:32 +0200)]
Merge pull request #11223 from donaldsharp/ospf_shenanigans

2 years agoMerge pull request #11232 from opensourcerouting/bgp-sendhold-derp
Donald Sharp [Fri, 20 May 2022 15:10:04 +0000 (11:10 -0400)]
Merge pull request #11232 from opensourcerouting/bgp-sendhold-derp

bgpd: fix oopsie with SendHoldTime==0

2 years agotests: Allow a bit longer for bfd topo tests to synchronize
Donald Sharp [Thu, 19 May 2022 23:28:43 +0000 (19:28 -0400)]
tests: Allow a bit longer for bfd topo tests to synchronize

Allowing only 4 seconds for a bfd test to synchronize is going
to run into problems on extremely loaded systems.  The test
system should value it actually converged over it actually
converged in a reasonable time, especially on test systems
that are loaded because of many multiples of tests running
at the same time.  If it is important to actually test
that something got done by the RFC, the CI system as it
is currently written is not the correct place for this.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2 years agotests: Make verify_rib wait up to 40 seconds.
Donald Sharp [Thu, 19 May 2022 23:08:39 +0000 (19:08 -0400)]
tests: Make verify_rib wait up to 40 seconds.

Under heavy load I am seeing verify_rib failing after 12 seconds
but succeeding after 17:

2022-05-19 18:52:54,374 DEBUG: topolog: Exiting lib API: verify_rib
2022-05-19 18:52:54,374 DEBUG: topolog: Function returned True
2022-05-19 18:52:54,374 WARNING: topolog: RETRY DIAGNOSTIC: SUCCEED after FAILED with requested timeout of 12.0s; however, succeeded in 14.7s, investigate timeout timing

There is no reason to not have the test wait a bit longer for very very
heavily loaded systems.  Change the time to 40 seconds.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2 years agotests: Ensure routes are not queued when calling verify_rib
Donald Sharp [Thu, 19 May 2022 19:54:59 +0000 (15:54 -0400)]
tests: Ensure routes are not queued when calling verify_rib

Lots of tests call verify_rib that takes a list of routes that
need to be verified in some fashion.  This verify_rib functionality
will try up to 12 seconds before failing the check that zebra
has the route and has installed it.

Unfortunately the verify_rib code was not looking to see if
the route was queued for installation and was then allowing
tests to immediately do subsuquent steps that depended on
that route actually being installed sometimes causing tests
to fail.

Write a bit of additional code that looks at the queued
status and allows the test to wait a bit longer for zebra
to finish processing before allowing the test to move on
to the next bit.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2 years agolib: Make thread_is_scheduled a static inline
Donald Sharp [Fri, 20 May 2022 13:53:44 +0000 (09:53 -0400)]
lib: Make thread_is_scheduled a static inline

For performance, yo.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2 years agoospf6d: Clean up thread interface
Donald Sharp [Tue, 17 May 2022 20:29:29 +0000 (16:29 -0400)]
ospf6d: Clean up thread interface

a) Remove setting of thread pointer to NULL after
thread invocation, this is already done.

b) Use thread_is_scheduled()

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2 years agoospf6d: Remove double check of default prefix
Donald Sharp [Tue, 17 May 2022 20:08:01 +0000 (16:08 -0400)]
ospf6d: Remove double check of default prefix

The ospf6_is_valid_summary_addr function is checking
to see if a prefix is the default and also then double
comparing it against the v6 prefix part.  No need to do this.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2 years agoMerge pull request #11008 from patrasar/sec_addr_list_pimv6
David Lamparter [Fri, 20 May 2022 13:25:52 +0000 (15:25 +0200)]
Merge pull request #11008 from patrasar/sec_addr_list_pimv6

2 years agoMerge pull request #10903 from SaiGomathiN/pimv6debug
David Lamparter [Fri, 20 May 2022 13:23:31 +0000 (15:23 +0200)]
Merge pull request #10903 from SaiGomathiN/pimv6debug

2 years agobgpd: fix oopsie with SendHoldTime==0
David Lamparter [Fri, 20 May 2022 12:16:24 +0000 (14:16 +0200)]
bgpd: fix oopsie with SendHoldTime==0

... *duh*

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2 years agoMerge pull request #11225 from opensourcerouting/bgp-sendhold
Donald Sharp [Thu, 19 May 2022 18:51:29 +0000 (14:51 -0400)]
Merge pull request #11225 from opensourcerouting/bgp-sendhold

bgpd: implement SendHoldTimer

2 years agoMerge pull request #11216 from chiragshah6/fdev2
Sri Mohana Singamsetty [Thu, 19 May 2022 17:28:25 +0000 (10:28 -0700)]
Merge pull request #11216 from chiragshah6/fdev2

zebra: netlink registry of rtm tunnel notification

2 years agoMerge pull request #11222 from donaldsharp/bgp_zebra_stuff
Sri Mohana Singamsetty [Thu, 19 May 2022 16:41:41 +0000 (09:41 -0700)]
Merge pull request #11222 from donaldsharp/bgp_zebra_stuff

Bgp zebra stuff

2 years agoMerge pull request #11204 from anlancs/fix/bgpd-check-vnihash
Sri Mohana Singamsetty [Thu, 19 May 2022 16:38:10 +0000 (09:38 -0700)]
Merge pull request #11204 from anlancs/fix/bgpd-check-vnihash

bgpd: remove unnecessary check for evpn

2 years agoMerge pull request #11210 from anlancs/fix/zebra-leak-vtp
Sri Mohana Singamsetty [Thu, 19 May 2022 16:35:27 +0000 (09:35 -0700)]
Merge pull request #11210 from anlancs/fix/zebra-leak-vtp

zebra: fix missing delete vtep during vni transition

2 years agobgpd: implement SendHoldTimer
David Lamparter [Thu, 22 Apr 2021 09:04:52 +0000 (11:04 +0200)]
bgpd: implement SendHoldTimer

As described by
https://www.ietf.org/archive/id/draft-spaghetti-idr-bgp-sendholdtimer-04.html

Since this replicates the HoldTime check on the receiver that is already
part of the protocol, I do not believe it necessary to wait for IETF
progress on this draft.  It's just replicating an existing element of
the protocol at the other side of the session.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2 years agodoc: Fix FRR/Slack keyword links in overview section
Donatas Abraitis [Wed, 18 May 2022 09:56:48 +0000 (12:56 +0300)]
doc: Fix FRR/Slack keyword links in overview section

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2 years agoMerge pull request #11183 from opensourcerouting/feature/handle_bgp_gr_notification
Russ White [Wed, 18 May 2022 19:17:59 +0000 (15:17 -0400)]
Merge pull request #11183 from opensourcerouting/feature/handle_bgp_gr_notification

bgpd: Activate Graceful-Restart when receiving CEASE/HOLDTIME notifications

2 years agoMerge pull request #11214 from kuldeepkash/multicast_pim_dr_nondr
Russ White [Wed, 18 May 2022 19:11:15 +0000 (15:11 -0400)]
Merge pull request #11214 from kuldeepkash/multicast_pim_dr_nondr

tests: Fix for test_pim_dr_nondr_with_ospf_topo2 test failure

2 years agoMerge pull request #11218 from opensourcerouting/fix/adv_routes_best_path_wrong_local_as
Russ White [Wed, 18 May 2022 19:10:18 +0000 (15:10 -0400)]
Merge pull request #11218 from opensourcerouting/fix/adv_routes_best_path_wrong_local_as

bgpd: Show a correct local AS for the advertised/bestpath routes

2 years agoMerge pull request #11219 from pguibert6WIND/doc_show_isis
Russ White [Wed, 18 May 2022 19:09:25 +0000 (15:09 -0400)]
Merge pull request #11219 from pguibert6WIND/doc_show_isis

doc: use real wording for the show isis segment-routing node command

2 years agozebra: Fix newline in log message
Donald Sharp [Wed, 18 May 2022 18:41:40 +0000 (14:41 -0400)]
zebra: Fix newline in log message

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2 years agobgpd: Allow nht to work when connection succeeds
Donald Sharp [Wed, 18 May 2022 18:29:16 +0000 (14:29 -0400)]
bgpd: Allow nht to work when connection succeeds

Originally commit: 8761cd6ddb5437767625f58c8e9cc3ccda7887ab
implemented the ability for LL nexthop tracking to be
interface based.  During some more testing the code
to make the interface event happen was noticed to
not properly run in some cases.  This was because
it was originally assumed that the connect could
not succeed.  Testing has shown that the connect
can succeed and FRR needs to handle the nht tracking
in this case too.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2 years agoMerge pull request #11205 from chiragshah6/fdev1
Russ White [Wed, 18 May 2022 15:13:22 +0000 (11:13 -0400)]
Merge pull request #11205 from chiragshah6/fdev1

zebra: new netlink parse utility for rta used to send nhg msg

2 years agozebra: add netlink tunnel msg to dump routine
Chirag Shah [Tue, 17 May 2022 05:52:54 +0000 (22:52 -0700)]
zebra: add netlink tunnel msg to dump routine

This patch parses vxlan vnifilter rtm tunnel
message which contains vni mapping to vxlan device.
The new notifications are RTM_NEWTUNNEL,
RTM_DELTUNNEL, and RTM_GETTUNNEL.

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/
linux.git/commit/?h=v5.18-rc7&id=7b8135f4df98b155b23754b6065c157861e268f1

Testing Done:

2022/05/18 00:34:25 ZEBRA: netlink_recv_msg: << netlink message dump
[recv]
2022/05/18 00:34:25 ZEBRA: nlmsghdr [len=36 type=(120) NEWTUNNEL
flags=(0x0000) {} seq=0 pid=0]
2022/05/18 00:34:25 ZEBRA:   tnlm [family=(7) AF_BRIDGE ifindex=46
2022/05/18 00:34:25 ZEBRA:   vni_start 4001, vni_end 0

Signed-off-by: Chirag Shah <chirag@nvidia.com>
2 years agozebra: netlink registry rtm tunnel notif
Chirag Shah [Sun, 13 Feb 2022 01:02:03 +0000 (17:02 -0800)]
zebra: netlink registry rtm tunnel notif

The kernel supports l3vxlan device to have (l3vni)
vni filter similar to vlan filtering on bridge device.

To receive netlink notification, FRR to register
for new netlink RTNLGRP_TUNNEL message.
This message required to register via additional
socket option as it's beyond bitmap size.

kernel patches:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/
linux.git/commit/?h=v5.18-rc7&id=7b8135f4df98b155b23754b6065c157861e268f1

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/
linux.git/commit/?h=v5.18-rc7&id=f9c4bb0b245cee35ef66f75bf409c9573d934cf9

Ticket:#3073812
Testing Done:

Signed-off-by: Chirag Shah <chirag@nvidia.com>
2 years agodoc: use real wording for the show isis segment-routing node command
Philippe Guibert [Wed, 18 May 2022 13:08:18 +0000 (15:08 +0200)]
doc: use real wording for the show isis segment-routing node command

The node keyword does not take 's' at the end.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2 years agobgpd: Show a correct local AS for the advertised/bestpath routes
Donatas Abraitis [Wed, 18 May 2022 10:34:02 +0000 (13:34 +0300)]
bgpd: Show a correct local AS for the advertised/bestpath routes

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2 years agodoc: Updated the document for pimv6 debug commands
Sai Gomathi N [Thu, 21 Apr 2022 04:56:58 +0000 (21:56 -0700)]
doc: Updated the document for pimv6 debug commands

Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2 years agopim6d: Adding 'debug node' initialization
Sai Gomathi N [Wed, 30 Mar 2022 14:03:37 +0000 (07:03 -0700)]
pim6d: Adding 'debug node' initialization

Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2 years agopim6d: Add 'debug pimv6 zebra'
Sai Gomathi N [Mon, 28 Mar 2022 06:44:08 +0000 (23:44 -0700)]
pim6d: Add 'debug pimv6 zebra'

Implementing debug pimv6 zebra command for debugging about
the events from zebra that come up through the ZAPI.

Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2 years agopim6d: Add 'debug pimv6 trace' and 'debug pimv6 trace detail'
Sai Gomathi N [Mon, 28 Mar 2022 06:28:06 +0000 (23:28 -0700)]
pim6d: Add 'debug pimv6 trace' and 'debug pimv6 trace detail'

Implementing debugs pimv6 trace and trace detail for tracing pim code
and how it is running.

Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2 years agopim6d: Add 'debug_pimv6_packetdump_send_cmd' and 'debug_pimv6_packetdump_recv_cmd'
Sai Gomathi N [Mon, 28 Mar 2022 05:36:18 +0000 (22:36 -0700)]
pim6d: Add 'debug_pimv6_packetdump_send_cmd' and 'debug_pimv6_packetdump_recv_cmd'

Implementing debug pimv6 packetdump send and recv coomands for debugging
of pimv6 packet sent and received which are dumped.

Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2 years agopim6d: Add 'debug pimv6 packets'
Sai Gomathi N [Mon, 28 Mar 2022 05:15:36 +0000 (22:15 -0700)]
pim6d: Add 'debug pimv6 packets'

Implementing pimv6 packets debug to information about packet generation for sending
and about packet handling from a received packet.

Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2 years agopim6d: Add 'debug pimv6 events'
Sai Gomathi N [Thu, 24 Mar 2022 09:09:54 +0000 (02:09 -0700)]
pim6d: Add 'debug pimv6 events'

Implementing debug pimv6 events command for debugging PIMv6 system events.

Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2 years agopim6d: Add 'debug pimv6 nht' and 'debug pimv6 nht detial'
Sai Gomathi N [Thu, 24 Mar 2022 08:53:59 +0000 (01:53 -0700)]
pim6d: Add 'debug pimv6 nht' and 'debug pimv6 nht detial'

Implementing debug pimv6 nht command for PIMv6 nexthop tracking.
It will display information about RPF lookups and information about when a nexthop changes.

debug pimv6 nht detial for for PIMv6 nexthop in detail.This is not enabled by default.

Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2 years agopim6d: Add 'debug pimv6'
Sai Gomathi N [Thu, 24 Mar 2022 08:41:15 +0000 (01:41 -0700)]
pim6d: Add 'debug pimv6'

Implementing debug pimv6 command for PIMv6 protocol activity.

Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2 years agoMerge pull request #11203 from donaldsharp/coverity_bgp_memcpy
Donatas Abraitis [Tue, 17 May 2022 16:42:51 +0000 (18:42 +0200)]
Merge pull request #11203 from donaldsharp/coverity_bgp_memcpy

bgpd: Fix coverity SA issue with copying over prefix data

2 years agobgpd: Fix coverity SA issue with copying over prefix data
Donald Sharp [Sat, 14 May 2022 20:26:27 +0000 (16:26 -0400)]
bgpd: Fix coverity SA issue with copying over prefix data

in bgp_nlri_parse_ip there is a `sanity` check to ensure
that the prefix length as specified by the packet
will fit inside of a `struct prefix` correctly.  The problem
here of course is that this is only v4 / v6 unicast/multicast
parsing and the bytes will never be more than 16, but we are copying
into a part of the struct prefix that is only 16 bytes, but with
this check the length may be up to 47 bytes( but not really possible ).

Limit the size check to at most 16 bytes (since we are only handling
v4 or v6 addresses here )

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2 years agoMerge pull request #11037 from SaiGomathiN/clearcli
David Lamparter [Tue, 17 May 2022 13:00:32 +0000 (15:00 +0200)]
Merge pull request #11037 from SaiGomathiN/clearcli

2 years agoMerge pull request #11192 from cyberstorm-mauritius/zebra_netlink
Mark Stapp [Tue, 17 May 2022 12:13:23 +0000 (08:13 -0400)]
Merge pull request #11192 from cyberstorm-mauritius/zebra_netlink

zebra: Add startup message and display netlink buffer size.

2 years agoMerge pull request #11211 from donaldsharp/ospf6_time_left_in_hello
David Lamparter [Tue, 17 May 2022 11:21:38 +0000 (13:21 +0200)]
Merge pull request #11211 from donaldsharp/ospf6_time_left_in_hello

2 years agoMerge pull request #10775 from opensourcerouting/pim6-mld-pr
Donald Sharp [Tue, 17 May 2022 11:20:08 +0000 (07:20 -0400)]
Merge pull request #10775 from opensourcerouting/pim6-mld-pr

pim6d: MLD code

2 years agodoc: Updated the document for pimv6 clear commands
Sai Gomathi N [Wed, 20 Apr 2022 05:12:43 +0000 (22:12 -0700)]
doc: Updated the document for pimv6 clear commands

Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2 years agopim6d: Add 'clear ipv6 mroute [vrf NAME] count' CLI
Sai Gomathi N [Wed, 13 Apr 2022 15:31:45 +0000 (08:31 -0700)]
pim6d: Add 'clear ipv6 mroute [vrf NAME] count' CLI

Adding clear ipv6 mroute count command for resetting
multicast routes and count.

Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2 years agopim6d: Add 'clear ipv6 pim [vrf NAME] oil' command
Sai Gomathi N [Wed, 13 Apr 2022 14:41:46 +0000 (07:41 -0700)]
pim6d: Add 'clear ipv6 pim [vrf NAME] oil' command

Adding clear ipv6 pim [vrf NAME] oil CLI for resetting
PIMv6 output interface list.

Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2 years agopim6d: Add 'clear ipv6 mroute [vrf NAME]' command
Sai Gomathi N [Wed, 13 Apr 2022 13:14:02 +0000 (06:14 -0700)]
pim6d: Add 'clear ipv6 mroute [vrf NAME]' command

Adding clear ipv6 mroute cli for resetting the PIMv6 mroutes.

Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2 years agopim6d: Adding 'clear ipv6 pim statistics [vrf NAME]' cmd
Sai Gomathi N [Wed, 13 Apr 2022 11:16:59 +0000 (04:16 -0700)]
pim6d: Adding 'clear ipv6 pim statistics [vrf NAME]' cmd

Adding clear ipv6 pim statistics cli for resetting pimv6 statistics

Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2 years agopim6d: Adding pim_cmd_lookup api in pim_cmd_common file
Sai Gomathi N [Wed, 27 Apr 2022 15:07:53 +0000 (08:07 -0700)]
pim6d: Adding pim_cmd_lookup api in pim_cmd_common file

Adding pim_cmd_lookup function for clear CLIs

Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2 years agopimd: Moving the common functions from pim_cmd.c file
Sai Gomathi N [Tue, 12 Apr 2022 11:36:35 +0000 (04:36 -0700)]
pimd: Moving the common functions from pim_cmd.c file

Moving the functions that are used by both IPV4 and IPV6 to a
common file pim_cmd_common.c file.

Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
2 years agoospf6d: Ensure the ospf6 interface hello timer pops in all cases
Donald Sharp [Mon, 16 May 2022 19:20:12 +0000 (15:20 -0400)]
ospf6d: Ensure the ospf6 interface hello timer pops in all cases

If a end users does something like this:

int enp39s0
  ipv6 ospf6 hello-interval 65535

And then the timer pops and we send the hello and immediately
if the end user does this:

  ipv6 ospf6 hello-interval 5

The timer is not being reset and FRR waits the full 65k seconds
before sending the hello again, which then immediately sets
the next hello to go out in 5 seconds.

When FRR receives the new timer value, look at how much time
is left on the timer in seconds.  If this value is greater
than the new hello timer, stop the timer and set it too that
value.

This should fix a CI system test failure found, where the
system is testing setting timer from things like 12 seconds
to 65k seconds then back down to 12 and that the ospf6 neighbor
relationship stays up.

The code was also changed from thread_add_event to thread_add_timer
in all cases.  I am not sure what would happen if a show command
comes in for a thread timer remaining with an event instead of a timer
just make it consistent.

This was chased down because the support bundle showed this:
r0# show ipv6 ospf6 vrf all interface
r0-r1-eth0 is up, type BROADCAST
  Interface ID: 6
  Internet Address:
    inet6: fe80::a4ea:d3ff:fe35:cef1/64
    inet6: fd00::1/64
  Instance ID 0, Interface MTU 1500 (autodetect: 1500)
  MTU mismatch detection: enabled
  Area ID 0.0.0.0, Cost 10
  State DR, Transmit Delay 1 sec, Priority 1
  Timer intervals configured:
   Hello 12(65480.960), Dead 48, Retransmit 5

And looking at the test code is doing stuff like this:
2022/05/16 17:08:15 OSPF6: [M7Q4P-46WDR] vty[5]@(config)# interface r1-r0-eth0

2022/05/16 17:08:15 OSPF6: [M7Q4P-46WDR] vty[5]@(config-if)# ipv6 ospf6 hello-interval 65535

2022/05/16 17:08:15 OSPF6: [M7Q4P-46WDR] vty[5]@(config-if)# no ipv6 ospf6 hello-interval
2022/05/16 17:08:16 OSPF6: [M7Q4P-46WDR] vty[5]@(config-if)# ipv6 ospf6 hello-interval 1
2022/05/16 17:08:16 OSPF6: [M7Q4P-46WDR] vty[5]@(config-if)# ipv6 ospf6 hello-interval 12

If the old timer value pops, the hello interval is set to 65k and never reset again.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2 years agoMerge pull request #11152 from donaldsharp/dscp
Donatas Abraitis [Mon, 16 May 2022 19:53:41 +0000 (22:53 +0300)]
Merge pull request #11152 from donaldsharp/dscp

bgpd: Allow bgp to control the DSCP session TOS value

2 years agozebra: new netlink parse utility for rta
Chirag Shah [Fri, 13 May 2022 05:29:37 +0000 (22:29 -0700)]
zebra: new netlink parse utility for rta

Signed-off-by: Chirag Shah <chirag@nvidia.com>
2 years agozebra: add protocol name to nexthop dump
Chirag Shah [Sun, 15 May 2022 05:13:57 +0000 (22:13 -0700)]
zebra: add protocol name to nexthop dump

Signed-off-by: Chirag Shah <chirag@nvidia.com>
2 years agoospf6d: Give time left in hello timer for `show ipv6 ospf6 int`
Donald Sharp [Mon, 16 May 2022 15:06:29 +0000 (11:06 -0400)]
ospf6d: Give time left in hello timer for `show ipv6 ospf6 int`

When running `show ipv6 ospf6 interface` the hello timer period
is shown, but there is no indication on how much time is left
on the timer.  Add a clue:

sharpd@eva ~/frr5 (master)> vtysh -c "show ipv6 ospf6 int"
enp39s0 is up, type BROADCAST
  Interface ID: 2
  Internet Address:
    inet : 192.168.119.224/24
    inet6: 2603:6080:602:509e:9a14:998:b154:9e9/64
  Instance ID 0, Interface MTU 1500 (autodetect: 1500)
  MTU mismatch detection: enabled
  Area ID 0.0.0.0, Cost 1000
  State DR, Transmit Delay 1 sec, Priority 1
  Timer intervals configured:
   Hello 10(2.652), Dead 40, Retransmit 5
  DR: 192.168.122.1 BDR: 0.0.0.0
  Number of I/F scoped LSAs is 1
    0 Pending LSAs for LSUpdate in Time 00:00:00 [thread off]
    0 Pending LSAs for LSAck in Time 00:00:00 [thread off]
  Authentication Trailer is disabled

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2 years agozebra: delay setting esi in zebra_evpn_local_es_update()
anlan_cs [Wed, 23 Feb 2022 04:10:42 +0000 (23:10 -0500)]
zebra: delay setting esi in zebra_evpn_local_es_update()

Currently, `zif->es_info.esi` is always set even for a few unnecessary
cases in `zebra_evpn_local_es_update()`.

Delay setting `zif->es_info.esi` and remove the annoying rollback
(i.e. unset `zif->es_info.esi`) operation on failure case.

Signed-off-by: anlan_cs <vic.lan@pica8.com>
2 years agozebra: fix missing delete vtep during vni transition
anlan_cs [Mon, 16 May 2022 13:18:26 +0000 (09:18 -0400)]
zebra: fix missing delete vtep during vni transition

All `vtep`s in dplane should be deleted/uninstalled during vni transition.

Signed-off-by: anlan_cs <vic.lan@pica8.com>