]> git.puffer.fish Git - mirror/frr.git/commit
pbrd: pbr route maps get addr family of nhgs 10508/head
authorStephen Worley <sworley@nvidia.com>
Thu, 27 Jan 2022 17:41:49 +0000 (12:41 -0500)
committermergify-bot <noreply@mergify.com>
Sun, 6 Feb 2022 21:18:54 +0000 (21:18 +0000)
commit72bd412a8492ecde2f29011e7ab3932933c24491
tree8ee628989e816ae06769e4aecdab2b2ae0ae28db
parent19e928746ce8fdfbe20d6638efd742ce4744e99c
pbrd: pbr route maps get addr family of nhgs

When adding a nhg to a route map, make sure to specify the `family`
of the rm by looking at the contents of the nhg. Installation in the
kernel (for DSCP rules in particular) relies on this being specified in
the netlink message.

Signed-off-by: Wesley Coakley <wcoakley@nvidia.com>
Signed-off-by: Stephen Worley <sworley@nvidia.com>
(cherry picked from commit 9a7ea213c072a24aa2059e04cb51502a3e956705)
pbrd/pbr_map.c
pbrd/pbr_nht.c
pbrd/pbr_nht.h
pbrd/pbr_vty.c