06-09-2020 09:38 AM - edited 06-11-2020 04:01 AM
Hello,
I did partial-sync-from from NSO CLI as per NSO user guide. But I need to do partial-sync-from using python maapi or maagic, I tried the below, but no luck:
with ncs.maapi.Maapi() as m:
with ncs.maapi.Session(m, 'admin', 'python'):
with m.start_read_trans() as t:
root = ncs.maagic.get_root(t)
out = root.devices.partial_sync_from.path.[ /devices/device[name=\'cisco\']/config/ios:ip/vrf ]
Solved! Go to Solution.
06-28-2020 03:22 AM - edited 06-28-2020 03:23 AM
See if this post helps you: https://community.cisco.com/t5/nso-developer-hub-discussions/call-partial-sync-from-function-in-cb-create/m-p/3895272/highlight/true#M4055
(you should not call it from cb_create(), but I think the process is correct)
06-28-2020 02:05 AM
Can anyone help here ?
06-28-2020 03:22 AM - edited 06-28-2020 03:23 AM
See if this post helps you: https://community.cisco.com/t5/nso-developer-hub-discussions/call-partial-sync-from-function-in-cb-create/m-p/3895272/highlight/true#M4055
(you should not call it from cb_create(), but I think the process is correct)
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