]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: When using BFD ensure that zebra thinks ptm is disabled 2857/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 16 Aug 2018 20:29:08 +0000 (16:29 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 16 Aug 2018 20:29:08 +0000 (16:29 -0400)
In order for connected routes to be installed the if_is_operative
function is called.  This function checks the status of ptm
and decides to use ptm enabled/disabled on the interface.
The call to zebra_ptm_get_enable was returning true and causing
the interface subsystem to do the wrong thing.  Modify the
internal bfd case to when checking for ptm enabled to say it
is not enabled.

Tested-by: Mark Stapp <mjs@voltanet.io>
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/zebra_ptm.c

index b71234be04c2c06dabb241bc5b85662e1345ae6a..2791dc2ffd47c850030a528b0652e70e73f5a0b2 100644 (file)
@@ -1559,7 +1559,7 @@ void zebra_ptm_if_init(struct zebra_if *zifp __attribute__((__unused__)))
 
 int zebra_ptm_get_enable_state(void)
 {
-       return 1;
+       return 0;
 }
 
 void zebra_ptm_show_status(struct vty *vty __attribute__((__unused__)),