other-config:disable-in-band is optional but the ovs-vsctl "get" command
by default requires its target to exist. Adding --if-exists allows it
to be missing.
Reported-by: Henrik Amren <henrik@nicira.com>
Bug #5056.
if not xapi_dib:
xapi_dib = ''
if not xapi_dib:
xapi_dib = ''
- ovs_dib = vswitchCfgQuery(['get', 'Bridge', bridge,
+ ovs_dib = vswitchCfgQuery(['--', '--if-exists', 'get', 'Bridge',
+ bridge,
'other_config:disable-in-band']).strip('"')
# Do nothing if setting is invalid, and warn the user.
'other_config:disable-in-band']).strip('"')
# Do nothing if setting is invalid, and warn the user.