Donald Sharp
56b91d107f
bgpd: Prevent crash when issuing various forms of bgp no-rib
...
The `bgp no-rib` command cycles through all the bgp rib tables
and removes them from zebra. Modify the code so that FRR notices
that it is attempting to cycle through the safi's that are two level
tables. In addition these safi's cannot just blindly remove the routes
from the rib as that there are none explicitly.
This code just prevents the crash in bgpd. It does not properly cycle
through and remove the zebra changes made that are explicit to these afi's.
This should be handled as appropriate by the developers on these safi's when
it becomes important to them.
Fixes : #11178
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-05-12 10:20:28 -04:00
Donatas Abraitis
1ae314be4f
bgpd: Send Hard Reset Notification for BGP_NOTIFY_CEASE_ADMIN_RESET
...
`clear bgp neighbor` should send Hard Reset and graceful restart should be
activated. Let's make this adjustable.
https://datatracker.ietf.org/doc/html/rfc8538#section-5.1
+-------+------------------------------------+----------------------+
| Value | Name | Suggested Behavior |
+-------+------------------------------------+----------------------+
| 1 | Maximum Number of Prefixes Reached | Hard Reset |
| 2 | Administrative Shutdown | Hard Reset |
| 3 | Peer De-configured | Hard Reset |
| 4 | Administrative Reset | Provide user control |
| 5 | Connection Rejected | Graceful Cease |
| 6 | Other Configuration Change | Graceful Cease |
| 7 | Connection Collision Resolution | Graceful Cease |
| 8 | Out of Resources | Graceful Cease |
| 9 | Hard Reset | Hard Reset |
+-------+------------------------------------+----------------------+
Enabled by default.
Co-authored-by: Biswajit Sadhu <biswajit.sadhu@gmail.com>
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-05-10 09:04:25 +03:00
Russ White
026f28e8ca
Merge pull request #11138 from opensourcerouting/fix/rpki
...
bgpd: RPKI reverts, nits...
2022-05-09 19:36:02 -04:00
Donatas Abraitis
f2ca5c5b95
bgpd: Add CLI knob to enable graceful restart for BGP notifications
...
N-bit flag should be exchanged in BGP OPEN messages, not only when the
bgpd is restarted/started.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-05-05 12:35:03 +03:00
Donatas Abraitis
c70fdb2794
doc: Add missing commands for RPKI
...
rpki expire_interval
rpki retry_interval
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-05-03 17:11:29 +03:00
Abhishek N R
f5e14dff2b
doc: Updated the doc for show ipv6 mroute commands
...
Signed-off-by: Abhishek N R <abnr@vmware.com>
2022-04-28 02:17:13 -07:00
Abhishek N R
6bb41fcad5
doc: Updated the doc for show ipv6 multicast commands
...
Signed-off-by: Abhishek N R <abnr@vmware.com>
2022-04-27 04:26:41 -07:00
Donatas Abraitis
77e3d82167
bgpd: Add set as-path replace <any|ASN>
cmd for route-maps
...
```
route-map tstas permit 10
set as-path replace 1
exit
```
Before:
```
donatas-laptop(config-router-af)# do show ip bgp 10.10.10.10/32
BGP routing table entry for 10.10.10.10/32, version 13
Paths: (1 available, best #1 , table default)
Advertised to non peer-group peers:
192.168.10.65
65000 1 2 3 123
192.168.10.65 from 192.168.10.65 (10.10.10.11)
Origin IGP, metric 0, valid, external, best (First path received)
Last update: Mon Apr 25 10:39:50 2022
```
After:
```
donatas-laptop(config-router-af)# do show ip bgp 10.10.10.10/32
BGP routing table entry for 10.10.10.10/32, version 15
Paths: (1 available, best #1 , table default)
Advertised to non peer-group peers:
192.168.10.65
65000 65010 2 3 123
192.168.10.65 from 192.168.10.65 (10.10.10.11)
Origin IGP, metric 0, valid, external, best (First path received)
Last update: Mon Apr 25 10:40:16 2022
```
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-04-25 14:05:22 +03:00
Donald Sharp
ed18e04d91
doc: Fix spelling of choosen
...
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-04-19 08:28:47 -04:00
Donald Sharp
2b669d3a21
*: Fix spelling of overriden
...
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-04-19 08:27:02 -04:00
Donald Sharp
485ac9a79b
*: Fix spelling of neccessary
...
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-04-19 08:11:29 -04:00
Sri Mohana Singamsetty
926e00236e
Merge pull request #10910 from donaldsharp/doc_nht
...
doc: Add `show ip nht..` documentation
2022-04-13 12:28:43 -07:00
Balaji Gurudoss
a8caf78d61
pim6d: Addition of ipv6 ssmpingd config commands
...
Signed-off-by: Balaji Gurudoss <G_Balaji1@dell.com>
2022-04-12 18:07:24 +05:30
Donald Sharp
050d644400
doc: Add show ip nht..
documentation
...
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-04-08 08:18:39 -04:00
Donatas Abraitis
96322c148b
Merge pull request #10831 from anlancs/doc-mh-esi-type0
...
doc: add mh type-0 ESI support
2022-04-04 08:47:01 +03:00
anlan_cs
c52de8c1aa
doc: add mh type-0 ESI support
...
Add type-0 ESI support for `evpn mh es-id` command.
Signed-off-by: anlan_cs <vic.lan@pica8.com>
2022-04-02 06:24:53 -04:00
Donatas Abraitis
97a1fdf20f
Merge pull request #10875 from anlancs/doc-mh-esi-1
...
doc: two minor changes for evpn-mh
2022-04-02 11:54:51 +03:00
anlan_cs
c12d5f2086
doc: two minor changes for evpn-mh
...
Correct one word - `EAD-per-ES`, and remove one unuseful `index::` line.
Signed-off-by: anlan_cs <vic.lan@pica8.com>
2022-03-31 21:03:47 -04:00
Donatas Abraitis
11fc3db305
Merge pull request #10902 from bobuhiro11/fix_zebra_srv6_func_bits
...
zebra: fix doc and default value of "func-bits" for SRv6
2022-03-30 10:20:36 +03:00
Russ White
dcaba5ae1a
Merge pull request #10719 from opensourcerouting/nb-show-fixes
...
lib: fix and improve yang operational data display
2022-03-29 10:51:02 -04:00
Nobuhiro MIKI
5a22d2ad33
zebra: fix typo in doc/user/zebra.rst
...
Signed-off-by: Nobuhiro MIKI <nmiki@yahoo-corp.jp>
2022-03-28 12:13:31 +09:00
Donatas Abraitis
2efc3acd9e
Merge pull request #9476 from SaiGomathiN/pim-nht
...
pimd: Added new option "detail" in the "debug pim nht" CLI
2022-03-20 23:14:08 +02:00
Anuradha Karuppiah
9239606859
doc: add notes for ead-es-frag fragmentation
...
Config for -
1. Preventing fragmentation via user configured EAD RTs
2. Limiting the number of EVIs per-fragment if EAD fragmentation is needed
Signed-off-by: Anuradha Karuppiah <anuradhak@nvidia.com>
2022-03-18 07:37:07 -04:00
Donatas Abraitis
c07ddc3656
pimd: Show all groups matched by an arbitrary prefix for pim rp-info
...
```
r1# show ip pim rp-info
RP address group/prefix-list OIF I am RP Source Group-Type
192.168.10.123 225.0.0.0/24 eth2 yes Static ASM
192.168.10.123 239.0.0.0/8 eth2 yes Static ASM
192.168.10.123 239.4.0.0/24 eth2 yes Static SSM
r1# show ip pim rp-info 239.4.0.0/25
RP address group/prefix-list OIF I am RP Source Group-Type
192.168.10.123 239.0.0.0/8 eth2 yes Static ASM
192.168.10.123 239.4.0.0/24 eth2 yes Static SSM
```
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-03-17 09:38:22 +02:00
Russ White
5d97021ba3
Merge pull request #10427 from sworleys/Protodown-Reason-Upstream
...
Add Support for Setting Protodown Reason Code
2022-03-15 19:58:16 -04:00
Rafael F. Zalamena
1c9bd416f4
doc: document yang show operational data
...
Add missing documentation for the command and describe the available
options.
Signed-off-by: Rafael F. Zalamena <rzalamena@opensourcerouting.org>
2022-03-15 15:32:34 -03:00
Donatas Abraitis
8c0a76808a
pimd: Show group-type under show ip pim rp-info
...
And filter by group for PIM.
```
exit1-debian-11# show ip pim rp-info
RP address group/prefix-list OIF I am RP Source Group-Type
192.168.10.17 238.0.0.0/24 eth2 no Static ASM
192.168.10.110 232.0.0.0/24 eth2 no Static SSM
exit1-debian-11# show ip pim rp-info 238.0.0.0/24
RP address group/prefix-list OIF I am RP Source Group-Type
192.168.10.17 238.0.0.0/24 eth2 no Static ASM
exit1-debian-11# show ip pim rp-info 238.0.0.0/24 json
{
"192.168.10.17":[
{
"rpAddress":"192.168.10.17",
"outboundInterface":"eth2",
"iAmRP":false,
"group":"238.0.0.0/24",
"source":"Static",
"groupType":"ASM"
}
]
}
exit1-debian-11#
```
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-03-12 10:41:07 +02:00
Mobashshera Rasool
829ab02106
doc: Add the document for PIMv6
...
This PR is raised to add the documentation for MLD and PIMv6.
Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
2022-03-10 02:12:54 -08:00
Stephen Worley
3393afc990
doc: add user doc for sharp protodown
...
Add user doc for setting protodown on an interface with
sharpd.
Signed-off-by: Stephen Worley <sworley@nvidia.com>
2022-03-09 18:02:44 -05:00
Stephen Worley
c40e1b1cfb
zebra: add command for setting protodown bit
...
Add command for use to set protodown via frr.conf in
the case our default conflicts with another application
they are using.
Signed-off-by: Stephen Worley <sworley@nvidia.com>
2022-03-09 17:52:44 -05:00
Russ White
82934a6a32
Merge pull request #10701 from rampxxxx/feat_isis_json_show_cmds
...
Feat isis json show cmds
2022-03-08 11:15:25 -05:00
Mark Stapp
bdbdd2a75c
doc: fix another doc typo
...
Fix another typo that mis-uses the asterisk character.
Signed-off-by: Mark Stapp <mstapp@nvidia.com>
2022-03-07 08:34:09 -05:00
Sai Gomathi
6d733f0dbc
pimd: Added new option "detail" in the "debug pim nht" CLI
...
Problem Statement:
=================
PIM Logs are coming at interval of 1 minute although pim
is not enabled.
Root Cause Analysis:
====================
By default, RCPM configures the PIM debugs when router comes up
via script. The product cannot disable PIM even though it is not required.
Hence moving these logs under a new debug option which will not be
enabled by default.
Fix:
====
Added a new option "detail" in the cli:
debug pim nht detail
Co-author: Mobashshera Rasool <mrasool@vmware.com>
Signed-off-by: Sai Gomathi <nsaigomathi@vmware.com>
2022-03-03 22:33:20 -08:00
Javier Garcia
a2cac12a63
isisd: Add json to show isis database command.
...
Signed-off-by: Javier Garcia <javier.martin.garcia@ibm.com>
2022-03-02 16:20:44 +01:00
Javier Garcia
a21177f280
isisd: Add json to show isis neighbor command.
...
Signed-off-by: Javier Garcia <javier.martin.garcia@ibm.com>
2022-03-01 17:57:21 +01:00
David Lamparter
2821405a69
Merge pull request #10640 from donaldsharp/thread_timers
2022-03-01 11:45:36 +01:00
Jafar Al-Gharaibeh
868efb9e9f
Merge pull request #10672 from donaldsharp/bsd_zebra_graceful_restart_cleanup
...
Bsd zebra graceful restart cleanup
2022-02-28 14:57:35 -06:00
Mark Stapp
2f5997dc56
doc: fix typo in zebra doc
...
Fix a typo in the zebra doc file that triggers a warning.
Signed-off-by: Mark Stapp <mstapp@nvidia.com>
2022-02-28 11:28:25 -05:00
David Lamparter
b9db469fe9
Merge pull request #10667 from donaldsharp/bufsize
2022-02-28 15:56:51 +01:00
Donald Sharp
fd149fe625
doc: Update documentation to indicate *BSD struggles
...
*BSD has some special struggles associated with the graceful
restart code in zebra. Add a bit of documentation to outline
this problem and how it is solved.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-02-28 09:50:35 -05:00
David Lamparter
bec667a6bc
vtysh: show live log messages
...
https://www.youtube.com/watch?v=8psFQCEgA18
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2022-02-28 13:33:27 +01:00
Donald Sharp
a698ba1639
doc: Add show thread timers
doc commands
...
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-02-28 06:39:07 -05:00
Donald Sharp
4dca0c10df
doc: Document a existing cli for zebra that was missing
...
The -s or --nl-bufsize option was missing, document it.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2022-02-27 07:47:58 -05:00
Javier Garcia
9fee4d4c60
isisd: Add json to show isis interface command.
...
Signed-off-by: Javier Garcia <javier.martin.garcia@ibm.com>
2022-02-25 12:36:17 +01:00
Javier Garcia
471bb5da52
isisd. Add json to show summary command.
...
Signed-off-by: Javier Garcia <javier.martin.garcia@ibm.com>
2022-02-25 12:36:11 +01:00
Donatas Abraitis
ec37d09855
isisd: Drop deprecated segment-routing local-block
command
...
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2022-02-23 08:45:54 +02:00
Chirag Shah
79d2f64ee1
doc: add description for match evpn route-type
...
Signed-off-by: Chirag Shah <chirag@nvidia.com>
2022-02-17 09:55:00 -08:00
Donatas Abraitis
ebde4d03c1
Merge pull request #10558 from Jafaral/ospf-net-or-iface
...
doc: mixing `ip ospf` and `network` commands is not supported
2022-02-16 22:10:21 +02:00
Donald Sharp
7b08708e65
Merge pull request #9224 from SaiGomathiN/saig
...
pimd: IGMP Query Generation
2022-02-16 11:26:03 -05:00
Russ White
17c93806a0
Merge pull request #10555 from anlancs/doc-comment
...
doc: add "cost" to ospfd "range" command
2022-02-15 12:58:28 -05:00