80 likes | 179 Views
N10 Profile Revisit. SDD 1.1 Proposal. Current Situation. Profiles are an incomplete subset of a resource model Incompletion causes confusion How does one extend a profile? Which resources should come from a resource model?
E N D
N10 Profile Revisit SDD 1.1 Proposal
Current Situation • Profiles are an incomplete subset of a resource model • Incompletion causes confusion • How does one extend a profile? • Which resources should come from a resource model? • Which resources have to be defined that do not exist in a resource model? • When is it appropriate to use a particular resource, extend a resource or add a new resource?
Scenario(s)/Use Case(s) • Basic use case • The starter profile includes a resource class called CIM_InstalledProduct • An SDD author needs to declare a resource in topology and reference a property of that resource in a constraint • The resource to be declared does not have a corresponding resource class in the profile • Does the SDD author extend the profile or use CIM_InstalledProduct?
Proposal • Do away with the profile in it’s current form • Use the resource model directly • Reference the resource model in namespace declarations • Use and/or extend the resource model using prescribed methodologies as defined by that model
Proposal • Keep the concept of the profile as a contract between producer and consumer • Reference the profile type/serial number in the SDD but not elements of the profile • Publish a known set of profiles (for producers and consumers) • Implementations refer to profile serial numbers and cross reference with declarations in the SDD to determine compatibility • Vice versa for authoring tools
Proposed Schema • Add a ProfileIDType to sdd-common <xsd:complexType name="ProfileIDType"> <xsd:sequence> <xsd:element name="ProfileID" type="xsd:string" maxOccurs="unbounded"/> <xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> • Reference ProfileIDType in the deployment descriptor … <xsd:element name="DeploymentDescriptor" type="sdd-dd:DeploymentDescriptorType"/> <xsd:element name="ProfileID" type="sdd-dd:ProfileIDType"/> …
Proposal • The profile needs to be amended as well • What is needed in the profile? • Resource model definition • Resource names used • Properties used • To do, draft the amended profile and disseminate
Proposed Specification Change • To do