def bridge_exists(br):
 cmd = 'ovs-vsctl br-exists {0}'.format(br)
 result = __salt__['cmd.run_all'](cmd)
 retcode = result['retcode']
 return _retcode_to_bool(retcode)

def bridge_exists ( br ) : cmd = 'ovs-vsctl br-exists {0}' . format ( br ) result = __salt__ [ 'cmd.run_all' ] ( cmd ) retcode = result [ 'retcode' ] return _retcode_to_bool ( retcode )
tests whether bridge exists as a real or fake bridge .