Wireless Daemon for Linux
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: iwd@lists.01.org
Subject: Re: [PATCH 1/4] test-runner: introduce network namespaces
Date: Wed, 18 Nov 2020 11:01:34 -0600	[thread overview]
Message-ID: <17532115-dfc1-aa3a-3e7a-1d7c6c4b71e8@gmail.com> (raw)
In-Reply-To: <20201117205304.3542997-1-prestwoj@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1458 bytes --]

Hi James,

On 11/17/20 2:53 PM, James Prestwood wrote:
> Our simulated environment was really only meant to test air-to-air
> communication by using mac80211_hwsim. Protocols like DHCP use IP
> communication which starts to fall apart when using hwsim radios.
> Mainly unicast sockets do not work since there is no underlying
> network infrastructure.
> 
> In order to simulate a more realistic environment network namespaces
> are introduced in this patch. This allows wireless phy's to be added
> to a network namespace and unique IWD instances manage those phys.
> This is done automatically when 'NameSpaces' entries are configured
> in hw.conf:
> 
> [SETUP]
> num_radios=2
> 
> [NameSpaces]
> ns0=rad1,...
> 
> This will create a namespace named ns0, and add rad1 to that
> namespace. rad1 will not appear as a phy in what's being called the
> 'root' namespace (the default namespace).
> 
> As far as a test is concerned you can create a new IWD() class and
> pass the namespace in. This will start a new IWD instance in that
> namespace:
> 
> ns0 = ctx.get_namespace('ns0')
> wd_ns0 = IWD(start_iwd=True, namespace=ns0)
> 
> 'wd_ns0' can now be used to interact with IWD in that namespace, just
> like any other IWD class object.
> ---
>   tools/test-runner | 298 ++++++++++++++++++++++++++++++----------------
>   1 file changed, 196 insertions(+), 102 deletions(-)
> 

All applied, thanks.

Regards,
-Denis

      parent reply	other threads:[~2020-11-18 17:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-17 20:53 [PATCH 1/4] test-runner: introduce network namespaces James Prestwood
2020-11-17 20:53 ` [PATCH 2/4] auto-t: update utilities to use namespaces James Prestwood
2020-11-17 20:53 ` [PATCH 3/4] auto-t: add test_ip_connected to testutil James Prestwood
2020-11-17 20:53 ` [PATCH 4/4] auto-t: add namespaces to testAP James Prestwood
2020-11-18 17:01 ` Denis Kenzior [this message]

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=17532115-dfc1-aa3a-3e7a-1d7c6c4b71e8@gmail.com \
    --to=denkenz@gmail.com \
    --cc=iwd@lists.01.org \
    /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