summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_ptm.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-08-16 22:29:08 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-08-16 22:29:08 +0200
commit5efdb8011d47cc1c1e7755ded28e43747f79869b (patch)
treeb009a8d54ba46e7600916e14b4ae2474bfb92624 /zebra/zebra_ptm.c
parentMerge pull request #2848 from donaldsharp/more_init (diff)
downloadfrr-5efdb8011d47cc1c1e7755ded28e43747f79869b.tar.xz
frr-5efdb8011d47cc1c1e7755ded28e43747f79869b.zip
zebra: When using BFD ensure that zebra thinks ptm is disabled
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>
Diffstat (limited to 'zebra/zebra_ptm.c')
-rw-r--r--zebra/zebra_ptm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_ptm.c b/zebra/zebra_ptm.c
index b71234be0..2791dc2ff 100644
--- a/zebra/zebra_ptm.c
+++ b/zebra/zebra_ptm.c
@@ -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__)),