cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1426
Views
0
Helpful
3
Replies

no output for partial-sync-from

erdemk
Level 1
Level 1

Hi there,

I have question please..

 

I run simple-mpls-vpn example.

 

when i run

#devices sync-from, there is an output like this ( for all the devices ): 

sync-result {
device ce0
result true

 

but when i run : 

admin@ncs# devices partial-sync-from path [ /devices/device[name='ce0'] ]
admin@ncs#

there is no output and command prompt comes back. 

 

any ideawhy this is happening. How c an i see if partial sync is ok or not.

 

Thanks.

1 Accepted Solution

Accepted Solutions

joepak
Cisco Employee
Cisco Employee
Hi,

From the nso-user-guide:

partial-sync-from: Synchronize parts of the devices' configuration by pulling from the network.

and from the example:

Example 8. Example of running partial-sync-from action via CLI
$ ncs_cli -C -u admin
ncs# devices partial-sync-from path [ \ /devices/device[name='ex0']/config/r:sys/interfaces/interface[name='eth0'] \ /devices/device[name='ex1']/config/r:sys/dns/server ]
sync-result {
device ex0
result true }

It would seem to me that partial-sync-from would only work when defining the path to a specific bits of configurations from within the device. partial-sync-from wouldn't work when defining the device as it would basically be a full sync-from.

Hope this helps.

View solution in original post

3 Replies 3

joepak
Cisco Employee
Cisco Employee
Hi,

From the nso-user-guide:

partial-sync-from: Synchronize parts of the devices' configuration by pulling from the network.

and from the example:

Example 8. Example of running partial-sync-from action via CLI
$ ncs_cli -C -u admin
ncs# devices partial-sync-from path [ \ /devices/device[name='ex0']/config/r:sys/interfaces/interface[name='eth0'] \ /devices/device[name='ex1']/config/r:sys/dns/server ]
sync-result {
device ex0
result true }

It would seem to me that partial-sync-from would only work when defining the path to a specific bits of configurations from within the device. partial-sync-from wouldn't work when defining the device as it would basically be a full sync-from.

Hope this helps.

Yes, that helped.

Thank you.

It seems , partial-sync-from works starting from config.

uwankhed
Cisco Employee
Cisco Employee

Is anyone aware of how to invoke partial sync-from using python APIs?

Tried .partial_sync_from($path),etc. but none works.

API docs don't seem to have this information handy either.