cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1494
Views
5
Helpful
3
Replies

Cannot import cml-p lab 2.1.1 to 2.4.1

f-baker
Level 4
Level 4

get "Failed: Bad request: None is not of type 'string' - 'nodes.0.configuration'." when I try to import into 2.4.1 a lab from 2.1.1.

Not to be snarky but being able to move labs from old to new versions would seem to be kinda foundational

the yaml file is attached (as txt)

cml-import.PNG

3 Replies 3

balaji.bandi
Hall of Fame
Hall of Fame

i did imports the Lab works as expected - never seen this issue, something went wrong in the yml file.

google in git some same labs and import and check.

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

f-baker
Level 4
Level 4

Actually I exported 4 labs from CML instances on the same computer, I was trying to upgrade from 2.1 to 2.4 and move my labs. I guess I will look in the yaml files but not sure how I would fix them

Peter Khoo
Level 1
Level 1

Apparently this is a bug which will be fixed in the next release.  In the meantime, the hide_links feature needs to be disabled for all nodes as a workaround.  You can run this command on a linux host (cut and paste the command as the number of spaces in the sed replace string is important to maintain proper YAML formatting.)

$ sed 's/(^ *id:)/ hide_links: false\n_1/' lab.yaml > fixed_lab.yaml