11-14-2017 03:26 PM - edited 03-01-2019 04:02 AM
Hi,
We have a situation where we have not on boarded the device yet, but still would like to create an entry and using Services would like to Map the device configs.
But, Since the device is not on boarded yet, we are running into an issue while applying the template where it complains saying that it does not have any capabilities, "No capabilities found for device. Has a sync-from the device been performed?".
Is there a way to skip this and still go ahead with the mapping? We need a flag similar to accept-empty-capabilties which is used while apply device templates to a device.(Note that we are not using device template. We are using Template for CFS to RFS)
After the device is on boarded, we will do a sync from to get the capabilities.
For now, as a hack, i have inserted the capabilities and modules(that we get after a sync-from) into the templates(that is used for mapping CFS to RFS). So, it will be the responsibility of the template to populate the capability and the modules.
One disadvantage of the above hack is that there might be devices with different versions of yang. So, there could be some side effects there.
Another hack could be to put 1-2 dummy capability and module, and do the mapping. When the device is on boarded, we can do a sync from and then re-deploy the service to get the device config tree populated.
Please do let me know if there is a correct and better way to handle this problem
Regards,
Pratik Lala
Solved! Go to Solution.
11-16-2017 08:03 AM
Hi Pratik,
Well you could always create a service and if the device isn't present don't take any action and the service could easily be re-deployed when the device is actually added. Perhaps you could react to the device being onboarded. If you really need to modify the config before the device is present then I think you will have to either clone an existing device or programmatically add the capabilities.
-Dan
11-16-2017 08:03 AM
Hi Pratik,
Well you could always create a service and if the device isn't present don't take any action and the service could easily be re-deployed when the device is actually added. Perhaps you could react to the device being onboarded. If you really need to modify the config before the device is present then I think you will have to either clone an existing device or programmatically add the capabilities.
-Dan
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