06-30-2024 07:11 AM
Hello I Have a service that i use to add device to device to nso here is my template :
<config-template xmlns="http://tail-f.com/ns/config/1.0">
<devices xmlns="http://tail-f.com/ns/ncs" >
<device tags='merge'>
<name>{/device-name}</name>
<address>{/ip-management}</address>
<port>{/port-management}</port>
<authgroup>{/auth-group}</authgroup>
<device-type>
<cli>
<ned-id xmlns:cisco-nx-cli-5.25="http://tail-f.com/ns/ned-id/cisco-nx-cli-5.25">cisco-nx-cli-5.25:cisco-nx-cli-5.25</ned-id>
</cli>
</device-type>
<trace>raw</trace>
<state>
<admin-state>{/admin-state}</admin-state>
</state>
</device>
</devices>
</config-template>
It add the device successfuly but I try to update for exemple the authgroup the commit dry-run shows that all the device config from NSO. Any idea?
07-01-2024 04:34 AM
Hi @MAMADOUTOURE2733 ,
Per my understanding of the reported, you are configuring stuff in the device manager via service manager, and are questioning the config diff provided after promote a service change.
Have you tried to do a "show run devices device <dev_name> | display service-meta-data"? Maybe the Backpointers can give you a hint.
BR
07-01-2024 04:39 AM
Yes I got the diff after device sync-from
07-16-2024 01:40 AM
with given info, I guess the your service update would remove everything under /devices/device/config(data populated by sync-from) because fastmap removes the /devices/device list but doesn't recreate /devices/device/config, this is how fastmap works, check https://developer.cisco.com/docs/nso-guides-6.1/implementing-services/#fastmap-and-service-life-cycle for more details
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