Donatas Abraitis
7461589c2e
Merge pull request #12672 from donaldsharp/remove_insecure
...
vtysh: Remove shell access code
2023-02-01 22:45:20 +02:00
Donald Sharp
33303f08bf
Merge pull request #12713 from opensourcerouting/fix/json_naming_deprecation
...
*: Drop deprecated incorrect JSON fields with wrong naming
2023-02-01 15:39:18 -05:00
Christian Hopps
b54ec1733b
Merge pull request #12721 from opensourcerouting/format-warnings-redux
...
*: more format string fixing
2023-02-01 11:13:46 -05:00
Donald Sharp
0876b4c1b8
vtysh: Schedule shell access for deprecation
...
Schedule shell access for deprecation and removal in
a years time.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-02-01 10:29:02 -05:00
David Lamparter
ba727609c6
tests: add missing printf attribute
...
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2023-02-01 03:00:22 +01:00
David Lamparter
da63485331
tests: yank asprintfrr duplicate
...
I think this one predates the existence of asprintfrr.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2023-02-01 03:00:22 +01:00
David Lamparter
bd90faea56
lib: fix one more b0rked format string
...
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2023-02-01 03:00:22 +01:00
David Lamparter
e3a7fc5021
bgpd/rfapi: add missing printf attribute
...
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2023-02-01 03:00:22 +01:00
David Lamparter
c695bdbedb
lib: apply more printf
attributes
...
... missed some functions in the earlier commits :(
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2023-02-01 03:00:18 +01:00
David Lamparter
40e98aa8c8
tools: add GotoXref vim script
...
Let's make these unique IDs actually a bit useful.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2023-01-31 23:20:03 +01:00
Donald Sharp
57ba9e9d7c
*: Add -Wswitch-enum to build
...
The -Wswitch-enum will allow the compiler to warn us
when a developer creates a switch over a enum and is
using `default:` when they should be iterating over
every enum
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-01-31 15:15:59 -05:00
Donald Sharp
0678d01a70
tools: Add missing enums to switch statement
...
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-01-31 15:15:59 -05:00
Donald Sharp
1dbeec4d44
qpb: Add missing enum's to switch statement
...
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-01-31 15:15:59 -05:00
Donald Sharp
fdfa6ecfad
pceplib: Add missing enum's to switch statement
...
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-01-31 15:15:59 -05:00
Donald Sharp
01e02202ee
ripngd: Add missing enums to switch statement
...
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-01-31 15:15:59 -05:00
Donald Sharp
ec378ba08d
ripd: Add missin enum's to switch statement
...
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-01-31 15:15:59 -05:00
Donald Sharp
9d5cc4b5b7
pbrd: Add missing enum's to switch statement
...
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-01-31 15:15:59 -05:00
Donald Sharp
ba5c958716
ospfd: Add missing enum's to switch statement
...
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-01-31 15:15:59 -05:00
Donald Sharp
4a055ac2c9
ldpd: Add missing enum's to switch statement
...
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-01-31 15:15:59 -05:00
Donald Sharp
7c734d8020
staticd: Add missing enum's to switch statement
...
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-01-31 15:15:42 -05:00
Donald Sharp
d0038397b7
nhrpd: Add missing enum's to switch statement
...
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-01-31 15:15:42 -05:00
Donald Sharp
a348c9456f
isisd: Add missing enum's to switch statement
...
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-01-31 15:15:42 -05:00
Donald Sharp
d5dea3506e
pathd: Add missing enum's to switch statement
...
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-01-31 15:15:42 -05:00
Donald Sharp
da21ae9dc7
pimd: Add missing enums to switch statement
...
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-01-31 15:15:42 -05:00
Donald Sharp
bde30e78cb
lib: Add missing enum's to switch statement
...
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-01-31 15:15:42 -05:00
Donald Sharp
a98701f053
zebra: Add missing enums to switch statements
...
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-01-31 15:15:42 -05:00
Donatas Abraitis
aa16204dfb
Merge pull request #12667 from donaldsharp/zebra_rib_fixup
...
tests: zebra_rib remove a sleep
2023-01-31 21:41:30 +02:00
Donald Sharp
125ef88d29
bgpd: ecommunity_token_rt6 is not handled
...
The function ecommunity_str2com_internal appears to want to handle
the ecommunity_token_rt6 enum but skips over it. Commit
9a659715df
tried to add this but I really
don't see how this is going to behave correctly. Add the
ecommunity_token_rt6 case to the switch statement so it is handled
appropriately?
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-01-31 21:04:42 +02:00
Donatas Abraitis
6520483a8f
Merge pull request #12704 from donaldsharp/pim6_route_map
...
pimd: v6 intentionally turned off route-maps. Turn it on.
2023-01-31 20:51:45 +02:00
Donatas Abraitis
f932966b02
tests: Use JSON camelCase naming for tests
...
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-01-31 20:49:44 +02:00
Donald Sharp
ca0f3cfb17
Merge pull request #12686 from opensourcerouting/debian-sync-20230124
...
debian: synchronize/fold back debian changes
2023-01-31 12:37:39 -05:00
Donald Sharp
be9692741b
Merge pull request #12717 from opensourcerouting/topotest_stop_topo_fix
...
tests: Fix wrong tgen.stop_topology() calls which got skipped
2023-01-31 12:30:35 -05:00
Donald Sharp
58cf0823bf
bgpd: Add missing enum's to case statement
...
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-01-31 12:29:08 -05:00
Donald Sharp
ca411e386f
lib: Add missing enum's to northbound.c
...
Some enums were missing for string conversions in northbound.c
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-01-31 12:29:08 -05:00
Donald Sharp
5c26054802
lib: Adding missing string to switch statement in mlag.c
...
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-01-31 12:29:08 -05:00
Donald Sharp
29763bc910
bgpd: ecommunity_token_rt6 is not handled
...
The function ecommunity_str2com_internal appears to want to handle
the ecommunity_token_rt6 enum but skips over it. Commit
9a659715df
tried to add this but I really
don't see how this is going to behave correctly. Add the
ecommunity_token_rt6 case to the switch statement so it is handled
appropriately?
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-01-31 12:29:08 -05:00
Mark Stapp
3b337b7d27
Merge pull request #12687 from opensourcerouting/build-mkdir-p
...
build: consistently mkdir -p output for redirect
2023-01-31 11:28:32 -05:00
Mark Stapp
62f9428044
Merge pull request #12708 from donaldsharp/no_notification
...
zebra: Send nht resolved entry up to concerned protocols in all cases
2023-01-31 10:55:01 -05:00
Martin Winter
82db2cd11f
tests: Fix wrong tgen.stop_topology() calls which got skipped
...
Calls were missing the () and caused the stop_topology() to be skipped
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2023-01-31 16:10:04 +01:00
Donald Sharp
99b93e715c
tests: zebra_rib remove a sleep
...
The test was sometimes failing around the sleep(4) for
waiting for the routes to be installed. Instead of blindly
sleeping let's check to see that the routes are actually
there in zebra and then continue on.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-01-31 09:10:27 -05:00
Donald Sharp
ea768492f1
Merge pull request #12695 from opensourcerouting/format-warnings
...
build: `-Wformat-nonliteral -Wformat-security`
2023-01-31 09:01:32 -05:00
Donald Sharp
d829de9178
Merge pull request #12710 from opensourcerouting/fix/reset_fqdn_capability_on_before_handling_open
...
bgpd: Vanish FQDN capability hostname/domainname before handling new BGP OPEN
2023-01-31 08:46:03 -05:00
Donald Sharp
8c02dce8e9
Merge pull request #12711 from opensourcerouting/topotest-pid-fix
...
tests: Topotests fix for deleting wrong pidfile
2023-01-31 08:45:04 -05:00
Donald Sharp
8ce0e517ed
zebra: Send nht resolved entry up to concerned protocols in all cases
...
There existed the idea, from Volta, that a nexthop group would not have
the same nexthops installed -vs- what FRR actually sent down. The
dplane would notify you.
With the addition of 06525c4f99
the code was put behind a bit of a wall controlled the usage
of it.
The flag ROUTE_ENTRY_USE_FIB_NHG flag was being used
to control which set was being sent up to concerned parties
in nexthop tracking. Put this flag behind the wall and
do not necessarily set it when we receive a data plane
notification about a route being installed or not.
Fixes : #12706
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2023-01-31 07:28:19 -05:00
Donatas Abraitis
2be1c4002b
doc: Define why my pull request was closed
...
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-01-31 13:29:24 +02:00
Donatas Abraitis
19b8d68cf8
doc: Add a documentation about commit conventions
...
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-01-31 13:25:27 +02:00
Donatas Abraitis
f05a0c1dde
tools: Add commit linter
...
Run under Github Actions, and restrict commit messages, structure, with, etc.
Enforce using only our specified prefixes for commit messages. It reduces the
work release managers do when _crafting_ release notes.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-01-31 13:25:25 +02:00
Donatas Abraitis
843427dd69
doc: Write a short introduction about squashing commits
...
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-01-31 10:59:01 +02:00
Donatas Abraitis
1ce23106eb
*: Drop deprecated incorrect JSON fields with wrong naming
...
Deprecation cycle already passed.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2023-01-31 10:18:28 +02:00
Donatas Abraitis
9eca0bdc02
Merge pull request #12709 from donaldsharp/update_withdraw_always_work
...
bgpd: bgp_update and bgp_withdraw never return failures
2023-01-31 08:50:06 +02:00