05-07-2018 11:58 AM - edited 03-01-2019 04:09 AM
Hi
I was wondering if I can execute device sync-from request using JSON-RPC. I tried searching in NSO web-ui guide, but couldn't locate anything in there. In general, is there a way to create JSON-RPC equivalent request for operations that can be done from NSO CLI?
-Umesh
Solved! Go to Solution.
05-07-2018 12:11 PM
05-07-2018 12:11 PM
05-26-2018 11:17 PM
Thanks Fredrik. One follow up question - what is the use of "validate_commit" request after sync-from request. What does it do?
-Umesh
10-20-2020 10:49 PM
fatal: [core1]: FAILED! => {"changed": false, "msg": "NSO commit returned JSON-RPC error: {u'data': {u'message': u'Network Element Driver: device core1: out of sync'}, u'message': u'Method failed', u'code': -32000, u'type': u'rpc.method.failed', u'internal': u'jsonrpc_tx_commit257'}"}
fatal: [core2]: FAILED! => {"changed": false, "msg": "NSO commit returned JSON-RPC error: {u'data': {u'message': u'Network Element Driver: device core2: out of sync'}, u'message': u'Method failed', u'code': -32000, u'type': u'rpc.method.failed', u'internal': u'jsonrpc_tx_commit257'}"}
fatal: [access1]: FAILED! => {"changed": false, "msg": "NSO commit returned JSON-RPC error: {u'data': {u'message': u'Failed to connect to device access1: connection refused: No route to host (Host unreachable)'}, u'message': u'Method failed', u'code': -32000, u'type': u'rpc.method.failed', u'internal': u'jsonrpc_tx_commit257'}"}
I am facing this issue regarding sync please help if faced this issue before, Thanks in Advanced.
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