Csv import: console ports bulk import

509 views
Skip to first unread message

MK

unread,
Jan 21, 2021, 8:09:58 PM1/21/21
to netbox-...@googlegroups.com
Hi 

Python: 3.8.5
Netbox: 2.9.9

I am trying to bulk import cables for  console ports using csv but "side a type " de-9 and side b type" rj-45  doesnt seem to be  recognized as valid object

Error : side a type object not found
            Side b type object not found

With previous Netbox version 2.7.10 i was able to import with these same type

Please advise if I m missing something

Thanks for your help

Thanks


Brian Candler

unread,
Jan 22, 2021, 4:20:50 AM1/22/21
to NetBox
The "type" means whether it's a consoleport, a frontport, an interface etc.

Tested with 2.10.3: go to /dcim/cables/import/, and you'll see a table "CSV Field Options" at the bottom. The row "side_a_type" has a question mark at the right hand side.  Click on it.

The value you need is "dcim.consoleport", "dcim.frontport" etc.

img1.png

It's a quirk of the Netbox data model that you can't just say "connect to device Foo port Bar"; you need to qualify Bar with its type. This is because each type of port is distinct: you can have an interface called "Bar" and a frontport called "Bar" on the same device.  However, this does allow you to have corresponding frontports and rearports with identical names.

MK

unread,
Jan 22, 2021, 9:08:40 AM1/22/21
to Brian Candler, NetBox
Hi

Thank you for explaining the details and now I am able to import 

In 2.9.9 ver of Netbox, I don't see this (?) helper on the csv options against the "side a type " and "side b type"

Thanks


--
You received this message because you are subscribed to the Google Groups "NetBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netbox-discuss/74460ee3-2a8f-48b2-875f-877b7d23639fn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages