04-04-2023 10:08 PM
Hi, Team!
Can anybody show me the way to get rollback-id number from restconf yang patch request in nso 5.6?
Example of such request below. I provide 'rollback-id=true' param in uri, but nso response body doesn't include rollback id sequence number.
http://10.205.175.180:8080/restconf/data/?rollback-id=true
{
"ietf-yang-patch:yang-patch": {
"patch-id": "create-bgp-peer",
"comment": "create bgp peer on device",
"edit": [
}
"edit-id": "Delete vlan redervation",
"operation": "delete",
"target": "/fabric/vlans=305"
},
{
"edit-id": "Modify service",
"operation": "replace",
"target": "/tailf-ncs:services/cfs-fabric:fabric=IT",
"value": {
"cfs-fabric:fabric-ids": [
{
"routing": {
"bgp-peers": [
{
"peer": "1.1.1.1",
"leafs": [
{
"leaf": "leaf1"
}
],
"peer-as": 123456,
"peer-description": "TEST",
"state": "disabled",
}
]
}
}
]
}
},
]
}
}
nso responses with
"{
"ietf-yang-patch:yang-patch-status": {
"patch-id": "create-bgp-peer",
"ok": [null]
}
}
But i am looking for something like this
"tailf-restconf:result": {
"rollback": {
"id": 777
}
}
07-31-2023 01:26 PM
this should have been fixed by CSCwd46325, not on 5.6 branch though.
08-08-2023 05:31 PM
NSO-5.7.9
Add rollback-commit-result and ncs-commit-result to yang-patch-status replies when the query parameters ?rollback-id=true or ?commit-queue are used, respectively.
[ENG-30159/restconf enhancement]
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the NSO Developer community: