01-08-2021 02:21 AM
Hello the community,
We are using types empty in our Yang model and we are a bit surprised by how outcome of those empty types are presented when we display our service in JSON (with the | display json)
For instance, on one example, it gives :
nsoadmin@ncs% show vpnconfig DUMMYVRF | display json
{
"data": {
"vpnconfig:vpnconfig": [
{
"name": "DUMMYVRF",
"pedevice": "R10B1930WIN0 R10B4530WIN0 R10B6041WIN0",
"route-distinguisher": 722,
"hubvpns": {"": "management","": "voice","": "publiwin","": "wuh",
"loopback-number": "119",
"clitype": "old",
"importRTin": "200",
"exportmap": "export-public-loop-only-management",
"redistributestatic": "false",
"redistributeconnected": true
}
}
]
}
}
The outcome is not very usable for the empty types : in my example it is :
"": "management","": "voice","": "publiwin","": "wuh",
The emtpy types all appear with the key = "" .
Do you thinks that it is normal ?
Kind regards.
Benoit
Solved! Go to Solution.
02-25-2021 01:59 AM
Hi,
I tested it this morning in NSO 5.5.1, and the outcome is now good (see the "management": [null],)
Benoit
####
nsoadmin@ncs% show vpnconfig DUMMYVRF | display json
{
"data": {
"vpnconfig:vpnconfig": [
{
"name": "DUMMYVRF",
"route-distinguisher": 722,
"hubvpns": {
"management": [null],
"loopback-number": "119",
"clitype": "old",
"importRTin": "200",
"exportmap": "export-public-loop-only-management",
"redistributestatic": "false",
"redistributeconnected": true
}
}
]
}
}
01-08-2021 09:02 AM
01-08-2021 11:00 AM
snipset :
01-08-2021 02:54 PM
It looks reversed to me, and own_id is missing for some reason. That doesn't look good to me, I'd expect own_id:'', management:'' or something like that.
01-09-2021 12:20 AM
ok, I also thought that it was reversed in the json outcome - it should be : "management" : "" etc.
I will raise a SR with the TAC
Benoit
02-09-2021 02:31 AM
Hi,
Feedback from the case :
The reported issue has been fixed:
- cli: When showing an empty leaf in JSON format, with the pipe command
"display json", the output had the wrong format. This has been fixed.
The change was/will be included in below and later versions:
* nso-5.2.6
* nso-5.3.4
* nso-5.4.3 (09-Mar-2021)
* nso-5.5.1 (09-Feb-2021)
* nso-5.6
01-11-2021 12:05 AM
01-11-2021 12:50 AM
Hello,
You are right - it's B/W in the RFC §6.9.
I will highlight this in the SR case so that it can be corrected in compliance with the RFC
Benoit
01-11-2021 01:04 AM
For those of you who have "deep access" to TAC SR, it's :SR # 690615369
Benoit
02-25-2021 01:59 AM
Hi,
I tested it this morning in NSO 5.5.1, and the outcome is now good (see the "management": [null],)
Benoit
####
nsoadmin@ncs% show vpnconfig DUMMYVRF | display json
{
"data": {
"vpnconfig:vpnconfig": [
{
"name": "DUMMYVRF",
"route-distinguisher": 722,
"hubvpns": {
"management": [null],
"loopback-number": "119",
"clitype": "old",
"importRTin": "200",
"exportmap": "export-public-loop-only-management",
"redistributestatic": "false",
"redistributeconnected": true
}
}
]
}
}
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide