Donald Sharp
f4baa8fe25
tests: Remove unnecessary formating for strings
...
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2021-04-15 07:17:10 -04:00
Donald Sharp
d9df892180
tests: Remove duplicate functions in python code
...
We have basically two identical functions in test_bgp_gr_functionality_topo1.py
Fix.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2021-04-15 07:17:06 -04:00
Igor Ryzhov
dceb1b6223
Merge pull request #8477 from opensourcerouting/lib-bfd-fix
2021-04-15 09:32:23 +03:00
David Lamparter
1b958b2ef8
lib: disable ASAN redzone around xref_p/xref_array
...
The "xref_p" variables are placed in the "xref_array" section
specifically so they're next to each other and we get an array at the
end. The ASAN redzone that is inserted around global variables is
breaks that since it'd be inserted before and after each of the array
items. So disable the ASAN redzone for these variables (and only these
variables, nothing else should be affected.)
Signed-off-by: David Lamparter <equinox@diac24.net>
2021-04-15 06:27:34 +02:00
Renato Westphal
1e3937b33d
Merge pull request #8467 from idryzhov/fix-acl-delete
...
lib: fix access-list deletion
2021-04-14 23:58:39 -03:00
Renato Westphal
9759c5122d
Merge pull request #8469 from mjstapp/fix_bgp_nhg_mpath
...
bgpd: don't overrun fixed zapi array of nexthops
2021-04-14 23:54:08 -03:00
Renato Westphal
8b74cd9e6d
Merge pull request #8470 from mjstapp/fix_nhrp_cov_socket
...
nhrpd: fix coverity warning about os_socket()
2021-04-14 23:52:39 -03:00
Rafael Zalamena
9c39d19742
lib: fix BFD crash on interface removal
...
- Handle badly formatted messages (don't set `ifp` in that case)
- Handle unread messages (e.g. when family is not don't trigger `assert`)
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
2021-04-14 15:28:09 -03:00
Patrick Ruddy
5bb91468c5
Merge pull request #8003 from donaldsharp/timings
...
lib: Differentiate between real and cpu bound processes
2021-04-14 18:33:18 +01:00
Quentin Young
8a0a716f83
Merge pull request #8356 from LabNConsulting/working/lb/docker-ci-v2
2021-04-14 16:27:39 +00:00
Igor Ryzhov
3eff8e2f44
*: cleanup number-named access-lists and prefix-lists
...
A long time ago there was a difference between number-named and string-named
access/prefix-lists. Currently we always treat the name as a string and
there is no need for a separate list for number-named lists.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2021-04-14 17:18:13 +03:00
Donald Sharp
1ff339ac05
Merge pull request #8450 from ton31337/feature/frr_history_turn_on_off
...
vtysh: Set history file on demand
2021-04-14 09:59:09 -04:00
Mark Stapp
f5a1fb4f32
nhrpd: fix coverity warning about os_socket()
...
Ensure we don't try to use an invalid fd in nhrpd, reported
by coverity.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
2021-04-14 09:57:41 -04:00
Mark Stapp
719b209ce7
bgpd: don't overrun fixed zapi array of nexthops
...
Avoid overrunning the fixed-size array of nexthops in a
zapi_nhg.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
2021-04-14 09:24:37 -04:00
Donald Sharp
8a2ec9102f
Merge pull request #8320 from idryzhov/prefix-list-seqnum
...
lib: remove "ip prefix-list sequence-number" command
2021-04-14 09:21:28 -04:00
Igor Ryzhov
8c4796a22d
lib: fix access-list deletion
...
Problems with the current implementation:
* Delete hook is called before the deletion of the access-list from the
master list, which means that daemons processing this hook successfully
find this access-list, store a pointer to it in their structures, and
right after that the access-list is freed. Daemons end up having stale
pointer to the freed structure.
* Route-maps are not notified of the deletion.
This commit fixes both issues.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2021-04-14 13:08:18 +03:00
Sri Mohana Singamsetty
dea4eee59f
Merge pull request #8446 from ton31337/fix/json_output_for_specific_vs_global_should_be_the_same
...
bgpd: Add `show bgp json detail` command
2021-04-13 17:33:17 -07:00
Sri Mohana Singamsetty
e64a538c70
Merge pull request #8448 from ton31337/feature/show_rpki_state_in_global_show_bgp
...
bgpd: Show RPKI short state in `show bgp <afi> <safi>`
2021-04-13 17:32:37 -07:00
David Lamparter
5a4ee981d0
vtysh: fix extract.pl for commands with "_cmd"
...
If the command includes `_cmd`, hilarity ensues ;)
Signed-off-by: David Lamparter <equinox@diac24.net>
2021-04-13 23:57:14 +02:00
David Lamparter
c574670847
build: don't use $(top_srcdir) in vtysh_scan
...
It's not necessary and can confuse scripts.
Signed-off-by: David Lamparter <equinox@diac24.net>
2021-04-13 23:57:14 +02:00
Donatas Abraitis
4c92d8188c
doc: Add show bgp json detail
command to print more verbose JSON output
...
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2021-04-13 22:06:34 +03:00
Donatas Abraitis
f280c93b11
bgpd: Add show bgp json detail
command
...
Print detailed version for JSON output when dumping ALL BGP table with
`show bgp <afi> <safi> json detail`.
This output should be at some sort of identical to show_ip_bgp_route_cmd.
To avoid breaking backward-compatibility for `show bgp json`, adding
'detail' keyword for that.
In long-term it's easier for operators to compare stuff just looking at global
view instead of per-prefix for details.
Before:
```
],"192.168.100.1/32": [
{
"valid":true,
"bestpath":true,
"selectionReason":"First path received",
"pathFrom":"external",
"prefix":"192.168.100.1",
"prefixLen":32,
"network":"192.168.100.1\/32",
"metric":0,
"weight":32768,
"peerId":"(unspec)",
"path":"",
"origin":"incomplete",
"nexthops":[
{
"ip":"0.0.0.0",
"hostname":"exit1-debian-9",
"afi":"ipv4",
"used":true
}
]
}
] } }
```
After:
```
],"192.168.100.1/32": [
{
"aspath":{
"string":"Local",
"segments":[
],
"length":0
},
"origin":"incomplete",
"metric":0,
"weight":32768,
"valid":true,
"sourced":true,
"bestpath":{
"overall":true,
"selectionReason":"First path received"
},
"lastUpdate":{
"epoch":1618040124,
"string":"Sat Apr 10 07:35:24 2021\n"
},
"nexthops":[
{
"ip":"0.0.0.0",
"hostname":"exit1-debian-9",
"afi":"ipv4",
"metric":0,
"accessible":true,
"used":true
}
],
"peer":{
"peerId":"0.0.0.0",
"routerId":"192.168.100.1"
}
}
] } }
```
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2021-04-13 22:06:32 +03:00
Jafar Al-Gharaibeh
d75213d260
Merge pull request #8153 from reubendowle/nhrp-multicast
...
nhrp, ospf: add nhrp multicast for OSPF DMVPN
2021-04-13 12:49:28 -05:00
Mark Stapp
d7265db9b3
tests: run black over mcast-pim-static, static_routing_with_[ei]bgp
...
Run black and clean up formatting along with pylint cleanup.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
2021-04-13 13:34:57 -04:00
Mark Stapp
ec3ed7234d
tests: fix pylint errors in static_routing_with_ibgp
...
Fix pylint errors.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
2021-04-13 11:45:55 -04:00
Mark Stapp
aa59a7090a
tests: fix pylint errors in static_routing_with_ebgp tests
...
Fix pylint errors; also enable the test in 'topo4', which has never
run.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
2021-04-13 11:45:55 -04:00
Mark Stapp
914faab594
tests: fix pylint errors in mcast-pim-static-rp-topo1
...
Fix pylint errors.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
2021-04-13 11:45:55 -04:00
Russ White
0ae24ff566
Merge pull request #8414 from idryzhov/fix-filter-cli
...
various acl/plist cli fixes
2021-04-13 11:38:51 -04:00
Russ White
a9d5dbe34b
Merge pull request #8431 from ton31337/feature/show_bgp_version_per_prefix
...
bgpd: Add `show bgp version <version>` command
2021-04-13 11:33:22 -04:00
Quentin Young
54bb4ab3ec
Merge pull request #8426 from idryzhov/fix-interface-nb-stale-pointers
...
lib: fix interface nb stale pointers
2021-04-13 15:26:51 +00:00
Mark Stapp
7de06eab47
ospfd: show seconds in timeval_dump
...
If the number of seconds is < one minute, show seconds and
msecs.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
2021-04-13 09:09:31 -04:00
Mark Stapp
f3dbd9d3ef
Merge pull request #8145 from pguibert6WIND/nhrp_use_zebra
...
nhrp: use zebra
2021-04-13 08:02:56 -04:00
Philippe Guibert
88217099de
zebra, lib: replace ZEBRA_ROUTE_NEIGH with simplified version
...
do not add a new route type, and consider 0 as a value meaning
that zebra should be the owner.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2021-04-13 08:58:54 +02:00
Philippe Guibert
a8807299ef
nhrpd: remove useless typedef
...
this typedef was useless. remote it.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2021-04-13 08:58:54 +02:00
Philippe Guibert
d603c0774e
nhrp, zebra, lib: enforce usage of zapi_neigh_ip structure
...
zapi_nbr structure is renamed to zapi_neigh_ip.
Initially used to set a neighbor ip entry for gre interfaces, this
structure is used to get events from the zebra layer to nhrp layer.
The ndm state has been added, as it is needed on both sides.
The zebra dplane layer is slightly modified.
Also, to clarify what ZEBRA_NEIGH_ADD/DEL means, a rename is done:
it is called now ZEBRA_NEIGH_IP_ADD/DEL, and it signified that this
zapi interface permits to set link operations by associating ip
addresses to link addresses.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2021-04-13 08:58:49 +02:00
Renato Westphal
b6241291ee
Merge pull request #8389 from idryzhov/route-map-optimization-nb
...
lib: convert route-map optimization to NB
2021-04-13 00:26:20 -03:00
Renato Westphal
0a6a5721c6
Merge pull request #8396 from achernavin22/ospf_fast_hello_show_run
...
ospfd: fix output of dead-interval in show running
2021-04-13 00:14:56 -03:00
David Lamparter
1df904706c
Merge pull request #8288 from qlyoung/readd-space-support-to-find-command
2021-04-13 02:22:46 +02:00
David Lamparter
9c2a14e753
Merge pull request #8100 from qlyoung/remove-sample-conf-files
2021-04-13 02:20:53 +02:00
Renato Westphal
0e8c4c1c36
Merge pull request #8451 from idryzhov/bfdd-fix-cli-show
...
bfdd: fix nb cli show with defaults
2021-04-12 20:26:21 -03:00
Renato Westphal
0da8f4de8d
Merge pull request #8453 from idryzhov/bgpd-fix-transactional-cli
...
bgpd: fix pending commit check
2021-04-12 20:23:26 -03:00
Lou Berger
d7026eff4c
doc: add Ubuntu18.04 and 20.04 container info to building-docker.rst
...
Signed-off-by: Lou Berger <lberger@labn.net>
2021-04-12 17:14:10 -04:00
Lou Berger
7d8a460923
*: add initial .travis.yml
...
Supports centos7 and 8 docker builds
and Ubuntu18.04 and 20.04 build and minimal CI
Signed-off-by: Lou Berger <lberger@labn.net>
2021-04-12 16:56:38 -04:00
Lou Berger
60bad451a5
ubuntu20-ci: create a docker 20.04 container for dev / test / ci
...
Signed-off-by: Lou Berger <lberger@labn.net>
2021-04-12 16:56:38 -04:00
Lou Berger
cd18e08a01
ubuntu18-ci: create a docker 18.04 container for dev / test / ci
...
Signed-off-by: Lou Berger <lberger@labn.net>
2021-04-12 16:56:38 -04:00
Philippe Guibert
850b2b70ac
nhrp: avoid crashing when terminating interface contexts
...
avoid crashing when terminating interface contexts.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2021-04-12 19:23:57 +02:00
Philippe Guibert
f468a45af2
nhrpd: add a zebra api to configure neighbor table per interface
...
neighbor table per interface is being configured per interface, via
zebra api.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2021-04-12 19:23:53 +02:00
Donatas Abraitis
b993aae0d0
doc: Add an option for vtysh to override history file path
...
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2021-04-12 17:33:36 +03:00
Donatas Abraitis
69d4cc70ee
vtysh: Set history file on demand
...
It's sometimes needed to disable logging all FRR commands at all.
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
2021-04-12 17:33:35 +03:00
Igor Ryzhov
ea1a5c00df
bgpd: fix pending commit check
...
Calling nb_cli_pending_commit_check only makes sense after nb_cli_apply_changes.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2021-04-12 16:42:51 +03:00