remove netns ouput
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
1f28301a94
commit
461f72678f
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ function create_netns {
|
||||||
function check_netns {
|
function check_netns {
|
||||||
netns_name="${1}"
|
netns_name="${1}"
|
||||||
|
|
||||||
ip netns | grep "${netns_name}" \
|
ip netns | grep "${netns_name}" > /dev/null \
|
||||||
&& return 0 \
|
&& return 0 \
|
||||||
|| return 1
|
|| return 1
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue