You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 3
Next »
Comparison of current CPS core output to NCMP passthrough operation output
The following details were used to compare and analyze the current CPS core output to NCMP passthrough operation output
Model | bookstore.yang |
---|
Data | bookstore.json |
---|
CPS core endpoint | /v1/dataspaces/{dataspace-name}/anchors/{anchor-name}/node |
---|
NCMP Passthrough operation | /v1/ch/{cm-handle}/data/ds/ncmp-datastore:passthrough-running |
---|
Scenario 1: XPath is pointing to root i.e. '/' |
---|
| NCMP Passthrough operation output | CPS Core output |
---|
Response | |
{
"bookstore": {
"bookstore-name": "Chapters",
"categories": [
{
"code": "01",
"name": "SciFi",
"books": [
{
"lang": "en",
"price": 895,
"title": "Feersum Endjinn",
"authors": [
"Iain M. Banks"
],
"pub_year": 1994
},
{
"lang": "en",
"price": 1099,
"title": "Far Horizons",
"authors": [
"david Brin",
"Ursula K. Le Guin",
"Rober Silverberg",
"Orson Scott Card",
"Greg Bear",
"Joe Haldeman",
"Dan Simmons"
],
"pub_year": 1999
}
]
},
{
"code": "02",
"name": "kids",
"books": [
{
"lang": "en",
"price": 699,
"title": "The Golden Compass",
"authors": [
"Philip Pullman"
],
"pub_year": 1995
}
]
}
]
}
}
|
---|
Scenario 2: Container XPath i.e '/bookstore' |
---|
| NCMP Passthrough operation output | CPS Core output |
---|
Response | |
{
"bookstore": {
"bookstore-name": "Chapters",
"categories": [
{
"code": "01",
"name": "SciFi",
"books": [
{
"lang": "en",
"price": 1099,
"title": "Far Horizons",
"authors": [
"david Brin",
"Ursula K. Le Guin",
"Rober Silverberg",
"Orson Scott Card",
"Greg Bear",
"Joe Haldeman",
"Dan Simmons"
],
"pub_year": 1999
},
{
"lang": "en",
"price": 895,
"title": "Feersum Endjinn",
"authors": [
"Iain M. Banks"
],
"pub_year": 1994
}
]
},
{
"code": "02",
"name": "kids",
"books": [
{
"lang": "en",
"price": 699,
"title": "The Golden Compass",
"authors": [
"Philip Pullman"
],
"pub_year": 1995
}
]
}
]
}
}
|
---|
Scenario 3: List attributes XPath '/bookstore/categories[@code='02']' '/ncmp/v1/ch/PNFDemo/data/ds/ncmp-datastore:passthrough-running?resourceIdentifier=stores:bookstore/categories=02' |
---|
| NCMP Passthrough output | CPS Core output |
---|
Response |
{
"stores:categories": [
{
"code": "02",
"books": [
{
"title": "A Horror book",
"price": "2000",
"pub_year": 2003,
"lang": "English",
"authors": [
"Joe & Rahul"
]
},
{
"title": "A New book in existing category",
"price": "2000",
"pub_year": 2003,
"lang": "English",
"authors": [
"Joe & Rahul"
]
}
],
"name": "Horror"
}
]
}
|
{
"categories": {
"code": "02",
"name": "kids",
"books": [
{
"lang": "en",
"price": 699,
"title": "The Golden Compass",
"authors": [
"Philip Pullman"
],
"pub_year": 1995
}
]
}
}
|
---|
Modifying CPS Core output
Parsing a model prefix
Building the data node
Open Issues
Issue | Description | Resolution |
---|
Child is in a different module | If the child is in a different module should it have a prefix |
|
Output starts with non-root element | If the output starts with non-root element should it have a prefix |
|
Backward incompatibility | Discuss backward incompatibility with stakeholders - WiPro (E2E Slicing)
- Ericsson
- Bell (Bruno has confirmed that they are not impacted ?)
Can YangTools parse it? - if YangTools can parse it then this is not incompatible
|
|
Is this LEGAL YANG data |
|
|