All of lore.kernel.org
 help / color / mirror / Atom feed
* Deleting a network namespace
@ 2013-03-28 10:43 David Shwatrz
  2013-03-28 11:05 ` Eric W. Biederman
  0 siblings, 1 reply; 5+ messages in thread
From: David Shwatrz @ 2013-03-28 10:43 UTC (permalink / raw)
  To: netdev; +Cc: Eric W. Biederman

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 ?
Is moving an interface back to the default (init) namespace,
when deleting the namespace which contains it, can be considered?

(AFAIK, we don't need to check that this interface is in any other namespace,
because by definition, a network interface belongs only to one namespace)

DS

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-03-28 14:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-28 10:43 Deleting a network namespace David Shwatrz
2013-03-28 11:05 ` Eric W. Biederman
2013-03-28 13:41   ` David Shwatrz
2013-03-28 14:00     ` Eric W. Biederman
2013-03-28 14:12       ` David Shwatrz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.