cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

168
Views
1
Helpful
1
Replies
khgrant
Cisco Employee

NSO 4.1.2, run action via Json Rpc for service reconcile

 

Hi all,

 

 

I tried to send the following three Json RPC to reconcile a service:

 

 

1. payload = {

 

            "id": idval,

 

            "jsonrpc": "2.0",

 

            "method": "commit",

 

                        "params": { "th": th,

 

                                    "flags": ["no-networking"]}

 

            }

 

2. payload = {

 

            "method" : "run_action",

 

            "params" : {

 

                "th" : th,

 

                "path": "/ncs:services/tpacl2vpn:tpacl2vpn{test2}/un-deploy",

 

                "params": {

 

                    "ignore-refcount" : "",

 

                    "no-networking": "",                                     

 

                }   

 

            },

 

            "jsonrpc" : "2.0",

 

            "id" : idval,

 

        }

 

 

3. payload = {

 

            "method" : "run_action",

 

            "params" : {

 

                "th" : th,

 

                "path": "/ncs:services/tpacl2vpn:tpacl2vpn{test2}/re-deploy",

 

                "params": {

 

                    "no-out-of-sync-check" : "",

 

                    "no-networking": "",                                     

 

                }   

 

            },

 

            "jsonrpc" : "2.0",

 

            "id" : idval,

 

        }

 

 

Step 1 and 2 went through fine. Step 3 gave me an error:

 

 

('action return ', '{"jsonrpc": "2.0", "id": 52, "error": {"data": {"reason": "Failed: service is not deployed"},

 

 

How to solve this, without upgrade to 4.2.1?

 

 

Regards,

Weigang Huang

1 REPLY 1
khgrant
Cisco Employee

 

Hi Weigang,

 

 

"no-out-of-sync-check" : "",  via JSON RPC is broken until NSO 4.2.1.

 

 

Thanks & Regards,

 
Nick Khemani

Create
Recognize Your Peers
Content for Community-Ad