Fix problem on networkports services of a switch in generation of config