Create ports and subnets from service object.