Merge "Use the command *ip netns pids* in Neutron OCF scripts"

This commit is contained in:
Jenkins 2015-03-12 08:50:48 +00:00 committed by Gerrit Code Review
commit a478b8c618
2 changed files with 2 additions and 2 deletions

View File

@ -446,7 +446,7 @@ get_ns_list() {
get_pid_list_for_ns_list() {
# the first parameter is a list of ns names for searching pids
local ns_list="$1"
local pids=`for netns in $ns_list ; do ip netns exec $netns lsof -n -i -t ; done`
local pids=`for netns in $ns_list ; do ip netns pids $netns ; done`
echo $pids
}

View File

@ -468,7 +468,7 @@ get_ns_list() {
get_pid_list_for_ns_list() {
# the first parameter is a list of ns names for searching pids
local ns_list="$1"
local pids=`for netns in $ns_list ; do ip netns exec $netns lsof -n -i -t ; done`
local pids=`for netns in $ns_list ; do ip netns pids $netns ; done`
echo $pids
}