From nobody Mon Feb 9 01:16:33 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1551750936067892.7976314683982; Mon, 4 Mar 2019 17:55:36 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1C322C0740CE; Tue, 5 Mar 2019 01:55:34 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E64685D77D; Tue, 5 Mar 2019 01:55:33 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id A836C3FB14; Tue, 5 Mar 2019 01:55:33 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x251sqcj021391 for ; Mon, 4 Mar 2019 20:54:52 -0500 Received: by smtp.corp.redhat.com (Postfix) id 4EF865D71A; Tue, 5 Mar 2019 01:54:52 +0000 (UTC) Received: from mx1.redhat.com (ext-mx13.extmail.prod.ext.phx2.redhat.com [10.5.110.42]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 494AD5D6B3 for ; Tue, 5 Mar 2019 01:54:49 +0000 (UTC) Received: from mail-qt1-f175.google.com (mail-qt1-f175.google.com [209.85.160.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EAA08307E040 for ; Tue, 5 Mar 2019 01:54:48 +0000 (UTC) Received: by mail-qt1-f175.google.com with SMTP id a48so7419473qtb.4 for ; Mon, 04 Mar 2019 17:54:48 -0800 (PST) Received: from localhost.localdomain ([177.188.104.249]) by smtp.gmail.com with ESMTPSA id s76sm4810049qki.42.2019.03.04.17.54.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Mar 2019 17:54:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=7oX1n0Mxrmr3C8az55tbCMfx0XXvluUyoUlM18brbJk=; b=bmsu5nlp4lw0tPprrTq4kuuKziloA62NfpBuZxIJuiVhC/DWw4+2YVKxAyTk19XTSA OuzFCNuVECIMdGFUyNGy5Fksy68OC/FHXy384u4y4GTUGpJey+82YLB88w0neeTWZgjU T3yIrVWDr2h0XCE4uQxm4Zic88YCwsz0mejDdswYYx/lcr84lfrp0xuQn7rBZiIt/fF/ 7QimISNxBF2EUcKQxsbL+42CGL3pYjHPXvoPm1WqGVRlQ8ffj6onfpOgpuk4L4kC3IoZ IgAr/aEvW1EjV6o1P/TPyubDdFDShYiDf459ZKjHeFWQpBV0hudiyOfJNWHH8bmv3eea 92QQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7oX1n0Mxrmr3C8az55tbCMfx0XXvluUyoUlM18brbJk=; b=tA08xNFY0KMNrUmZbqeWKHb/TDWI71/Yv59XTdk5c+L8sJUZ8MFiU9NMgYR8bAysR3 j+I8WfSaFKr9sBuR/20AXgVw2Yq00IPo9J1wMhwHRtdFnIr4WFvCGdAj7SHdCMIvages SDA+sPQl4jHprgq0vYmKNPboaLX3fy6vgUc1FzGtuAec7/ME3mHmpFFWpQ+C1xhTZuea jHp4RkCNFFuATsEBpLi65XLW9zq2Q9m3+4Up7FuGDvGYv/HbqUnV13swausTVAqyaCV4 zZJRqnP8KkK4Q7JccdhGS5puX3KTP6/TAyd9F3hde/PvFHEIY8VEMjHZ491bhoeShTvt 3f4w== X-Gm-Message-State: APjAAAUpeuC8hxFM7arkUU6K0mGIsE/bPXRSc4FNSZZ0uBfB/C+juJhc drrEFwrGjDNeisbDlrFrtlZKZxDg X-Google-Smtp-Source: APXvYqxIZfq0DhL3WSWBHwFb3TdUR+VzS7TErxHU1UpYuPTyHMN7nKMihX/6s/jVjIhiVS6t0dD1UQ== X-Received: by 2002:ac8:372b:: with SMTP id o40mr16830335qtb.73.1551750887915; Mon, 04 Mar 2019 17:54:47 -0800 (PST) From: Julio Faracco To: libvir-list@redhat.com Date: Mon, 4 Mar 2019 22:54:32 -0300 Message-Id: <20190305015432.8537-7-jcfaracco@gmail.com> In-Reply-To: <20190305015432.8537-1-jcfaracco@gmail.com> References: <20190305015432.8537-1-jcfaracco@gmail.com> MIME-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Tue, 05 Mar 2019 01:54:49 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Tue, 05 Mar 2019 01:54:49 +0000 (UTC) for IP:'209.85.160.175' DOMAIN:'mail-qt1-f175.google.com' HELO:'mail-qt1-f175.google.com' FROM:'jcfaracco@gmail.com' RCPT:'' X-RedHat-Spam-Score: -0.11 (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_PASS) 209.85.160.175 mail-qt1-f175.google.com 209.85.160.175 mail-qt1-f175.google.com X-Scanned-By: MIMEDefang 2.84 on 10.5.110.42 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH v2 6/6] tests: Introduce random network settings to test indexes. X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Tue, 05 Mar 2019 01:55:34 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" This is the same test of miscnetwork. The XML output needs to be the same. It contains random networks entries separated by indexes and it needs to produce the order XML definition. Signed-off-by: Julio Faracco --- .../lxcconf2xml-randomnetwork-v3.config | 21 +++++++++ .../lxcconf2xml-randomnetwork.xml | 45 +++++++++++++++++++ tests/lxcconf2xmltest.c | 1 + 3 files changed, 67 insertions(+) create mode 100644 tests/lxcconf2xmldata/lxcconf2xml-randomnetwork-v3.conf= ig create mode 100644 tests/lxcconf2xmldata/lxcconf2xml-randomnetwork.xml diff --git a/tests/lxcconf2xmldata/lxcconf2xml-randomnetwork-v3.config b/te= sts/lxcconf2xmldata/lxcconf2xml-randomnetwork-v3.config new file mode 100644 index 0000000000..8d898fa6e0 --- /dev/null +++ b/tests/lxcconf2xmldata/lxcconf2xml-randomnetwork-v3.config @@ -0,0 +1,21 @@ +lxc.net.0.type =3D phys +lxc.net.1.flags =3D up +lxc.net.0.link =3D eth0 +lxc.net.2.link =3D eth0 +lxc.net.1.hwaddr =3D 02:00:15:8f:05:c1 +lxc.net.1.link =3D eth0 +lxc.net.0.name =3D eth1 +lxc.net.2.macvlan.mode =3D vepa +lxc.net.2.type =3D macvlan +lxc.net.1.type =3D vlan +lxc.net.0.ipv4 =3D 192.168.122.2/24 +lxc.net.0.ipv4.gateway =3D 192.168.122.1 +lxc.net.1.vlan.id =3D 2 +lxc.net.0.ipv6 =3D 2003:db8:1:0:214:1234:fe0b:3596/64 +lxc.net.2.flags =3D up +lxc.net.2.hwaddr =3D 02:00:15:8f:05:c1 +lxc.net.0.ipv6.gateway =3D 2003:db8:1:0:214:1234:fe0b:3595 + +lxc.rootfs.path =3D /var/lib/lxc/migrate_test/rootfs +lxc.uts.name =3D migrate_test +lxc.autodev=3D1 diff --git a/tests/lxcconf2xmldata/lxcconf2xml-randomnetwork.xml b/tests/lx= cconf2xmldata/lxcconf2xml-randomnetwork.xml new file mode 100644 index 0000000000..63189cfaec --- /dev/null +++ b/tests/lxcconf2xmldata/lxcconf2xml-randomnetwork.xml @@ -0,0 +1,45 @@ + + migrate_test + c7a5fdbd-edaf-9455-926a-d65c16db1809 + 65536 + 65536 + 1 + + exe + /sbin/init + + + + + + + destroy + restart + destroy + + /usr/libexec/libvirt_lxc + + + + + + + + + + + + eth0 + + + + + + + + + eth0.2 + + + + diff --git a/tests/lxcconf2xmltest.c b/tests/lxcconf2xmltest.c index 2a277042ce..78927d29b1 100644 --- a/tests/lxcconf2xmltest.c +++ b/tests/lxcconf2xmltest.c @@ -163,6 +163,7 @@ mymain(void) DO_TEST3("macvlannetwork", false); DO_TEST3("vlannetwork", false); DO_TEST3("miscnetwork", false); + DO_TEST3("randomnetwork", false); DO_TEST3("idmap", false); DO_TEST3("memtune", false); DO_TEST3("cputune", false); --=20 2.19.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list