From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: Eduardo Habkost <ehabkost@redhat.com>, qemu-devel@nongnu.org
Cc: "Fam Zheng" <fam@euphon.net>,
"Peter Maydell" <peter.maydell@linaro.org>,
"Thomas Huth" <thuth@redhat.com>,
"Daniel P. Berrangé" <berrange@redhat.com>,
"Kamil Rytarowski" <kamil@netbsd.org>,
"Gerd Hoffmann" <kraxel@redhat.com>,
"Alex Bennée" <alex.bennee@linaro.org>
Subject: Re: [PATCH v5 2/3] tests/vm: Let subclasses disable IPv6
Date: Fri, 18 Oct 2019 21:06:17 +0200 [thread overview]
Message-ID: <c340e3bd-4ddf-dd21-e36d-5f724fd6f355@redhat.com> (raw)
In-Reply-To: <20191018181705.17957-3-ehabkost@redhat.com>
On 10/18/19 8:17 PM, Eduardo Habkost wrote:
> The mechanism will be used to work around issues related to IPv6
> on the netbsd image builder.
>
> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
> ---
> tests/vm/basevm.py | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/tests/vm/basevm.py b/tests/vm/basevm.py
> index b5d1479bee..2929de23aa 100755
> --- a/tests/vm/basevm.py
> +++ b/tests/vm/basevm.py
> @@ -57,6 +57,8 @@ class BaseVM(object):
> arch = "#arch"
> # command to halt the guest, can be overridden by subclasses
> poweroff = "poweroff"
> + # enable IPv6 networking
> + ipv6 = True
> def __init__(self, debug=False, vcpus=None):
> self._guest = None
> self._tmpdir = os.path.realpath(tempfile.mkdtemp(prefix="vm-test-",
> @@ -81,7 +83,8 @@ class BaseVM(object):
> self._args = [ \
> "-nodefaults", "-m", "4G",
> "-cpu", "max",
> - "-netdev", "user,id=vnet,hostfwd=:127.0.0.1:0-:22",
> + "-netdev", "user,id=vnet,hostfwd=:127.0.0.1:0-:22" +
> + (",ipv6=no" if not self.ipv6 else ""),
> "-device", "virtio-net-pci,netdev=vnet",
> "-vnc", "127.0.0.1:0,to=20"]
> if vcpus and vcpus > 1:
>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
next prev parent reply other threads:[~2019-10-18 19:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-18 18:17 [PATCH v5 0/3] tests/vm: netbsd autoinstall, with IPv6 disabled Eduardo Habkost
2019-10-18 18:17 ` [PATCH v5 1/3] tests/vm: netbsd autoinstall, using serial console Eduardo Habkost
2019-10-19 8:21 ` Thomas Huth
2019-10-29 12:06 ` Alex Bennée
2019-10-18 18:17 ` [PATCH v5 2/3] tests/vm: Let subclasses disable IPv6 Eduardo Habkost
2019-10-18 19:06 ` Philippe Mathieu-Daudé [this message]
2019-10-21 8:27 ` Thomas Huth
2019-10-18 18:17 ` [PATCH v5 3/3] tests/vm/netbsd: Disable IPv6 Eduardo Habkost
2019-10-21 8:28 ` Thomas Huth
2019-10-21 13:47 ` [PATCH v5 0/3] tests/vm: netbsd autoinstall, with IPv6 disabled Alex Bennée
2019-10-21 15:21 ` Kamil Rytarowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c340e3bd-4ddf-dd21-e36d-5f724fd6f355@redhat.com \
--to=philmd@redhat.com \
--cc=alex.bennee@linaro.org \
--cc=berrange@redhat.com \
--cc=ehabkost@redhat.com \
--cc=fam@euphon.net \
--cc=kamil@netbsd.org \
--cc=kraxel@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).