Table of Contents | ||
---|---|---|
|
References
- Relevant user story
Jira Legacy server System Jira serverId 4733707d-2057-3a0f-ae5e-4fd8aff50176 key CPS-1153 - IETF documentation on extending data models
- Augment statement
- (YANG language summary) Support for Yang Language
Open Issues/Questions
Issue/Question | Description | Notes | Resolution | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
new model |
| new module name = extended-dmi-registry prefix = ext-dmi | |||||||||
Loading data with Liquibase | Dmi registry model is loaded via Liquibase which means that the content of the yang resource is already set
| New JIRA ticket created for this see
| |||||||||
ODL Yang tool | what is needed to acknowledge the augment statement for a new model
|
|
Overview
Currently, the published DMI-registry model shows the property 'additional properties' as shown on lines 32 to line 43 of the yang model below. This property is not queryable and therefore, is not recommended to be published to the public.
...
See brief on YANG language on Support for Yang Language
By using the keyword 'augment' on yang models, we are allowed to extend a data model i.e. add nodes to the current structure
...
Using pyang tool, these two models were validated to confirm that the resulting schema tree module model includes the nodes that were intended to be added on to the dmi-registry model
Open Issues/Questions
...
Testing
Successful Parsing of the models [dmi-registry-sample, extended-dmi-registry]
Description | Notes |
---|
- module name for the model that holds the augment statement
Dmi registry model is loaded via liquibase which means that the content of the yang resource is already set
- how will the 'import' statement work to create a new model
- will the
and Results | |||
---|---|---|---|
1 | Create Dataspace | dataspace 'my-dataspace' created |
|
2 | Create schemaset with Zip File resource
| 201 created 'my-schema-set-2' |
|
3 | Create Anchor
| 201 created 'my-anchor' |
|
4 | Create Node
| 201 created | |
5 | Get a schemaset
| 200 |