def delete_neutron_ports(ports):
 for port in ports:
  device = ip_lib.IPDevice(port)
  if device.exists():
   device.link.delete()
   LOG.info(_LI('Deleting port: %s'), port)

def delete_neutron_ports ( ports ) : for port in ports : device = ip_lib . IPDevice ( port ) if device . exists ( ) : device . link . delete ( ) LOG . info ( _LI ( 'Deleting port: %s' ) , port )
delete non-internal ports created by neutron non-internal ovs ports need to be removed manually .