07-24-2019 12:47 AM
Hi everyone,
I have a problem with the copy_tree() function.
It works when trying to copy configuration from one port to another port or from one lag to another lag, but it doesn't work with services. in the example below I try to copy configuration from a given service customer in device 1 to another service customer in device 2.
It generates the folowing error :
Error: badly formatted or nonexistent path (8): Data model mismatch
If you have any idea, don't hesitate to reply pkease.
Thanks in advance.
07-24-2019 01:34 AM
Hi,
Have you created the list entry on device 2 before using copy_tree?
07-24-2019 01:42 AM
Hi,
Yes, of course.
07-24-2019 01:46 AM
I am looking something like
this NSO cli
rename devices device abc xyz
In this case we don’t need to create new device. Copy tree works fine but for that I have create new device first that I don’t want to do.
may be move is not correct method, I did not find any maapi method for renaming device without creating a new one. Rename does make a copy of same device with new name with the need of list entry present
I have list of 7k devices that I have to rename.
thanks
08-06-2019 04:07 AM
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