networking: workaround for instance modification problem in shell

lmishell doesn't handle in-place editing of array parameters properly,
we need to create new arrays and then copy them back