Skip to content

ip netns: Run over all netns

Vadim Kochan netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyIn review
  2. v13 patches 15 repliesSuperseded

Changes in v2 from the cover letter

Use '-all' option instead of netns name 'all'.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3lib: Exec func on each netnsinclude/namespace.h include/utils.h lib/namespace.c +1 more+60 -00 replies
2/3ip netns: Allow exec on each netnsinclude/utils.h ip/ip.c ip/ipnetns.c +2 more+67 -340 replies
3/3ip netns: Delete all netnsip/ipnetns.c man/man8/ip-netns.8+26 -120 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH iproute2 v2 0/3] ip netns: Run over all netns

From: Vadim Kochan <[email protected]>

Allow 'ip netns del' and 'ip netns exec' run over each network namespace names.

'ip netns exec' executes command forcely on eacn nsname.

Added new '-all' 'ip' option to run over each netns, it can be used for other utils as generic option.

v2:
Use '-all' option instead of netns name 'all'.

Vadim Kochan (3):
lib: Exec func on each netns
ip netns: Allow exec on each netns
ip netns: Delete all netns

 include/namespace.h |  6 ++++
 include/utils.h     |  5 +++
 ip/ip.c             |  5 ++-
 ip/ipnetns.c        | 98 ++++++++++++++++++++++++++++++++---------------------
 lib/namespace.c     | 22 ++++++++++++
 lib/utils.c         | 28 +++++++++++++++
 man/man8/ip-netns.8 | 28 ++++++++++++---
 man/man8/ip.8       |  7 +++-
 8 files changed, 153 insertions(+), 46 deletions(-)
Signature · 1 line
2.1.3