Placement of services with flexible structures specified by a YANG data model