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