[racktables-users] Re: Import new switch

  • From: <sberg@xxxxxxxxxxxxxxx>
  • To: <racktables-users@xxxxxxxxxxxxx>
  • Date: Tue, 15 Dec 2015 10:33:21 -0600

There's a glitch in the documentation for csv_import.php. It lists 6 values to
include but both examples have seven values.

I tried doing as you suggested and I don't get the error but the ports still
don't get created. And the resulting object has this for the asset tag:

"[1-24],AC-in"

Which is my port array. Tried a different switch and it worked.

But I think I just found the issue. I was using 1642 for the port type
(10GBase-T), I should have listed it as "9-1642". I guess it's not considered
hardwired which is the default.

----- Original Message -----
From: Pendred, Paul V. [mailto:PendredPV@xxxxxxxxxxxxx]
To: racktables-users@xxxxxxxxxxxxx
Sent: Tue, 15 Dec 2015 15:22:37 +0000
Subject: [racktables-users] Re: Import new switch

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


Other related posts: