cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
387
Views
0
Helpful
1
Replies

Sync-from as load-merge

tsiemers1
Spotlight
Spotlight

Is it possible to trigger a sync-from or action from load-merge? We have a service that needs to wait until a maintenance window to be pushed. The thought was to have a few load-merge files ready to go for the person running the maintenance window. One XML that has a list of devices that needs to be sync'd before. Then another that after they sync'd runs the service. I have tried the following looking at the tailf:action sync-from and was not able to get it to work:

 

XML:

<?xml version="1.0" ?>
<devices xmlns="http://tail-f.com/ns/ncs">
  <device>
    <name>Device1</name>
     <sync-from></sync-from> 
  </device>
</devices>

Not sure if this is designed to work this way since a load-merge would kick off the action right away.

1 Reply 1

rogaglia
Cisco Employee
Cisco Employee

Hi,

load merge would be used to load data into CDB. "Sync-from" is an RPC/Action and not something you store in CDB. So, to you question, the answer would be no.

 

Moreover, your idea does not sound like a safe operational process. What I would suggest you is to set a service state leaf and some service level action. In that sense, the service is first committed but in a state that does not push config into the devices. When the device is ready, the operator would call the pre-built action via GUI/CLI/API. The action code would take care of sync-from an change the service status.

Roque