From nobody Mon Feb 9 00:53:52 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 1551743797164243.54415111655226; Mon, 4 Mar 2019 15:56:37 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 02575356DA; Mon, 4 Mar 2019 23:56:35 +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 CAC8517119; Mon, 4 Mar 2019 23:56:34 +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 8A2743FB14; Mon, 4 Mar 2019 23:56:34 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x24NsPv8002693 for ; Mon, 4 Mar 2019 18:54:25 -0500 Received: by smtp.corp.redhat.com (Postfix) id 42F011001DDE; Mon, 4 Mar 2019 23:54:25 +0000 (UTC) Received: from mx1.redhat.com (ext-mx12.extmail.prod.ext.phx2.redhat.com [10.5.110.41]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2E9821001DCD for ; Mon, 4 Mar 2019 23:54:22 +0000 (UTC) Received: from mail-qt1-f171.google.com (mail-qt1-f171.google.com [209.85.160.171]) (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 3B5B73091786 for ; Mon, 4 Mar 2019 23:54:21 +0000 (UTC) Received: by mail-qt1-f171.google.com with SMTP id j36so7163782qta.7 for ; Mon, 04 Mar 2019 15:54:21 -0800 (PST) Received: from localhost.localdomain ([177.188.104.249]) by smtp.gmail.com with ESMTPSA id d32sm4670568qtc.88.2019.03.04.15.54.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Mar 2019 15:54:19 -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=MSttmlTNIkyw2pLIJxerAHnqJTOYEjgUGhM0UNfcPMo+RzwGu4PoJMxdM56GAqjiFw RMwOwkMmJgGSDyMfakoREBlU7nBqgEuvSrpNGQX7uAQ8AYKSGUbGTwrGQDoPHUudjP73 iGEWLqZlbgB5ph2cMC3+wC1kVg0J0PKmdy9uMvVKH+Mw8NjJPzpDA2kNE8aOV8ejlqEl 1ZtzuQE6MyTtYo1iOYiPeqjd4C5dZALTHJhOfEEefsufKwOWtBDwz23fUYRS9twjbzBZ 8y54NY8gNY8e8jYMcTxD//D6Zcz4aTlaZuvDhfeVmkcmncCnF49eQg4GCbl0MIFq4cEY XRUg== 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=p5MPn3ceducZANbqSkBNFkvjPJ1S9bzLEzKABKTfITyQAo8JZRgSMFgnf1bExv7635 GQX1Bpov5EYaEa+JCsYFzdIM468lOWXOn3Z0fMPTc73sWr9bMdGjsJorIITeKCcFEBXS 3Dywq+oB6onI/kM14g5PqO9bQvIibQfWJ2OQV59st61SOkHm2VDTSV3fiGLFzSMKLnkl puCibkm7hhh03gIuXlEFvWFGOuzEWkeKfRckQfcZeXqKhOFU8Yvu4oRFpzTLTg2tDBu+ pxqT4GL3lmE0+CLRKwMpn0v6xHV/OTbPPLtQRKoIO026l+U4El8FU7RusNdXy6o4brv+ vPXw== X-Gm-Message-State: APjAAAVgJ/k5IYdZuE+YT33bYpAoXeUNJRsiPry7NzsBtsZXipC16P/k IFBtIOVH6FB7Hq9GrMCJ8dCBLB+O X-Google-Smtp-Source: APXvYqzvlLLg9De2l+g/0tsnp7N7vRqhBnXqw8XZOC8n6NjQVS94u1aBFp1+Yvu9+71VYzZUswmVIQ== X-Received: by 2002:a0c:9acc:: with SMTP id k12mr16907293qvf.211.1551743660187; Mon, 04 Mar 2019 15:54:20 -0800 (PST) From: Julio Faracco To: libvir-list@redhat.com Date: Mon, 4 Mar 2019 20:54:04 -0300 Message-Id: <20190304235404.16320-7-jcfaracco@gmail.com> In-Reply-To: <20190304235404.16320-1-jcfaracco@gmail.com> References: <20190304235404.16320-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.41]); Mon, 04 Mar 2019 23:54:21 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Mon, 04 Mar 2019 23:54:21 +0000 (UTC) for IP:'209.85.160.171' DOMAIN:'mail-qt1-f171.google.com' HELO:'mail-qt1-f171.google.com' FROM:'jcfaracco@gmail.com' RCPT:'' X-RedHat-Spam-Score: -0.111 (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_PASS) 209.85.160.171 mail-qt1-f171.google.com 209.85.160.171 mail-qt1-f171.google.com X-Scanned-By: MIMEDefang 2.84 on 10.5.110.41 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 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.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Mon, 04 Mar 2019 23:56:35 +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