fixes #7975 - Subnet names should be unique

Changed subnet name to be unique and to be used by friendly_id.
Created a migration which renames existing subnets with same name.