]> git.puffer.fish Git - matthieu/frr.git/commit
pbrd: properly handle duplicate set vrf XX configs
authorStephen Worley <sworley@cumulusnetworks.com>
Thu, 19 Mar 2020 16:32:13 +0000 (12:32 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Thu, 19 Mar 2020 16:32:13 +0000 (12:32 -0400)
commit9bf1b0f74a27cd6c697c7daf4fb31e5b55c48ef7
tree7656c650f9faa42dffa49e18f1c7a7db033989e2
parent795fbef4dfe44e592281aa7217dc9c89e0bb143f
pbrd: properly handle duplicate set vrf XX configs

Properly handle the case where we are sent the same `set vrf`
configs for a pbr map repeatedly. If we are sent the same
config, we return successfully without doing anyting.

If the config is different and its not a [no], then return failure
as we did before since we don't support atomic replace yet.

Before, we would fail anytime even if the config sent was the same
as is already there. This would cause frr-reload to mark as a
failure when it tried to re-apply the same config.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
pbrd/pbr_vty.c