From: ebiederm@xmission•com (Eric W. Biederman)
To: David Shwatrz <dshwatrz@gmail•com>
Cc: netdev@vger•kernel.org
Subject: Re: Deleting a network namespace
Date: Thu, 28 Mar 2013 04:05:52 -0700 [thread overview]
Message-ID: <87y5d7lr73.fsf@xmission.com> (raw)
In-Reply-To: <CAJJAcodGG6nmRNcF_rC+AUUpCp1MWjU3faGLfRTm9FNc6LT_Yw@mail.gmail.com> (David Shwatrz's message of "Thu, 28 Mar 2013 12:43:27 +0200")
David Shwatrz <dshwatrz@gmail•com> writes:
> Hello,
> When assigning a network interface to a network namespace and
> afterwards deleting the namespace, we will not see the network
> interface in any other namespace (including the default namespace) anymore:
>
> ip netns add ns1
> ip link set eth0 netns ns1
> ip netns del ns1
>
> This means that in fact we cannot use this interface again (only after
> rebooting)
> Am I right on this ?
Interfaces that represent physical hardware are moved to init_net.
Interfaces that are purely software constructs are deleted.
> Is moving an interface back to the default (init) namespace,
> when deleting the namespace which contains it, can be considered?
If you aren't seeing that your interface is either a purely software
construct like the veth or dummy interfaces or something still has a
reference to your network namespace.
Eric
next prev parent reply other threads:[~2013-03-28 11:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-28 10:43 Deleting a network namespace David Shwatrz
2013-03-28 11:05 ` Eric W. Biederman [this message]
2013-03-28 13:41 ` David Shwatrz
2013-03-28 14:00 ` Eric W. Biederman
2013-03-28 14:12 ` David Shwatrz
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=87y5d7lr73.fsf@xmission.com \
--to=ebiederm@xmission$(echo .)com \
--cc=dshwatrz@gmail$(echo .)com \
--cc=netdev@vger$(echo .)kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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