iterating over a nodeinterfaces children while removing them will lead to 'child' being undefined instead collect the children to remove in a separate list and iterate over them Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>