summaryrefslogtreecommitdiff
path: root/ovsdb/ovsdb-server.c
diff options
context:
space:
mode:
authorMario Cabrera <mario.cabrera@hpe.com>2016-03-29 11:01:00 -0600
committerBen Pfaff <blp@ovn.org>2016-06-24 17:15:38 -0700
commit7a9d65d294c903ef77191cd143a467a5a1e8d3ac (patch)
tree3f62a2d8d21ae655a15c22e78804d101b4ea3320 /ovsdb/ovsdb-server.c
parentae671c5feb88db395304e452ab47c83b4ac84ee0 (diff)
downloadopenvswitch-7a9d65d294c903ef77191cd143a467a5a1e8d3ac.tar.gz
ovsdb: Add table exclusion functionality to OVSDB replication
A blacklist of tables that will be excluded from replication can be specified by the following option: --sync-exclude-tables=db:table[,db:table]… Where 'table' corresponds to a table name, and 'db' corresponds to the database name where the table resides. Signed-off-by: Mario Cabrera <mario.cabrera@hpe.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'ovsdb/ovsdb-server.c')
-rw-r--r--ovsdb/ovsdb-server.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ovsdb/ovsdb-server.c b/ovsdb/ovsdb-server.c
index 650c164ac..1b9de19c9 100644
--- a/ovsdb/ovsdb-server.c
+++ b/ovsdb/ovsdb-server.c
@@ -1266,6 +1266,7 @@ parse_options(int *argcp, char **argvp[],
OPT_BOOTSTRAP_CA_CERT,
OPT_PEER_CA_CERT,
OPT_SYNC_FROM,
+ OPT_SYNC_EXCLUDE,
VLOG_OPTION_ENUMS,
DAEMON_OPTION_ENUMS
};
@@ -1285,6 +1286,7 @@ parse_options(int *argcp, char **argvp[],
{"certificate", required_argument, NULL, 'c'},
{"ca-cert", required_argument, NULL, 'C'},
{"sync-from", required_argument, NULL, OPT_SYNC_FROM},
+ {"sync-exclude-tables", required_argument, NULL, OPT_SYNC_EXCLUDE},
{NULL, 0, NULL, 0},
};
char *short_options = ovs_cmdl_long_options_to_short_options(long_options);
@@ -1350,6 +1352,10 @@ parse_options(int *argcp, char **argvp[],
connect_to_remote_server = true;
break;
+ case OPT_SYNC_EXCLUDE:
+ set_tables_blacklist(optarg);
+ break;
+
case '?':
exit(EXIT_FAILURE);