]> git.puffer.fish Git - matthieu/frr.git/commit
pbrd: don't silently fail on atomic match IP change attempts
authorStephen Worley <sworley@cumulusnetworks.com>
Mon, 25 Nov 2019 19:45:02 +0000 (14:45 -0500)
committerStephen Worley <sworley@cumulusnetworks.com>
Tue, 3 Dec 2019 20:56:00 +0000 (15:56 -0500)
commit0dcff6f46397c4d7d5acbf9b71f63d2528c60300
tree04b5a6bf1b469a6656679bbafd05a0d8be71174d
parentfde8af8d0b5634883393922079c3a688dcec9dd5
pbrd: don't silently fail on atomic match IP change attempts

Currently pbrd does not support the abilitity to make atomic
changes to a config.

ex)
`match src-ip 1.1.1.1/32`
`match src-ip 1.1.1.0/24`

We would overwrite the first one but never actually install it.

In the `set nexthop commands` we explicitly fail if there is
already a `set nexthop` config present. This patch extends the
match src/dest-ip configs to do the same.

In the future we should make all these commands atomic but for
now its better to not fail silently at the very least.

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