It appears that you have an extra value where the port array should begin:
ges-cr22 is the common name
cr22 is the asset tag
next value should start your port array (you have cr22)
Paul
-----Original Message-----
From: racktables-users-bounce@xxxxxxxxxxxxx
[mailto:racktables-users-bounce@xxxxxxxxxxxxx] On Behalf Of
sberg@xxxxxxxxxxxxxxx
Sent: Tuesday, December 15, 2015 8:51 AM
To: racktables-users@xxxxxxxxxxxxx
Subject: [racktables-users] Import new switch
The csv line below keeps giving me an error "Database error: foreign key
violation". The object is created but the ports are not defined.
The switches hostname is "ges-cr22", cr22 is just common name and asset tag for
now. I should end up with 24 total 10GBase-T ports when I figure this out.
Anyone see where I'm going wrong with this?
OBJECT;SWITCH;ges-cr22;cr22;cr22;Te1/0/[1-20],Te1/1/[1-4],AC-in;1642,1642,16