---
 ovn/controller/encaps.c         | 5 +++++
 ovn/controller/ovn-controller.c | 1 +
 2 files changed, 6 insertions(+)

diff --git a/ovn/controller/encaps.c b/ovn/controller/encaps.c
index dfb11c0..c8744a0 100644
--- a/ovn/controller/encaps.c
+++ b/ovn/controller/encaps.c
@@ -150,6 +150,7 @@ tunnel_add(struct tunnel_ctx *tc, const char 
*new_chassis_id,
 
     /* No such port, so add one. */
     struct smap options = SMAP_INITIALIZER(&options);
+    struct smap bfd = SMAP_INITIALIZER(&bfd);
     struct ovsrec_port *port, **ports;
     struct ovsrec_interface *iface;
     char *port_name;
@@ -168,7 +169,11 @@ tunnel_add(struct tunnel_ctx *tc, const char 
*new_chassis_id,
     smap_add(&options, "remote_ip", encap->ip);
     smap_add(&options, "key", "flow");
     ovsrec_interface_set_options(iface, &options);
+    smap_add(&bfd, "enable", "true");
+    ovsrec_interface_set_bfd(iface, &bfd);
+
     smap_destroy(&options);
+    smap_destroy(&bfd);
 
     port = ovsrec_port_insert(tc->ovs_txn);
     ovsrec_port_set_name(port, port_name);
diff --git a/ovn/controller/ovn-controller.c b/ovn/controller/ovn-controller.c
index 3f29b25..5eaf18c 100644
--- a/ovn/controller/ovn-controller.c
+++ b/ovn/controller/ovn-controller.c
@@ -237,6 +237,7 @@ main(int argc, char *argv[])
     ovsdb_idl_add_column(ovs_idl_loop.idl, &ovsrec_interface_col_name);
     ovsdb_idl_add_column(ovs_idl_loop.idl, &ovsrec_interface_col_type);
     ovsdb_idl_add_column(ovs_idl_loop.idl, &ovsrec_interface_col_options);
+    ovsdb_idl_add_column(ovs_idl_loop.idl, &ovsrec_interface_col_bfd);
     ovsdb_idl_add_table(ovs_idl_loop.idl, &ovsrec_table_port);
     ovsdb_idl_add_column(ovs_idl_loop.idl, &ovsrec_port_col_name);
     ovsdb_idl_add_column(ovs_idl_loop.idl, &ovsrec_port_col_interfaces);
-- 
1.9.1

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to