The script ran fine for me and built the template as I would expect. However, when attempting to import at the host level, I got this error:
The offending line:
The problem was due to the additional quotes around "MX480 ge-0/2/9 Trunk". Once I removed those, the template imported successfully.
What seems to give the import facility heartburn is the presence of quotes within a quoted string.
For those working with the script, it would probably be a good idea not to use quotes in your device port descriptions. I only had to deal with one port, but I could see this being a real pain if you have hundreds or thousands of ports to contend with.
Hopefully, this will help someone.
Code:
XML file contains errors. Fatal Error 65: attributes construct error [ Line: 23689 | Column: 16 ]
Code:
<graph name="[Port GigabitEthernet1/36] 37 "MX480 ge-0/2/9 Trunk"" width="900" height="400">
What seems to give the import facility heartburn is the presence of quotes within a quoted string.
For those working with the script, it would probably be a good idea not to use quotes in your device port descriptions. I only had to deal with one port, but I could see this being a real pain if you have hundreds or thousands of ports to contend with.
Hopefully, this will help someone.

Comment