]> git.proxmox.com Git - mirror_ovs.git/commitdiff
ovs-vsctl: Include bfd_status in "show" output for interfaces
authorMiguel Angel Ajo <majopela@redhat.com>
Mon, 12 Mar 2018 10:31:25 +0000 (10:31 +0000)
committerBen Pfaff <blp@ovn.org>
Wed, 14 Mar 2018 22:33:05 +0000 (15:33 -0700)
Since OVS 2.8 OVN provides L3HA capabilities via BFD monitoring,
but checking the status of BFD is not obvious, and we provide
a simple way to visualize the status with this simple patch.

Signed-off-by: Miguel Angel Ajo <majopela@redhat.com>
Tested-by: Miguel Angel Ajo <majopela@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/db-ctl-base.h
utilities/ovs-vsctl.c

index eb444270535b9d05745fe366c26a14efb278a934..d8c4db2c6b3cf581c5df887bd3f261a73a9506b5 100644 (file)
@@ -197,7 +197,7 @@ struct weak_ref_table {
 struct cmd_show_table {
     const struct ovsdb_idl_table_class *table;
     const struct ovsdb_idl_column *name_column;
-    const struct ovsdb_idl_column *columns[3]; /* Seems like a good number. */
+    const struct ovsdb_idl_column *columns[4]; /* Seems like a good number. */
     const struct weak_ref_table wref_table;
 };
 
index 21fa18ddb6b2937befca0e9846eb094f10e2fbb8..d55f11c4afee2112f0206afb177e499622154ed6 100644 (file)
@@ -1018,7 +1018,8 @@ static struct cmd_show_table cmd_show_tables[] = {
      &ovsrec_interface_col_name,
      {&ovsrec_interface_col_type,
       &ovsrec_interface_col_options,
-      &ovsrec_interface_col_error},
+      &ovsrec_interface_col_error,
+      &ovsrec_interface_col_bfd_status},
      {NULL, NULL, NULL}
     },