Draw.io library for Ubiquiti networks
The SVG shapes were retrieved from the a Unifi CloudKey Gen 2+ stored in cd /mnt/.rwfs/data/usr/lib/ulp-go/swai/static/media
-
Go to draw.io and create a new diagram.
-
Then go to
File -> Open Library From -> Url... -
Enter
https://github.com/donhector/ubiquiti-drawio/raw/main/Ubiquiti.xmlas the URL -
Click
Open
NOTE: Depending on your connection, this might take a while (the library is around 40Mb) so be patient.
You should see the new library loaded in draw.io:
Now you can drag and drop the Ubiquiti shapes into your diagram.
Creating a new library in draw.io is also straight forward. This is how I created it:
- In the console admini at unifi.ui.com enable ssh access to the console and set a password. The user is 'root'
- ssh root@console_ip_address and login
- Collect the SVG icons cd /mnt/.rwfs/data/usr/lib/ulp-go/swai/static/media tar cf /tmp/unifi-icons.tar . scp /tmp/unifi-icons.tar machine_of_your_choice:~/Downloads (On your local system, assuming a bash like shell) cd ~/Downloads tar xf unifi-icons.tar
- Open draw.io
- Go to
File -> New Library -> Device... - Give your library a name. ie:
MyLib.xml - Click
Add images - Drag and drop desired images into the dialog (those can be .svg files no problem).
- Keep adding images until you are done
- Click
Save
That will import the MyLib library into the draw.io UI and will also download it as an xml file to your computer (ie: MyLib.xml)
