From nobody Wed Nov 27 15:42:05 2024 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 1546023739882245.51997652198804; Fri, 28 Dec 2018 11:02:19 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CD9BA369CE; Fri, 28 Dec 2018 19:02:17 +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 94CF017D08; Fri, 28 Dec 2018 19:02:17 +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 402613F7D5; Fri, 28 Dec 2018 19:02:17 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id wBSJ1uhK013089 for ; Fri, 28 Dec 2018 14:01:56 -0500 Received: by smtp.corp.redhat.com (Postfix) id 5A52117C39; Fri, 28 Dec 2018 19:01:56 +0000 (UTC) Received: from mx1.redhat.com (ext-mx08.extmail.prod.ext.phx2.redhat.com [10.5.110.32]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 500555DD6B for ; Fri, 28 Dec 2018 19:01:54 +0000 (UTC) Received: from mail-qt1-f196.google.com (mail-qt1-f196.google.com [209.85.160.196]) (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 CBFC1C0587EA for ; Fri, 28 Dec 2018 19:01:52 +0000 (UTC) Received: by mail-qt1-f196.google.com with SMTP id k12so24215229qtf.7 for ; Fri, 28 Dec 2018 11:01:52 -0800 (PST) Received: from localhost.localdomain (200-100-184-135.dial-up.telesp.net.br. [200.100.184.135]) by smtp.gmail.com with ESMTPSA id b20sm20713570qkb.17.2018.12.28.11.01.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Dec 2018 11:01:51 -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=HuUL71ld8dNvESEi3aGZKt3c7BK6kDJUwJ38uZoJjb0=; b=PemoWSKxq4MFIahrlE8Fr00rtjiO0gDnfHpqRaFDuFuOKSuR133LuWuITSO67CRQDO Vu9uXnPzcmvKDZe0qZ9n6BoZQBjYdygKdhreHNIm6vELnAzQE9AytonPdydLaQSEAih/ y1fOh/81xcMQ5MyD6J0On6Je5dwbhx3nrFakZdcLvjhyetRabZ6GiOczLREw3dACKw8W pcu3XmlZKsmUwHsVHrRwoKuKlOP+ck/ZxDwroCz8ycSF//o72UVb16ANWZEfcTT0Fufo X6U/waDAI6uxrn4wG2eX+OuHAzDMAOxKbZ+CZ5ORfwcr8BexXhNyvK5ml/rCXxpVqo0F RVXQ== 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=HuUL71ld8dNvESEi3aGZKt3c7BK6kDJUwJ38uZoJjb0=; b=d41w7AxAF+XpfJZGzFkad/8JnHzOI2BOTaJreOKoKhCgYYG/rHks3ucYm7FptRfd3K LNj5vgiU+xf/Zw0Fqeix1Xvay47X2CnS+nVEE8Mkd9QSsXtD/CPIMGqVtHMVLVKaZ4In RFMNHBCudq1VmILCcKtj6KMCdtSi+ttS/iObueHOoISNbGZqsQJAglbJpVZWyGXGyXbk t1YitgaHkCre3ncywGjU+Rgr9+C6RLIacu/5LzM8OpMfecXlQtPxc7vAYIDgNuj2/b0F xgEjAOw4Sf8Rl7JIdo1a6dsy250mySKWkeONmO4MnhNpAY2wFv44SpvQS1vY8CBBj3cG ODhQ== X-Gm-Message-State: AJcUukfRHI3CHfPdS/O4fknI1PRkixnaJ7TPP/oGnLuuKzJsmo2ZaHIZ lgupDFgLVBZ2SHjHFMD1RFvxYV+P X-Google-Smtp-Source: ALg8bN5+8g+9pmaC2d3Wz4XsETsN3yYmszTMoOJo+CRGvu5VxyFJ/GH2fD+Wlu07illsMj1pgW82nQ== X-Received: by 2002:a0c:d033:: with SMTP id u48mr27092658qvg.146.1546023711785; Fri, 28 Dec 2018 11:01:51 -0800 (PST) From: Julio Faracco To: libvir-list@redhat.com Date: Fri, 28 Dec 2018 17:01:38 -0200 Message-Id: <20181228190138.21128-4-jcfaracco@gmail.com> In-Reply-To: <20181228190138.21128-1-jcfaracco@gmail.com> References: <20181228190138.21128-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.32]); Fri, 28 Dec 2018 19:01:53 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Fri, 28 Dec 2018 19:01:53 +0000 (UTC) for IP:'209.85.160.196' DOMAIN:'mail-qt1-f196.google.com' HELO:'mail-qt1-f196.google.com' FROM:'jcfaracco@gmail.com' RCPT:'' X-RedHat-Spam-Score: -0.108 (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_PASS) 209.85.160.196 mail-qt1-f196.google.com 209.85.160.196 mail-qt1-f196.google.com X-Scanned-By: MIMEDefang 2.78 on 10.5.110.32 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 3/3] tests: Include a random network testcase 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.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Fri, 28 Dec 2018 19:02:18 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" This is a test case to test network indexes. NICs must be created considering the sequence of each index no matter where the entry is. They do not be defined in sequence as legacy version suggests. 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..b69cec32d6 --- /dev/null +++ b/tests/lxcconf2xmldata/lxcconf2xml-randomnetwork-v3.config @@ -0,0 +1,21 @@ +lxc.net.20.type =3D macvlan +lxc.net.1.type =3D phys +lxc.net.10.flags =3D up +lxc.net.20.hwaddr =3D 02:00:15:8f:05:c1 +lxc.net.20.flags =3D up +lxc.net.1.link =3D eth0 +lxc.net.1.name =3D eth1 +lxc.net.10.type =3D vlan +lxc.net.1.ipv6.gateway =3D 2003:db8:1:0:214:1234:fe0b:3595 +lxc.net.1.ipv6 =3D 2003:db8:1:0:214:1234:fe0b:3596/64 +lxc.net.20.link =3D eth0 +lxc.net.10.vlan.id =3D 2 +lxc.net.1.ipv4.gateway =3D 192.168.122.1 +lxc.net.10.link =3D eth0 +lxc.net.1.ipv4 =3D 192.168.122.2/24 +lxc.net.10.hwaddr =3D 02:00:15:8f:05:c1 +lxc.net.20.macvlan.mode =3D vepa + +lxc.rootfs =3D /var/lib/lxc/migrate_test/rootfs +lxc.utsname =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..baaceb5455 --- /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