]> git.proxmox.com Git - mirror_frr.git/log
mirror_frr.git
18 months agopimd, pim6d: Using ttable for displaying "show ip/ipv6 pim bsrp-info" command output
Abhishek N R [Mon, 21 Nov 2022 05:23:23 +0000 (21:23 -0800)]
pimd, pim6d: Using ttable for displaying "show ip/ipv6 pim bsrp-info" command output

Fixes: #11246
Signed-off-by: Abhishek N R <abnr@vmware.com>
18 months agopimd, pim6d: Using ttable for displaying "show ip/ipv6 pim nexthop" command output
Abhishek N R [Wed, 16 Nov 2022 08:08:05 +0000 (00:08 -0800)]
pimd, pim6d: Using ttable for displaying "show ip/ipv6 pim nexthop" command output

Before:

R4(config)# do show ipv6 pim nexthop
Number of registered addresses: 6
Address         Interface        Nexthop
---------------------------------------------
3700:1234:1234:1234:1234:1234:1234:1234 ens161           fe80::250:56ff:feb7:d8d5
5101::10        ens224.51        5101::10
3300::5555      ens161           fe80::250:56ff:feb7:d8d5
4400::1         ens161           fe80::250:56ff:feb7:d8d5
1020::10        ens257           1020::10
3000::1         ens192.4010      fe80::250:56ff:feb7:493b
3000::1         ens193.4015      fe80::250:56ff:feb7:b12a

After:

frr# show ipv6 pim nexthop
Number of registered addresses: 2
Address         Interface        Nexthop
---------------------------------------------
105::105        lo               105::105
12::1           ens192           fe80::250:56ff:feb7:38de

Issue: #11246

Signed-off-by: Abhishek N R <abnr@vmware.com>
18 months agoMerge pull request #12311 from opensourcerouting/feature/bgp_snmp_bgp4v2-mib
Russ White [Tue, 22 Nov 2022 19:58:22 +0000 (14:58 -0500)]
Merge pull request #12311 from opensourcerouting/feature/bgp_snmp_bgp4v2-mib

bgpd: Implement SNMP BGP4V2-MIB (bgp4V2PeerEntry)

18 months agoMerge pull request #11908 from sigeryang/tc-state-mgmt
Stephen Worley [Tue, 22 Nov 2022 17:02:15 +0000 (12:02 -0500)]
Merge pull request #11908 from sigeryang/tc-state-mgmt

zebra: traffic control state management & ZAPI

18 months agoMerge pull request #12340 from opensourcerouting/fix/rfc5549_vpn_set_ip_nexthop
Stephen Worley [Tue, 22 Nov 2022 16:41:48 +0000 (11:41 -0500)]
Merge pull request #12340 from opensourcerouting/fix/rfc5549_vpn_set_ip_nexthop

bgpd: Allow overriding MPLS VPN next-hops via route-maps

18 months agotests: traffic control PoC topotests
Siger Yang [Sun, 11 Sep 2022 06:58:11 +0000 (14:58 +0800)]
tests: traffic control PoC topotests

This commit adds a basic test for sharpd traffic control PoC, which will check
interface TC info from iproute2 `tc` cli.

Signed-off-by: Siger Yang <siger.yang@outlook.com>
18 months agosharpd: traffic control PoC
Siger Yang [Sun, 11 Sep 2022 06:56:12 +0000 (14:56 +0800)]
sharpd: traffic control PoC

This commit adds a command to sharpd to validate the proof of concept for
traffic control on specific interface with specific filters.

Signed-off-by: Siger Yang <siger.yang@outlook.com>
18 months agozebra: traffic control ZAPI
Siger Yang [Tue, 6 Sep 2022 07:13:23 +0000 (15:13 +0800)]
zebra: traffic control ZAPI

This commit adds ZAPI encoders & decoders for traffic control operations, which
include tc_qdisc, tc_class and tc_filter.

Signed-off-by: Siger Yang <siger.yang@outlook.com>
18 months agozebra: traffic control state management
Siger Yang [Tue, 6 Sep 2022 07:10:11 +0000 (15:10 +0800)]
zebra: traffic control state management

This allows Zebra to manage QDISC, TCLASS, TFILTER in kernel and do cleaning
jobs when it starts up.

Signed-off-by: Siger Yang <siger.yang@outlook.com>
18 months agozebra: update tc netlink / socket license header
Siger Yang [Thu, 15 Sep 2022 23:04:39 +0000 (07:04 +0800)]
zebra: update tc netlink / socket license header

Update license header.

Signed-off-by: Siger Yang <siger.yang@outlook.com>
18 months agoinclude: add pkt_cls.h to automake headers
Siger Yang [Tue, 6 Sep 2022 07:07:35 +0000 (15:07 +0800)]
include: add pkt_cls.h to automake headers

Add pkt_cls.h to subdir.am under include.

Signed-off-by: Siger Yang <siger.yang@outlook.com>
18 months agoMerge pull request #12348 from donaldsharp/expand_timings
Donatas Abraitis [Tue, 22 Nov 2022 05:43:49 +0000 (07:43 +0200)]
Merge pull request #12348 from donaldsharp/expand_timings

tests: Expand minimum run_and_expect to 5 seconds

18 months agoMerge pull request #12361 from opensourcerouting/fix/use_another_labaler
Donald Sharp [Tue, 22 Nov 2022 01:07:46 +0000 (20:07 -0500)]
Merge pull request #12361 from opensourcerouting/fix/use_another_labaler

github: Use `action-regex-match` action for adding `backport` label

18 months agoMerge pull request #12362 from opensourcerouting/pkg-pim6-defaults
Donald Sharp [Tue, 22 Nov 2022 01:07:23 +0000 (20:07 -0500)]
Merge pull request #12362 from opensourcerouting/pkg-pim6-defaults

Enable pim6d in rpm and debian packages by default

18 months agotests: Expand minimum run_and_expect to 5 seconds
Donald Sharp [Sat, 19 Nov 2022 12:31:57 +0000 (07:31 -0500)]
tests: Expand minimum run_and_expect to 5 seconds

Ensure that the minimum time spent run and expecting is
5 seconds.  Heavy load is not a reason to fail a test.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
18 months agoMerge pull request #12357 from donaldsharp/watchfrr_receive_start_end
Donatas Abraitis [Mon, 21 Nov 2022 20:11:08 +0000 (22:11 +0200)]
Merge pull request #12357 from donaldsharp/watchfrr_receive_start_end

lib, vtysh: Allow watchfrr to receive start/end lines

18 months agodoc: Update doc to reflect default pim6d in packaging
Martin Winter [Mon, 21 Nov 2022 19:09:41 +0000 (20:09 +0100)]
doc: Update doc to reflect default pim6d in packaging

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
18 months agodebian: Enable pim6d build by default
Martin Winter [Mon, 21 Nov 2022 19:07:33 +0000 (20:07 +0100)]
debian: Enable pim6d build by default

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
18 months agogithub: Use `action-regex-match` action for adding `backport` label
Donatas Abraitis [Mon, 21 Nov 2022 19:05:16 +0000 (21:05 +0200)]
github: Use `action-regex-match` action for adding `backport` label

Seems that labeler does not work properly with comments, tested on my own
local repository.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
18 months agoredhat: Enable pim6d build by default
Martin Winter [Mon, 21 Nov 2022 19:04:24 +0000 (20:04 +0100)]
redhat: Enable pim6d build by default

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
18 months agolib, vtysh: Allow watchfrr to receive start/end lines
Donald Sharp [Mon, 21 Nov 2022 17:04:12 +0000 (12:04 -0500)]
lib, vtysh: Allow watchfrr to receive start/end lines

Watchfrr really should receive notification about start/end
read of configuration.  Let's fix that.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
18 months agoMerge pull request #12313 from louis-6wind/fix-lfa-topo
Donald Sharp [Mon, 21 Nov 2022 17:03:14 +0000 (12:03 -0500)]
Merge pull request #12313 from louis-6wind/fix-lfa-topo

tests: fix bfd in isis_lfa_topo1 step24

18 months agotests: do not use a custom expect function in isis_lfa_topo1
Louis Scalbert [Mon, 21 Nov 2022 11:14:03 +0000 (12:14 +0100)]
tests: do not use a custom expect function in isis_lfa_topo1

Replace the custom run and expect function by one from the library.

Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
18 months agotests: fix bfd in isis_lfa_topo1 step24
Louis Scalbert [Mon, 14 Nov 2022 11:49:05 +0000 (12:49 +0100)]
tests: fix bfd in isis_lfa_topo1 step24

isis_lfa_topo1 topotests regularly fails at step 24. The test expects
that the BFD session between rt1 and rt2 comes down after shutting the
link between rt1 and rt2.

Since the BFD is multihop, the BFD can get back through rt3.

Set the BFD type to single-hop.

Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
18 months agoMerge pull request #12352 from opensourcerouting/fix/github_workflows_labeler
Donald Sharp [Mon, 21 Nov 2022 11:51:18 +0000 (06:51 -0500)]
Merge pull request #12352 from opensourcerouting/fix/github_workflows_labeler

github: Add enable-versioned-regex expicitly in labeler.yml

18 months agogithub: Add enable-versioned-regex expicitly in labeler.yml
Donatas Abraitis [Mon, 21 Nov 2022 10:04:41 +0000 (12:04 +0200)]
github: Add enable-versioned-regex expicitly in labeler.yml

Error: Error: Input required and not supplied: enable-versioned-regex
Error: Input required and not supplied: enable-versioned-regex

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
18 months agoMerge pull request #12336 from cscarpitta/fix/increase-sid-index-limit
Donatas Abraitis [Mon, 21 Nov 2022 08:05:44 +0000 (10:05 +0200)]
Merge pull request #12336 from cscarpitta/fix/increase-sid-index-limit

bgpd: Fix SRv6 SID index limit in the `sid vpn per-vrf export` VTY command

18 months agoMerge pull request #12345 from donaldsharp/bgp_debugs_upstream
Donatas Abraitis [Mon, 21 Nov 2022 08:01:10 +0000 (10:01 +0200)]
Merge pull request #12345 from donaldsharp/bgp_debugs_upstream

Bgp debugs upstream

18 months agoMerge pull request #12335 from opensourcerouting/feature/add_github_labeler_on_regex
Donald Sharp [Mon, 21 Nov 2022 04:34:20 +0000 (23:34 -0500)]
Merge pull request #12335 from opensourcerouting/feature/add_github_labeler_on_regex

github: Add `backport` label if pull request has `Mergifyio backport` comment

18 months agoMerge pull request #12337 from opensourcerouting/fix/misleading_error
Donald Sharp [Mon, 21 Nov 2022 04:33:35 +0000 (23:33 -0500)]
Merge pull request #12337 from opensourcerouting/fix/misleading_error

bgpd: Warn user only if the LL is not seriously available

18 months agobgpd: Display FD in peer FSM state change log
vivek [Tue, 27 Oct 2020 02:54:52 +0000 (19:54 -0700)]
bgpd: Display FD in peer FSM state change log

Signed-off-by: Vivek Venkatraman <vivek@nvidia.com>
18 months agobgpd: Remove unnecessary debug log
vivek [Mon, 26 Oct 2020 04:44:18 +0000 (21:44 -0700)]
bgpd: Remove unnecessary debug log

Signed-off-by: Vivek Venkatraman <vivek@nvidia.com>
18 months agobgpd: Add more debug info for incoming connection
vivek [Mon, 26 Oct 2020 04:05:17 +0000 (21:05 -0700)]
bgpd: Add more debug info for incoming connection

Signed-off-by: Vivek Venkatraman <vivek@nvidia.com>
18 months agobgpd: Modify keepalive debug category
vivek [Mon, 26 Oct 2020 03:59:58 +0000 (20:59 -0700)]
bgpd: Modify keepalive debug category

Log keepalive timer expiry against 'debug bgp keepalive' instead
of 'debug bgp neighbor-events'.

Signed-off-by: Vivek Venkatraman <vivek@nvidia.com>
18 months agoMerge pull request #12338 from cscarpitta/fix/srte-cleanup-use-after-free
Donatas Abraitis [Sun, 20 Nov 2022 20:37:46 +0000 (22:37 +0200)]
Merge pull request #12338 from cscarpitta/fix/srte-cleanup-use-after-free

zebra: Fix use-after-free crash on srte cleanup

18 months agoMerge pull request #12347 from opensourcerouting/snap-pim6
Donald Sharp [Sun, 20 Nov 2022 14:49:23 +0000 (09:49 -0500)]
Merge pull request #12347 from opensourcerouting/snap-pim6

snapcraft: Add pim6 daemon for PIM IPv6 to snap package

18 months agosnapcraft: Add pim6 daemon for PIM IPv6 to snap package
Martin Winter [Sat, 19 Nov 2022 11:15:41 +0000 (12:15 +0100)]
snapcraft: Add pim6 daemon for PIM IPv6 to snap package

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
18 months agobgpd: Convert bgp_rmap_nhop_changed to bool from int
Donatas Abraitis [Fri, 18 Nov 2022 14:09:19 +0000 (16:09 +0200)]
bgpd: Convert bgp_rmap_nhop_changed to bool from int

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
18 months agobgpd: Print empty JSON `{}` if no entries under `show bgp ipv4 vpn json`
Donatas Abraitis [Fri, 18 Nov 2022 14:06:43 +0000 (16:06 +0200)]
bgpd: Print empty JSON `{}` if no entries under `show bgp ipv4 vpn json`

Before this, the application fails that is parsing JSON (expecting).

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
18 months agobgpd: Print prefix in logs messages with BGP_PATH_ANNC_NH_SELF
Donatas Abraitis [Fri, 18 Nov 2022 14:02:46 +0000 (16:02 +0200)]
bgpd: Print prefix in logs messages with BGP_PATH_ANNC_NH_SELF

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
18 months agobgpd: Allow overriding MPLS VPN next-hops via route-maps
Donatas Abraitis [Fri, 18 Nov 2022 13:47:50 +0000 (15:47 +0200)]
bgpd: Allow overriding MPLS VPN next-hops via route-maps

Just do not reset next-hop for MPLS VPN routes.

Example of 172.16.255.1/32 (using extended next-hop capability):

```
pe2# sh bgp ipv4 vpn
BGP table version is 4, local router ID is 10.10.10.20, vrf id 0
Default local pref 100, local AS 65001
Status codes:  s suppressed, d damped, h history, * valid, > best, = multipath,
               i internal, r RIB-failure, S Stale, R Removed
Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self
Origin codes:  i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

    Network          Next Hop            Metric LocPrf Weight Path
Route Distinguisher: 192.168.1.2:2
 *>i10.0.0.0/24      2001:db8:1::1            0    100      0 65000 ?
    UN=2001:db8:1::1 EC{192.168.1.2:2} label=1111 type=bgp, subtype=0
 *>i172.16.255.1/32  2001:db8::1              0    100      0 65000 ?
    UN=2001:db8::1 EC{192.168.1.2:2} label=1111 type=bgp, subtype=0
 *>i192.168.1.0/24   2001:db8:1::1            0    100      0 65000 ?
    UN=2001:db8:1::1 EC{192.168.1.2:2} label=1111 type=bgp, subtype=0
 *>i192.168.2.0/24   2001:db8:1::1                 100      0 65000 ?
    UN=2001:db8:1::1 EC{192.168.1.2:2} label=1111 type=bgp, subtype=0
Route Distinguisher: 192.168.2.2:2
 *> 10.0.0.0/24      192.168.2.1@4<           0     50      0 65000 ?
    UN=192.168.2.1 EC{192.168.2.2:2} label=2222 type=bgp, subtype=5
 *> 172.16.255.1/32  192.168.2.1@4<                 50      0 65000 ?
    UN=192.168.2.1 EC{192.168.2.2:2} label=2222 type=bgp, subtype=5
 *> 192.168.1.0/24   192.168.2.1@4<                 50      0 65000 ?
    UN=192.168.2.1 EC{192.168.2.2:2} label=2222 type=bgp, subtype=5
 *> 192.168.2.0/24   192.168.2.1@4<           0     50      0 65000 ?
    UN=192.168.2.1 EC{192.168.2.2:2} label=2222 type=bgp, subtype=5

Displayed  8 routes and 8 total paths
```

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
18 months agotests: Check if we can override IPv6 next-hop for VPN networks in route-map
Donatas Abraitis [Fri, 18 Nov 2022 13:40:45 +0000 (15:40 +0200)]
tests: Check if we can override IPv6 next-hop for VPN networks in route-map

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
18 months agoMerge pull request #12298 from kanavin/fix-python-config
Donald Sharp [Fri, 18 Nov 2022 12:43:28 +0000 (07:43 -0500)]
Merge pull request #12298 from kanavin/fix-python-config

m4/ax_python.m4: check for python-x.y-emded.pc, not python-x.y.pc

18 months agozebra: Fix use-after-free issue in srte cleanup
Carmine Scarpitta [Fri, 18 Nov 2022 12:19:14 +0000 (13:19 +0100)]
zebra: Fix use-after-free issue in srte cleanup

Currently, in `zebra_srte_client_close_cleanup` we use the `RB_FOREACH`
macro to traverse the SR policies tree. We remove the SR policies within
the loop. Removing elements from the tree and freeing them is not safe
and causes a use-after-free crash whenever the
`zebra_srte_client_close_cleanup` is called to perform cleanup.

This commit replaces the `RB_FOREACH` macro with its variant
`RB_FOREACH_SAFE`. Unlike `RB_FOREACH`, `RB_FOREACH_SAFE` permits both
the removal of tree elements as well as freeing them from within the
loop safely.

Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
18 months agobgpd: Warn user only if the LL is not seriously available
Donatas Abraitis [Fri, 18 Nov 2022 08:36:24 +0000 (10:36 +0200)]
bgpd: Warn user only if the LL is not seriously available

LL address is assigned, but we get a warning, that it's not:

Interface: enp3s0 does not have a v6 LL address associated with it, waiting until one is created for it

```
donatas-pc# sh int enp3s0
Interface enp3s0 is up, line protocol is up
  Link ups:       0    last: (never)
  Link downs:     0    last: (never)
  vrf: default
  index 2 metric 0 mtu 1500 speed 100
  flags: <UP,BROADCAST,RUNNING,MULTICAST>
  v4 Multicast forwarding is on
  v6 Multicast forwarding is on
  Type: Ethernet
  HWaddr: 18:c0:4d:96:fa:3f
  inet 192.168.10.17/24
  inet6 2a02:4780:abc:0:e776:6220:1e21:44b1/64
  inet6 fe80::ca5d:fd0d:cd8:1bb7/64
```

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
18 months agodoc: Update the SRv6 SID index limit in BGP doc
Carmine Scarpitta [Fri, 18 Nov 2022 08:09:48 +0000 (09:09 +0100)]
doc: Update the SRv6 SID index limit in BGP doc

The `sid vpn per-vrf export` VTY command in bgpd has been extended to
support up to 1048575 SIDs.

This commit updates the documentation of the `sid vpn per-vrf export`
command.

Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
18 months agobgpd: Fix SRv6 SID index limit
Carmine Scarpitta [Fri, 18 Nov 2022 07:47:58 +0000 (08:47 +0100)]
bgpd: Fix SRv6 SID index limit

Previously BGP supported up to 255 SIDs.

The PR https://github.com/FRRouting/frr/pull/11981 extended the
transposition computation algorithm in BGP to support more SIDs (up to
1048575 SIDs).

However the BGP VTY command for allocating an SRv6 per-VRF SID
(`sid vpn per-vrf export`) is still limited to 255 SIDs.

This commit extends the SID index in `sid vpn per-vrf export` VTY
command to support up to 1048575 SIDs.

Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
18 months agogithub: Add `backport` label if pull request has `Mergifyio backport` comment
Donatas Abraitis [Fri, 18 Nov 2022 07:09:29 +0000 (09:09 +0200)]
github: Add `backport` label if pull request has `Mergifyio backport` comment

Useful to filter out which PRs should be backported yet.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
18 months agoMerge pull request #12309 from proelbtn/bgpd-fix-mpls-vpn-advertisement
Russ White [Thu, 17 Nov 2022 15:05:04 +0000 (10:05 -0500)]
Merge pull request #12309 from proelbtn/bgpd-fix-mpls-vpn-advertisement

bgpd: fix invalid ipv4-vpn nexthop for IPv6 peer

18 months agoMerge pull request #12081 from sworleys/EMM-upstream
Donatas Abraitis [Thu, 17 Nov 2022 14:46:58 +0000 (16:46 +0200)]
Merge pull request #12081 from sworleys/EMM-upstream

Rework of Various Handling in EVPN for Extended Mac Mobility

18 months agoMerge pull request #12147 from pguibert6WIND/srte_flush
Donatas Abraitis [Thu, 17 Nov 2022 13:26:55 +0000 (15:26 +0200)]
Merge pull request #12147 from pguibert6WIND/srte_flush

zebra: upon srte leave, flush sr policies

18 months agoMerge pull request #12302 from louis-6wind/fix-isis_route_null-area
Olivier Dugeon [Thu, 17 Nov 2022 11:25:43 +0000 (12:25 +0100)]
Merge pull request #12302 from louis-6wind/fix-isis_route_null-area

isisd: fix area NULL pointer in isis_route_update

18 months agobgpd: fix invalid ipv4-vpn nexthop for IPv6 peer
Ryoga Saito [Sat, 12 Nov 2022 08:45:19 +0000 (17:45 +0900)]
bgpd: fix invalid ipv4-vpn nexthop for IPv6 peer

Given that two routers are connected each other and they have IPv6
addresses and they establish BGP peer with extended-nexthop capability
and one router tries to advertise locally-generated IPv4-VPN routes to
other router.

In this situation, bgpd on the router that tries to advertise IPv4-VPN
routes will be crashed with "invalid MP nexthop length (AFI IP6)".

This issue is happened because MP_REACH_NLRI path attribute is not
generated correctly when ipv4-vpn routes are advertised to IPv6 peer.
When IPv4 routes are leaked from VRF RIB, the nexthop of these routes
are also IPv4 address (0.0.0.0/0 or specific addresses). However,
bgp_packet_mpattr_start only covers the case of IPv6 nexthop (for IPv6
peer).

ipv4-unicast routes were not affected by this issue because the case of
IPv4 nexthop is covered in `else` block.

Signed-off-by: Ryoga Saito <ryoga.saito@linecorp.com>
18 months agotests: Add topotest for l3vpn over ipv6 peer
Ryoga Saito [Wed, 16 Nov 2022 23:37:55 +0000 (08:37 +0900)]
tests: Add topotest for l3vpn over ipv6 peer

To check the effect of the next patch, I added topotest.

Signed-off-by: Ryoga Saito <ryoga.saito@linecorp.com>
18 months agoisisd: fix area NULL pointer in isis_route_update
Louis Scalbert [Thu, 10 Nov 2022 16:18:01 +0000 (17:18 +0100)]
isisd: fix area NULL pointer in isis_route_update

Fix the case area is NULL.

Fixes: acc0029779 ("isisd: fix potential access to NULL pointer in isis_route_update")
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
18 months agoMerge pull request #12312 from pguibert6WIND/bgp_lu_rr_case
Russ White [Thu, 17 Nov 2022 02:58:09 +0000 (21:58 -0500)]
Merge pull request #12312 from pguibert6WIND/bgp_lu_rr_case

bgpd: authorise to select bgp self peer prefix on rr case

18 months agoMerge pull request #11992 from pguibert6WIND/pathd_debug
Russ White [Thu, 17 Nov 2022 02:41:33 +0000 (21:41 -0500)]
Merge pull request #11992 from pguibert6WIND/pathd_debug

Pathd debug

18 months agoMerge pull request #12324 from sworleys/Guard-InQ-Log
Donatas Abraitis [Wed, 16 Nov 2022 19:48:04 +0000 (21:48 +0200)]
Merge pull request #12324 from sworleys/Guard-InQ-Log

bgpd: debug guard inQ limit

18 months agoMerge pull request #12259 from opensourcerouting/fix/show_rtt_always
Donald Sharp [Wed, 16 Nov 2022 15:28:23 +0000 (10:28 -0500)]
Merge pull request #12259 from opensourcerouting/fix/show_rtt_always

bgpd: Shutdown RTT improvements

18 months agoMerge pull request #11058 from opensourcerouting/fix/redhat_debian_logrotate
Jafar Al-Gharaibeh [Wed, 16 Nov 2022 04:15:45 +0000 (22:15 -0600)]
Merge pull request #11058 from opensourcerouting/fix/redhat_debian_logrotate

packaging: Reuse frr.logrotate for Debian and Redhat builds

18 months agobgpd: debug guard inQ limit
Stephen Worley [Tue, 15 Nov 2022 20:28:09 +0000 (15:28 -0500)]
bgpd: debug guard inQ limit

Add a debug guard for the inQ limit.

Signed-off-by: Stephen Worley <sworley@nvidia.com>
18 months agoMerge pull request #12291 from anlancs/pimd/mtrace-fd
Stephen Worley [Tue, 15 Nov 2022 16:46:27 +0000 (11:46 -0500)]
Merge pull request #12291 from anlancs/pimd/mtrace-fd

pimd: delay creating the socket

18 months agobgpd: authorise to select bgp self peer prefix on rr case
Philippe Guibert [Mon, 7 Nov 2022 10:56:37 +0000 (11:56 +0100)]
bgpd: authorise to select bgp self peer prefix on rr case

This commit addresses an issue that happens when using bgp
peering with a rr client, with a received prefix which is the
local ip address of the bgp session.

When using bgp ipv4 unicast session, the local prefix is
received by a peer, and finds out that the proposed prefix
and its next-hop are the same. To avoid a route loop locally,
no nexthop entry is referenced for that prefix, and the route
will not be selected.

When the received peer is a route reflector, the prefix has
to be selected, even if the route can not be installed locally.

Fixes: ("fb8ae704615c") bgpd: prevent routes loop through itself
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
18 months agoMerge pull request #12307 from mtomaschewski/declare-a-check
Donatas Abraitis [Tue, 15 Nov 2022 07:13:33 +0000 (09:13 +0200)]
Merge pull request #12307 from mtomaschewski/declare-a-check

tools: remove backslash from declare check regex

18 months agoMerge pull request #12315 from donaldsharp/dplane_sorry
Donatas Abraitis [Tue, 15 Nov 2022 07:11:33 +0000 (09:11 +0200)]
Merge pull request #12315 from donaldsharp/dplane_sorry

Dplane sorry

18 months agoMerge pull request #12045 from patrasar/pimv6_rpf_fix
Donatas Abraitis [Mon, 14 Nov 2022 20:05:15 +0000 (22:05 +0200)]
Merge pull request #12045 from patrasar/pimv6_rpf_fix

pimd, pim6d: Update upstream IIF when pim disabled and enabled on an interface

18 months agopathd: display SRTE policy status when removing policy
Philippe Guibert [Mon, 25 Jul 2022 13:06:35 +0000 (15:06 +0200)]
pathd: display SRTE policy status when removing policy

Create a function that logs the status of a given SR-TE policy.
Add a call to this function when a policy is being removed.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
18 months agopathd: some traces are added to 'debug pathd ted' command.
Philippe Guibert [Mon, 25 Jul 2022 12:57:10 +0000 (14:57 +0200)]
pathd: some traces are added to 'debug pathd ted' command.

Some traces initially displayed will be hidden behind the
vty command: 'debug pathd ted'.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
18 months agopathd: use a define to store the the length of endpoint string
Philippe Guibert [Tue, 19 Jul 2022 12:59:23 +0000 (14:59 +0200)]
pathd: use a define to store the the length of endpoint string

The endpoint string is a 46 byte length buffer. Use a single
place to store the length of that buffer.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
18 months agopathd: add 'debug pathd policy' command
Philippe Guibert [Mon, 25 Jul 2022 12:55:37 +0000 (14:55 +0200)]
pathd: add 'debug pathd policy' command

Add a new cli command to troubleshoort pathd daemon.
Some traces initially enabled are hidden behind this
cli command.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
18 months agopathd: display path ted debugging status
Philippe Guibert [Wed, 21 Sep 2022 14:49:18 +0000 (16:49 +0200)]
pathd: display path ted debugging status

On 'show debugging' call, display the status about
ted debugging.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
18 months agoMerge pull request #12219 from cscarpitta/feature/srv6-usid-behavior-support
Donatas Abraitis [Mon, 14 Nov 2022 14:13:39 +0000 (16:13 +0200)]
Merge pull request #12219 from cscarpitta/feature/srv6-usid-behavior-support

bgpd, zebra: Add support for SRv6 uSID Behaviors

18 months agozebra: Fix dplane_fpm_nl to allow for fast configuration
Donald Sharp [Mon, 14 Nov 2022 13:28:45 +0000 (08:28 -0500)]
zebra: Fix dplane_fpm_nl to allow for fast configuration

If you have this order in your configuration file:

no fpm use-next-hop-groups
fpm address 127.0.0.1

the dplane code was using the same event thread t_event and the second
add event in the code was going, you already have an event scheduled
and as such the second event does not overwrite it.  Leaving
no code to actually start the whole processing.  There are probably
other cli iterations that will cause this fun as well, but I'm
not going to spend the time sussing them out at the moment.

Fixes: #12314
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
18 months agozebra: Use the enum, luke
Donald Sharp [Mon, 14 Nov 2022 13:06:16 +0000 (08:06 -0500)]
zebra: Use the enum, luke

Use the enum and let the compiler help us figure out
what cases are being missed.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
18 months agoMerge pull request #12234 from opensourcerouting/fix/bgp_regex_pcre
Donald Sharp [Mon, 14 Nov 2022 12:57:47 +0000 (07:57 -0500)]
Merge pull request #12234 from opensourcerouting/fix/bgp_regex_pcre

docker: Use PCRE2 for Alpine

18 months agobgpd: Implement SNMP BGP4V2-MIB (bgp4V2PeerEntry)
Donatas Abraitis [Sun, 13 Nov 2022 19:57:22 +0000 (21:57 +0200)]
bgpd: Implement SNMP BGP4V2-MIB (bgp4V2PeerEntry)

http://www.circitor.fr/Mibs/Mib/B/BGP4V2-MIB.mib

Compared with Arista BGP4V2-MIB implementation, almost identical (despite that
Arista has slightly some additional MIBs).

Example:

```
iso.3.6.1.3.5.1.1.2.1.1.1.4.192.168.10.64 = Gauge32: 0
iso.3.6.1.3.5.1.1.2.1.1.1.4.192.168.10.65 = Gauge32: 0
iso.3.6.1.3.5.1.1.2.1.1.2.16.42.2.71.128.1.35.0.0.0.0.0.0.0.0.0.2 = Gauge32: 0
iso.3.6.1.3.5.1.1.2.1.1.2.16.42.12.47.7.72.150.6.102.0.0.0.0.0.0.177.121 = Gauge32: 0
iso.3.6.1.3.5.1.1.2.1.1.2.16.42.12.47.7.72.150.6.102.0.0.0.0.0.0.177.128 = Gauge32: 0
iso.3.6.1.3.5.1.1.2.1.2.1.4.192.168.10.64 = INTEGER: 0
iso.3.6.1.3.5.1.1.2.1.2.1.4.192.168.10.65 = INTEGER: 0
iso.3.6.1.3.5.1.1.2.1.2.2.16.42.2.71.128.1.35.0.0.0.0.0.0.0.0.0.2 = INTEGER: 2
iso.3.6.1.3.5.1.1.2.1.2.2.16.42.12.47.7.72.150.6.102.0.0.0.0.0.0.177.121 = INTEGER: 0
iso.3.6.1.3.5.1.1.2.1.2.2.16.42.12.47.7.72.150.6.102.0.0.0.0.0.0.177.128 = INTEGER: 0
iso.3.6.1.3.5.1.1.2.1.3.1.4.192.168.10.64 = Hex-STRING: 00 00 00 00
iso.3.6.1.3.5.1.1.2.1.3.1.4.192.168.10.65 = Hex-STRING: 00 00 00 00
iso.3.6.1.3.5.1.1.2.1.3.2.16.42.2.71.128.1.35.0.0.0.0.0.0.0.0.0.2 = Hex-STRING: 2A 02 47 80 01 23 00 00 00 00 00 00 00 00 00 01
iso.3.6.1.3.5.1.1.2.1.3.2.16.42.12.47.7.72.150.6.102.0.0.0.0.0.0.177.121 = Hex-STRING: 00 00 00 00
iso.3.6.1.3.5.1.1.2.1.3.2.16.42.12.47.7.72.150.6.102.0.0.0.0.0.0.177.128 = Hex-STRING: 00 00 00 00
iso.3.6.1.3.5.1.1.2.1.4.1.4.192.168.10.64 = INTEGER: 0
iso.3.6.1.3.5.1.1.2.1.4.1.4.192.168.10.65 = INTEGER: 0
iso.3.6.1.3.5.1.1.2.1.4.2.16.42.2.71.128.1.35.0.0.0.0.0.0.0.0.0.2 = INTEGER: 2
iso.3.6.1.3.5.1.1.2.1.4.2.16.42.12.47.7.72.150.6.102.0.0.0.0.0.0.177.121 = INTEGER: 0
iso.3.6.1.3.5.1.1.2.1.4.2.16.42.12.47.7.72.150.6.102.0.0.0.0.0.0.177.128 = INTEGER: 0
iso.3.6.1.3.5.1.1.2.1.5.1.4.192.168.10.64 = Hex-STRING: 00 00 00 00
iso.3.6.1.3.5.1.1.2.1.5.1.4.192.168.10.65 = Hex-STRING: 00 00 00 00
iso.3.6.1.3.5.1.1.2.1.5.2.16.42.2.71.128.1.35.0.0.0.0.0.0.0.0.0.2 = Hex-STRING: 2A 02 47 80 01 23 00 00 00 00 00 00 00 00 00 02
iso.3.6.1.3.5.1.1.2.1.5.2.16.42.12.47.7.72.150.6.102.0.0.0.0.0.0.177.121 = Hex-STRING: 00 00 00 00
iso.3.6.1.3.5.1.1.2.1.5.2.16.42.12.47.7.72.150.6.102.0.0.0.0.0.0.177.128 = Hex-STRING: 00 00 00 00
iso.3.6.1.3.5.1.1.2.1.6.1.4.192.168.10.64 = Gauge32: 0
iso.3.6.1.3.5.1.1.2.1.6.1.4.192.168.10.65 = Gauge32: 0
iso.3.6.1.3.5.1.1.2.1.6.2.16.42.2.71.128.1.35.0.0.0.0.0.0.0.0.0.2 = Gauge32: 179
iso.3.6.1.3.5.1.1.2.1.6.2.16.42.12.47.7.72.150.6.102.0.0.0.0.0.0.177.121 = Gauge32: 0
iso.3.6.1.3.5.1.1.2.1.6.2.16.42.12.47.7.72.150.6.102.0.0.0.0.0.0.177.128 = Gauge32: 0
iso.3.6.1.3.5.1.1.2.1.7.1.4.192.168.10.64 = Gauge32: 65000
iso.3.6.1.3.5.1.1.2.1.7.1.4.192.168.10.65 = Gauge32: 65000
iso.3.6.1.3.5.1.1.2.1.7.2.16.42.2.71.128.1.35.0.0.0.0.0.0.0.0.0.2 = Gauge32: 65000
iso.3.6.1.3.5.1.1.2.1.7.2.16.42.12.47.7.72.150.6.102.0.0.0.0.0.0.177.121 = Gauge32: 65000
iso.3.6.1.3.5.1.1.2.1.7.2.16.42.12.47.7.72.150.6.102.0.0.0.0.0.0.177.128 = Gauge32: 65000
iso.3.6.1.3.5.1.1.2.1.8.1.4.192.168.10.64 = Hex-STRING: C0 00 02 FC
iso.3.6.1.3.5.1.1.2.1.8.1.4.192.168.10.65 = Hex-STRING: C0 00 02 FC
iso.3.6.1.3.5.1.1.2.1.8.2.16.42.2.71.128.1.35.0.0.0.0.0.0.0.0.0.2 = Hex-STRING: C0 00 02 FC
iso.3.6.1.3.5.1.1.2.1.8.2.16.42.12.47.7.72.150.6.102.0.0.0.0.0.0.177.121 = Hex-STRING: C0 00 02 FC
iso.3.6.1.3.5.1.1.2.1.8.2.16.42.12.47.7.72.150.6.102.0.0.0.0.0.0.177.128 = Hex-STRING: C0 00 02 FC
iso.3.6.1.3.5.1.1.2.1.9.1.4.192.168.10.64 = Gauge32: 0
iso.3.6.1.3.5.1.1.2.1.9.1.4.192.168.10.65 = Gauge32: 0
iso.3.6.1.3.5.1.1.2.1.9.2.16.42.2.71.128.1.35.0.0.0.0.0.0.0.0.0.2 = Gauge32: 54814
iso.3.6.1.3.5.1.1.2.1.9.2.16.42.12.47.7.72.150.6.102.0.0.0.0.0.0.177.121 = Gauge32: 0
iso.3.6.1.3.5.1.1.2.1.9.2.16.42.12.47.7.72.150.6.102.0.0.0.0.0.0.177.128 = Gauge32: 0
iso.3.6.1.3.5.1.1.2.1.10.1.4.192.168.10.64 = Gauge32: 65002
iso.3.6.1.3.5.1.1.2.1.10.1.4.192.168.10.65 = Gauge32: 65002
iso.3.6.1.3.5.1.1.2.1.10.2.16.42.2.71.128.1.35.0.0.0.0.0.0.0.0.0.2 = Gauge32: 65002
iso.3.6.1.3.5.1.1.2.1.10.2.16.42.12.47.7.72.150.6.102.0.0.0.0.0.0.177.121 = Gauge32: 65001
iso.3.6.1.3.5.1.1.2.1.10.2.16.42.12.47.7.72.150.6.102.0.0.0.0.0.0.177.128 = Gauge32: 65001
iso.3.6.1.3.5.1.1.2.1.11.1.4.192.168.10.64 = Hex-STRING: 00 00 00 00
iso.3.6.1.3.5.1.1.2.1.11.1.4.192.168.10.65 = Hex-STRING: 00 00 00 00
iso.3.6.1.3.5.1.1.2.1.11.2.16.42.2.71.128.1.35.0.0.0.0.0.0.0.0.0.2 = STRING: "dddd"
iso.3.6.1.3.5.1.1.2.1.11.2.16.42.12.47.7.72.150.6.102.0.0.0.0.0.0.177.121 = Hex-STRING: 00 00 00 00
iso.3.6.1.3.5.1.1.2.1.11.2.16.42.12.47.7.72.150.6.102.0.0.0.0.0.0.177.128 = Hex-STRING: 00 00 00 00
iso.3.6.1.3.5.1.1.2.1.12.1.4.192.168.10.64 = INTEGER: 2
iso.3.6.1.3.5.1.1.2.1.12.1.4.192.168.10.65 = INTEGER: 2
iso.3.6.1.3.5.1.1.2.1.12.2.16.42.2.71.128.1.35.0.0.0.0.0.0.0.0.0.2 = INTEGER: 2
iso.3.6.1.3.5.1.1.2.1.12.2.16.42.12.47.7.72.150.6.102.0.0.0.0.0.0.177.121 = INTEGER: 2
iso.3.6.1.3.5.1.1.2.1.12.2.16.42.12.47.7.72.150.6.102.0.0.0.0.0.0.177.128 = INTEGER: 2
iso.3.6.1.3.5.1.1.2.1.13.1.4.192.168.10.64 = INTEGER: 1
iso.3.6.1.3.5.1.1.2.1.13.1.4.192.168.10.65 = INTEGER: 3
iso.3.6.1.3.5.1.1.2.1.13.2.16.42.2.71.128.1.35.0.0.0.0.0.0.0.0.0.2 = INTEGER: 1
iso.3.6.1.3.5.1.1.2.1.13.2.16.42.12.47.7.72.150.6.102.0.0.0.0.0.0.177.121 = INTEGER: 3
iso.3.6.1.3.5.1.1.2.1.13.2.16.42.12.47.7.72.150.6.102.0.0.0.0.0.0.177.128 = INTEGER: 1
iso.3.6.1.3.5.1.1.2.1.14.1.4.192.168.10.64 = Hex-STRING: 4F 4B 00
iso.3.6.1.3.5.1.1.2.1.14.1.4.192.168.10.65 = Hex-STRING: 4F 4B 32 00
iso.3.6.1.3.5.1.1.2.1.14.2.16.42.2.71.128.1.35.0.0.0.0.0.0.0.0.0.2 = Hex-STRING: 69 70 76 36 00
```

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
18 months agopimd, pim6d: Don't allow pim disabled interface as nexthop
Sarita Patra [Fri, 11 Nov 2022 07:21:35 +0000 (23:21 -0800)]
pimd, pim6d: Don't allow pim disabled interface as nexthop

While doing nexthop lookup, only allow the nexthop
interafce which is PIM enabled.

Issue: #10782
Issue: #11931

Signed-off-by: Sarita Patra <saritap@vmware.com>
18 months agopimd, pim6d: Update upstream rpf disable/enable pim on interface
Sarita Patra [Fri, 11 Nov 2022 06:59:58 +0000 (22:59 -0800)]
pimd, pim6d: Update upstream rpf disable/enable pim on interface

Problem:
When "no ip pim" is executed on source connected interface, its
ifp->info is set to NULL. But KAT on this interface is still
running, it wrongly dereferences NULL. This leads to crash.

Root Cause:
pim upstream IIF is still pointing towards the source connected
interface which is not pim enabled and Mroute is still present in
the kernel.

Fix:
When “no ip pim” command gets executed on source connected interface,
then loop through all the pnc->nexthop, if any new nexthop found,
then update the upstream IIF accordindly, if not found then update
the upstream IIF as Unknown and uninstall the mroute from kernel.

When “ip pim” command gets executed on source connected interface,
then also loop through all the pnc->nexthop  and update the upstream IIF,
install the mroute in kernel.

Issue: #10782
Issue: #11931

Signed-off-by: Sarita Patra <saritap@vmware.com>
18 months agopimd, pim6d: Introduce pnc_hash_walk_data structure
Sarita Patra [Fri, 11 Nov 2022 06:55:53 +0000 (22:55 -0800)]
pimd, pim6d: Introduce pnc_hash_walk_data structure

This structure will contain pim_instance and interface
data.

Signed-off-by: Sarita Patra <saritap@vmware.com>
18 months agopim6d: Handle IPV6 for "no ipv6 pim"
Sarita Patra [Fri, 21 Oct 2022 09:00:10 +0000 (02:00 -0700)]
pim6d: Handle IPV6 for "no ipv6 pim"

Issue: #11931

Signed-off-by: Sarita Patra <saritap@vmware.com>
18 months agoMerge pull request #12308 from mtomaschewski/pam-account-warning
Donatas Abraitis [Sat, 12 Nov 2022 20:35:53 +0000 (22:35 +0200)]
Merge pull request #12308 from mtomaschewski/pam-account-warning

pam: declare root as sufficient frr pam account

18 months agopam: declare root as sufficient frr pam account
Marius Tomaschewski [Fri, 11 Nov 2022 13:50:12 +0000 (14:50 +0100)]
pam: declare root as sufficient frr pam account

https://github.com/FRRouting/frr/pull/11465 enabled account verification,
but the pam config declares rootok as sufficient in authentication only
and not in account verification, what causes warning in the log:

vtysh[3747]: pam_warn(frr:account): function=[pam_sm_acct_mgmt]
             flags=0 service=[frr] terminal=[<unknown>] user=[root]
     ruser=[<unknown>] rhost=[<unknown>]

Signed-off-by: Marius Tomaschewski <mt@suse.com>
18 months agotools: remove backslash from declare check regex
Marius Tomaschewski [Fri, 11 Nov 2022 11:26:04 +0000 (12:26 +0100)]
tools: remove backslash from declare check regex

The backslash in `grep -q '^declare \-a'` is not needed and
causes `grep: warning: stray \ before -` warning in grep-3.8.

Signed-off-by: Marius Tomaschewski <mt@suse.com>
18 months agoMerge pull request #12303 from donaldsharp/relax_if_type_check
Jafar Al-Gharaibeh [Fri, 11 Nov 2022 06:14:41 +0000 (00:14 -0600)]
Merge pull request #12303 from donaldsharp/relax_if_type_check

zebra: relax if_type check to allow early ES config creation

18 months agoMerge pull request #12269 from pguibert6WIND/ospf_external_lsa_crash
Jafar Al-Gharaibeh [Thu, 10 Nov 2022 19:20:50 +0000 (13:20 -0600)]
Merge pull request #12269 from pguibert6WIND/ospf_external_lsa_crash

ospfd: prevent from crashing when processing external lsa

18 months agozebra: relax if_type check to allow early ES config creation
Anuradha Karuppiah [Fri, 29 May 2020 16:53:31 +0000 (09:53 -0700)]
zebra: relax if_type check to allow early ES config creation

The API for configuring ES in zebra had a strict check for if_type
"isBond" that prevented the ES config from being created before the
interface.

Ticket: CM-29454

Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
18 months agoospfd: prevent from crashing when processing external lsa
Philippe Guibert [Mon, 7 Nov 2022 10:03:41 +0000 (11:03 +0100)]
ospfd: prevent from crashing when processing external lsa

When using debug mode, the ei parameter may be NULL. In that
case, do not display the log trace, otherwise a crash will
happen.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
18 months agoMerge pull request #12297 from donaldsharp/pim_warn_to_debug
Jafar Al-Gharaibeh [Wed, 9 Nov 2022 22:17:14 +0000 (16:17 -0600)]
Merge pull request #12297 from donaldsharp/pim_warn_to_debug

pimd: Convert zlog_warn to debug

18 months agom4/ax_python.m4: check for python-x.y-emded.pc, not python-x.y.pc
Alexander Kanavin [Wed, 9 Nov 2022 19:24:45 +0000 (20:24 +0100)]
m4/ax_python.m4: check for python-x.y-emded.pc, not python-x.y.pc

Only the embed version includes necessary linker flags to link
with libpython.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
18 months agoMerge pull request #12287 from donaldsharp/bgp_rpki_takes_too_long
Donatas Abraitis [Wed, 9 Nov 2022 19:25:44 +0000 (21:25 +0200)]
Merge pull request #12287 from donaldsharp/bgp_rpki_takes_too_long

Bgp rpki takes too long

18 months agopimd: Convert zlog_warn to debug
Donald Sharp [Fri, 22 Nov 2019 20:12:05 +0000 (15:12 -0500)]
pimd: Convert zlog_warn to debug

The unable to find a nexthop should not be a warning it should
be a debug.  Switching over.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
18 months agoMerge pull request #11736 from kuldeepkash/pim_v6
Donatas Abraitis [Wed, 9 Nov 2022 15:56:32 +0000 (17:56 +0200)]
Merge pull request #11736 from kuldeepkash/pim_v6

[PIMv6] Add new scenarios to multicast static_rp suite

18 months agoMerge pull request #12281 from SaiGomathiN/11279
Donatas Abraitis [Wed, 9 Nov 2022 13:14:46 +0000 (15:14 +0200)]
Merge pull request #12281 from SaiGomathiN/11279

tools: Add pim6d support bundle commands

18 months agopimd: delay creating the socket
anlan_cs [Wed, 9 Nov 2022 08:53:11 +0000 (03:53 -0500)]
pimd: delay creating the socket

Bring error handling up front and delay creating socket so that
we don't think too much about closing the socket in error cases.

Signed-off-by: anlan_cs <vic.lan@pica8.com>
18 months agoMerge pull request #12280 from opensourcerouting/fix/ospv6_show_passive_interface
Jafar Al-Gharaibeh [Wed, 9 Nov 2022 05:25:39 +0000 (23:25 -0600)]
Merge pull request #12280 from opensourcerouting/fix/ospv6_show_passive_interface

ospf6d: Show if the interface is passive for `show ipv6 ospf6 interface`

18 months agoMerge pull request #12286 from ffontaine/master
Jafar Al-Gharaibeh [Wed, 9 Nov 2022 05:24:34 +0000 (23:24 -0600)]
Merge pull request #12286 from ffontaine/master

zebra/netconf_netlink.c: fix build without AF_MPLS

18 months agodoc: Add documentation for behavior usid command
Carmine Scarpitta [Thu, 27 Oct 2022 22:11:02 +0000 (00:11 +0200)]
doc: Add documentation for behavior usid command

Add the documentation for the `behavior usid` command to zebra.

When the `behavior usid` command is set, a flag is added to the locator
to indicate that the locator is a uSID locator. When a locator is
specified as a uSID locator, the bgpd will install SRv6 behaviors with
the uSID in the dataplane and use the SRv6 uSID codepoints in the BGP
update message.

Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
18 months agotests: Add topotest for SRv6 uSID Locator
Carmine Scarpitta [Thu, 27 Oct 2022 21:40:09 +0000 (23:40 +0200)]
tests: Add topotest for SRv6 uSID Locator

This test ensures that the command `behavior usid` works properly.

When the `behavior usid` command is set, a flag is added to the locator
to indicate that the locator is a uSID locator. This test verifies that
the locator works correctly when you set / unset the `behavior usid`
command.

Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
18 months agozebra: Add `behavior usid` command to VTY
Carmine Scarpitta [Thu, 27 Oct 2022 18:08:40 +0000 (20:08 +0200)]
zebra: Add `behavior usid` command to VTY

Install a new command `behavior usid` into the `SRV6_LOC_NODE` CLI node.

This command allows the user to set/unset the `SRV6_LOCATOR_USID` flag
for an SRv6 locator. The `SRV6_LOCATOR_USID` flag indicates whether a
locator is a uSID locator or not. When the flag is set, the routing
daemons (e.g., bgpd) will install SRv6 behaviors with the uSID in the
dataplane.

Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
18 months agozebra: Add helpers to notify locator add/delete
Carmine Scarpitta [Fri, 28 Oct 2022 23:28:30 +0000 (01:28 +0200)]
zebra: Add helpers to notify locator add/delete

In this commit, we add two helper functions
`zebra_notify_srv6_locator_add` and `zebra_notify_srv6_locator_delete`.
These functions are used to notify locator additions/deletions to
zclients.

Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>