Use layer ids instead of layer names as unqiue identifier

- Fixes part of ILMANET-1015