cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
676
Views
1
Helpful
2
Replies

NSO yang-patch request with rollback

Robert Grishka
Level 1
Level 1

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

  }

}

2 Replies 2

huayyang
Cisco Employee
Cisco Employee

this should have been fixed by CSCwd46325, not on 5.6 branch though.

alex-filippov
Level 1
Level 1

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]