def serial_listen_ports(migrate_data):
 ports = []
 if migrate_data.obj_attr_is_set('serial_listen_ports'):
  ports = migrate_data.serial_listen_ports
 return ports

def serial_listen_ports ( migrate_data ) : ports = [ ] if migrate_data . obj_attr_is_set ( 'serial_listen_ports' ) : ports = migrate_data . serial_listen_ports return ports
returns ports serial from a libvirtlivemigratedata .