Home | History | Annotate | Download | only in netns
      1 #!/bin/sh
      2 
      3 . lib/generic.sh
      4 
      5 ts_log "[Testing netns nsid]"
      6 
      7 NS=testnsid
      8 NSID=99
      9 
     10 ts_ip "$0" "Add new netns $NS" netns add $NS
     11 ts_ip "$0" "Set $NS nsid to $NSID" netns set $NS $NSID
     12 
     13 ts_ip "$0" "List netns" netns list
     14 test_on "$NS \(id: $NSID\)"
     15 
     16 ts_ip "$0" "List netns without explicit list or show" netns
     17 test_on "$NS \(id: $NSID\)"
     18 
     19 ts_ip "$0" "List nsid" netns list-id
     20 test_on "$NSID \(iproute2 netns name: $NS\)"
     21 
     22 ts_ip "$0" "Delete netns $NS" netns del $NS
     23