netns: fail when netns already exists
Under normal circumstances, service-specific netns should never exist before the netns setup service starts. An existing netns is a genuine error that should not be silently ignored.
This commit is contained in:
parent
dbad828851
commit
63a464431b
|
@ -152,7 +152,6 @@ in {
|
|||
requiredBy = bindsTo;
|
||||
before = bindsTo;
|
||||
script = ''
|
||||
${ip} netns delete ${netnsName} 2> /dev/null || true
|
||||
${ip} netns add ${netnsName}
|
||||
${ipNetns} link set lo up
|
||||
${ip} link add ${veth} type veth peer name ${peer}
|
||||
|
|
Loading…
Reference in New Issue
Block a user