• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/sh
2
3. lib/generic.sh
4
5ts_log "[Testing netns nsid in batch mode]"
6
7NS=testnsid
8NSID=99
9BATCHFILE=`mktemp`
10
11echo "netns add $NS" >> $BATCHFILE
12echo "netns set $NS $NSID" >> $BATCHFILE
13echo "netns list-id" >> $BATCHFILE
14ts_ip "$0" "Add ns, set nsid and list in batch mode" -b $BATCHFILE
15test_on "nsid $NSID \(iproute2 netns name: $NS\)"
16rm -f $BATCHFILE
17
18ts_ip "$0" "Delete netns $NS" netns del $NS
19