From: Gurucharan Shetty Date: Wed, 19 Aug 2015 16:21:04 +0000 (-0700) Subject: ovs-vsctl: Add the missing ssl bootstrapping option parsing. X-Git-Tag: v2.5.0~709 X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fovs.git;a=commitdiff_plain;h=6b777e472efab7fa7c5446a5080c4c42eb5dc0d3 ovs-vsctl: Add the missing ssl bootstrapping option parsing. 'man ovs-vsctl' mentions that ovs-vsctl can bootstrap itself by getting the certificate from the server. But the option was never parsed in the code. Signed-off-by: Gurucharan Shetty Acked-by: Ben Pfaff --- diff --git a/utilities/ovs-vsctl.c b/utilities/ovs-vsctl.c index e28634a07..e177060d9 100644 --- a/utilities/ovs-vsctl.c +++ b/utilities/ovs-vsctl.c @@ -201,6 +201,7 @@ parse_options(int argc, char *argv[], struct shash *local_options) OPT_NO_SYSLOG, OPT_NO_WAIT, OPT_DRY_RUN, + OPT_BOOTSTRAP_CA_CERT, OPT_PEER_CA_CERT, OPT_LOCAL, OPT_RETRY, @@ -224,6 +225,7 @@ parse_options(int argc, char *argv[], struct shash *local_options) VLOG_LONG_OPTIONS, TABLE_LONG_OPTIONS, STREAM_SSL_LONG_OPTIONS, + {"bootstrap-ca-cert", required_argument, NULL, OPT_BOOTSTRAP_CA_CERT}, {"peer-ca-cert", required_argument, NULL, OPT_PEER_CA_CERT}, {NULL, 0, NULL, 0}, }; @@ -324,6 +326,10 @@ parse_options(int argc, char *argv[], struct shash *local_options) stream_ssl_set_peer_ca_cert_file(optarg); break; + case OPT_BOOTSTRAP_CA_CERT: + stream_ssl_set_ca_cert_file(optarg, true); + break; + case '?': exit(EXIT_FAILURE);