diff --git a/ovn/ovn-nbctl.8.xml b/ovn/ovn-nbctl.8.xml
index 710065236..0e8922980 100644
--- a/ovn/ovn-nbctl.8.xml
+++ b/ovn/ovn-nbctl.8.xml
@@ -182,20 +182,36 @@
Options
- -d
database | --db
database
- -h
| --help
- -o
| --options
- -V
| --version
+
+
+ -d
database
+ --db
database
+ -
+ The OVSDB database remote to contact. If the OVN_NB_DB
+ environment variable is set, its value is used as the default.
+ Otherwise, the default is
unix:@RUNDIR@/db.sock
, but this
+ default is unlikely to be useful outside of single-machine OVN test
+ environments.
+
+
+ -h
| --help
+ -o
| --options
+ -V
| --version
+
Logging options
- -v
spec, --verbose=
spec
- -v
, --verbose
- --log-file
[=
file]
- --syslog-target=
host:
port
+
+ -v
spec, --verbose=
spec
+ -v
, --verbose
+ --log-file
[=
file]
+ --syslog-target=
host:
port
+
PKI configuration (required to use SSL)
- -p
, --private-key=
file file with private key
- -c
, --certificate=
file file with certificate for private key
- -C
, --ca-cert=
file file with peer CA certificate
+
+ -p
, --private-key=
file file with private key
+ -c
, --certificate=
file file with certificate for private key
+ -C
, --ca-cert=
file file with peer CA certificate
+
diff --git a/ovn/ovn-nbctl.c b/ovn/ovn-nbctl.c
index 4dc77c0e0..a8e5d088d 100644
--- a/ovn/ovn-nbctl.c
+++ b/ovn/ovn-nbctl.c
@@ -771,7 +771,10 @@ default_db(void)
{
static char *def;
if (!def) {
- def = xasprintf("unix:%s/db.sock", ovs_rundir());
+ def = getenv("OVN_NB_DB");
+ if (!def) {
+ def = xasprintf("unix:%s/db.sock", ovs_rundir());
+ }
}
return def;
}
diff --git a/python/build/nroff.py b/python/build/nroff.py
index 55dc878e7..050518c62 100644
--- a/python/build/nroff.py
+++ b/python/build/nroff.py
@@ -65,7 +65,7 @@ def inlineXmlToNroff(node, font, to_upper=False):
else:
return textToNroff(node.data, font)
elif node.nodeType == node.ELEMENT_NODE:
- if node.tagName in ['code', 'em', 'option']:
+ if node.tagName in ['code', 'em', 'option', 'env']:
s = r'\fB'
for child in node.childNodes:
s += inlineXmlToNroff(child, r'\fB')