]> git.puffer.fish Git - matthieu/frr.git/commit
staticd: static route config should fail if gw configured as its local ip.
authorrgirada <rgirada@vmware.com>
Fri, 10 May 2019 05:35:48 +0000 (22:35 -0700)
committerrgirada <rgirada@vmware.com>
Sat, 7 Sep 2019 15:11:14 +0000 (08:11 -0700)
commitb1ab2876fa8d02fbb84feafde8e321456409ec1a
tree3f6de0b2e392ddb5d877ce877ceb1b6593de6705
parenta422c0b65082e3fa870d90ce080b10d663f5bf14
staticd: static route config should fail if gw configured as its local ip.

Fix:
Added a check in staticd upon receiving nexthop update from zebra such that
it will fail to resolve the nexthop if the connected address added as nexthop.

But still allowing to add to staticd database and appears in running config.
Throwing an warning massage to user if such misconfig issued.

Signed-off-by: Rajesh Girada <rgirada@vmware.com>
staticd/static_vty.c
staticd/static_zebra.c