cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2501
Views
5
Helpful
4
Replies

how to disable check sync when ned commit configuration to device

jinlliu
Cisco Employee
Cisco Employee

Hi Experts:

 

There are some devices(APIC, Openstack, CPNR) which not only managed by NSO but also others 

so nso will manipulate such devices fail as out of sync error

also check sync will slow performance

we want to disable check sync to these devices,  are there any solutions for this ?  

4 Replies 4

hniska
Cisco Employee
Cisco Employee

Either 

 

admin@ncs% set devices device ce0 out-of-sync-commit-behaviour
Possible completions:
accept reject

 

out-of-sync-commit-behaviour - Specifies the behaviour of a commit operation involving a device that is out of sync with NCS.

 

Or 

admin@ncs% commit no-out-of-sync-check

 

or

admin@ncs% commit no-overwrite

thanks a lot!

 

In my understanding, set out-of-sync-commit-behaviour  accept,  will just ignore out of check,

but it still will do check sync, then it will cost some performance

 

the second option:commit no-out-of-sync-check  seems work

but our service code didn;t know how to commit no-out-of-sync-check when apply templates

do you know how to acheve this from service model code perspective ?

 

thanks again!

 

'but our service code didn;t know how to commit no-out-of-sync-check when apply templates'

 

The 'no-out-of-sync-check' is not associated with a service model or modification via code/template, it is a commit flag applied to the transaction.

 

In the case of cli, you make your changes and then make the commit using the flag as Hakan has stated:

admin@ncs% commit no-out-of-sync-check

 

For Northbound interfaces (e.g. REST) where the commit is inferred from the request the no-out-of-sync-check commit flag must be attached to the URI:

 
curl -v -X PUT -u admin:admin --header "Content-Type:application/vnd.yang.data+xml" http://localhost:8080/api/running/devices/device/j0/config/configuration/system/host-name/?no-out-of-sync-check -d "<host-name>NEW-HOSTNAME</host-name>”
 
-Larry

sorry, commit no-out-of-sync-check ----> Commit even if out of sync

it seems still do check sync bot ignore, what we really need is skip check sync

Below cli seems work, but no sure what's use-transaction-id about, any side affect will be cause
devices device default_openstack_vim ned-settings use-transaction-id false