[ovs-dev] [PATCH v1 1/1] Include bfd_status in ovs-vsctl show for interfaces
Miguel Angel Ajo
majopela at redhat.com
Mon Mar 12 10:31:25 UTC 2018
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 at redhat.com>
Tested-by: Miguel Angel Ajo <majopela at redhat.com>
---
lib/db-ctl-base.h | 2 +-
utilities/ovs-vsctl.c | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/db-ctl-base.h b/lib/db-ctl-base.h
index eb44427..d8c4db2 100644
--- a/lib/db-ctl-base.h
+++ b/lib/db-ctl-base.h
@@ -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;
};
diff --git a/utilities/ovs-vsctl.c b/utilities/ovs-vsctl.c
index 21fa18d..d55f11c 100644
--- a/utilities/ovs-vsctl.c
+++ b/utilities/ovs-vsctl.c
@@ -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}
},
--
1.8.3.1
More information about the dev
mailing list