def delete_bridge_dev(dev):
 if device_exists(dev):
  try:
   utils.execute('ip', 'link', 'set', dev, 'down', run_as_root=True)
   utils.execute('brctl', 'delbr', dev, run_as_root=True)
  except processutils.ProcessExecutionError:
   with excutils.save_and_reraise_exception():
    LOG.error(_LE("Failed removing bridge device: '%s'"), dev)

def delete_bridge_dev ( dev ) : if device_exists ( dev ) : try : utils . execute ( 'ip' , 'link' , 'set' , dev , 'down' , run_as_root = True ) utils . execute ( 'brctl' , 'delbr' , dev , run_as_root = True ) except processutils . ProcessExecutionError : with excutils . save_and_reraise_exception ( ) : LOG . error ( _LE ( "Failed removing bridge device: '%s'" ) , dev )
delete a network bridge .