def delete_quantum_ports(ports, root_helper):
 for port in ports:
  if ip_lib.device_exists(port):
   device = ip_lib.IPDevice(port, root_helper)
   device.link.delete()
   LOG.info(_('Delete %s'), port)

def delete_quantum_ports ( ports , root_helper ) : for port in ports : if ip_lib . device_exists ( port ) : device = ip_lib . IPDevice ( port , root_helper ) device . link . delete ( ) LOG . info ( _ ( 'Delete %s' ) , port )
delete non-internal ports created by quantum non-internal ovs ports need to be removed manually .