]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd/ospf(6)d/pimd: don't show BFD timers
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Wed, 27 Jun 2018 16:46:08 +0000 (13:46 -0300)
committerRafael Zalamena <rzalamena@opensourcerouting.org>
Wed, 8 Aug 2018 21:25:04 +0000 (18:25 -0300)
When BFD timers are configured, don't show it anymore in the daemon
side. This will help us migrate the timers command from daemons to
`bfdd`.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
bgpd/bgp_bfd.c
ospf6d/ospf6_bfd.c
ospfd/ospf_bfd.c
pimd/pim_bfd.c

index c7d624987062486b0c5a16f388a8158f26d8d65f..69ba2b2c11dd2b6a427375da69ddc3f1e3971cfb 100644 (file)
@@ -509,9 +509,13 @@ void bgp_bfd_peer_config_write(struct vty *vty, struct peer *peer, char *addr)
        bfd_info = (struct bfd_info *)peer->bfd_info;
 
        if (CHECK_FLAG(bfd_info->flags, BFD_FLAG_PARAM_CFG))
+#if HAVE_BFDD > 0
+               vty_out(vty, " neighbor %s bfd\n", addr);
+#else
                vty_out(vty, " neighbor %s bfd %d %d %d\n", addr,
                        bfd_info->detect_mult, bfd_info->required_min_rx,
                        bfd_info->desired_min_tx);
+#endif /* HAVE_BFDD */
 
        if (bfd_info->type != BFD_TYPE_NOT_CONFIGURED)
                vty_out(vty, " neighbor %s bfd %s\n", addr,
index 7955121365cedf9d5594a28e9f75a94967377b33..308229c68f2914b034bb1c68d87673bbf68a2c60 100644 (file)
@@ -276,11 +276,14 @@ void ospf6_bfd_info_nbr_create(struct ospf6_interface *oi,
  */
 void ospf6_bfd_write_config(struct vty *vty, struct ospf6_interface *oi)
 {
+#if HAVE_BFDD == 0
        struct bfd_info *bfd_info;
+#endif /* ! HAVE_BFDD */
 
        if (!oi->bfd_info)
                return;
 
+#if HAVE_BFDD == 0
        bfd_info = (struct bfd_info *)oi->bfd_info;
 
        if (CHECK_FLAG(bfd_info->flags, BFD_FLAG_PARAM_CFG))
@@ -288,6 +291,7 @@ void ospf6_bfd_write_config(struct vty *vty, struct ospf6_interface *oi)
                        bfd_info->detect_mult, bfd_info->required_min_rx,
                        bfd_info->desired_min_tx);
        else
+#endif /* ! HAVE_BFDD */
                vty_out(vty, " ipv6 ospf6 bfd\n");
 }
 
index 0f7fb50778dfad543742a72dbf591011347bca93..dcc6c51d206b4a90c536d4fab6a706b80af11620 100644 (file)
@@ -290,17 +290,21 @@ void ospf_bfd_info_nbr_create(struct ospf_interface *oi,
 void ospf_bfd_write_config(struct vty *vty, struct ospf_if_params *params)
 
 {
+#if HAVE_BFDD == 0
        struct bfd_info *bfd_info;
+#endif /* ! HAVE_BFDD */
 
        if (!params->bfd_info)
                return;
 
+#if HAVE_BFDD == 0
        bfd_info = (struct bfd_info *)params->bfd_info;
 
        if (CHECK_FLAG(bfd_info->flags, BFD_FLAG_PARAM_CFG))
                vty_out(vty, " ip ospf bfd %d %d %d\n", bfd_info->detect_mult,
                        bfd_info->required_min_rx, bfd_info->desired_min_tx);
        else
+#endif /* ! HAVE_BFDD */
                vty_out(vty, " ip ospf bfd\n");
 }
 
index 4a3cf715dabb27c6f9d4e2275fdfac51fe85e7f1..f7a217b514f492d1bfb1aee0ee1b9877aed88313 100644 (file)
@@ -51,10 +51,12 @@ void pim_bfd_write_config(struct vty *vty, struct interface *ifp)
        if (!bfd_info)
                return;
 
+#if HAVE_BFDD == 0
        if (CHECK_FLAG(bfd_info->flags, BFD_FLAG_PARAM_CFG))
                vty_out(vty, " ip pim bfd %d %d %d\n", bfd_info->detect_mult,
                        bfd_info->required_min_rx, bfd_info->desired_min_tx);
        else
+#endif /* ! HAVE_BFDD */
                vty_out(vty, " ip pim bfd\n");
 }