View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 1565 | RackTables | default | public | 2015-12-15 17:07 | 2015-12-15 18:02 |
| Reporter | BiloxiGeek | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | N/A |
| Status | closed | Resolution | won't fix | ||
| Product Version | 0.20.10 | ||||
| Summary | 1565: Documentation in csv_import.php seems to have an error | ||||
| Description | Lines 42-60 in the csv_import.php describe importing a new object. It lists six values: OBJECT Objecttype Common Name Asset Tag Port Array Port type array But the two examples show seven values. | ||||
| Tags | No tags attached. | ||||
| Attached Files | import_typo.txt (1,361 bytes)
* Importing Objects: Syntax: OBJECT; Objecttype ; Common name ; Visible label ; Asset tag; portname,portname,etc ; porttype,porttype,etc Value 1, OBJECT Value 2, Objectype: Can be one of the predefined types (SERVER, PATCHPANEL, SWITCH, VM), or a numeric value indicating the object type from Racktables Value 3, Common name: Common name string Value 4, Asset tag: Asset tag string Value 5, Port array: This is an optional field where you can create ports for the objects, separated by a comma. When you use this , you also need to add the Port type array An individual port field can be a range of ports. Eg. 'eth[0-9]' creates ten ports ranging from eth0 to eth9. Value 6, Port type array: This is an array which maps to the previous port array. This allows you to specify the interface type of the ports. It takes the form 'a-b'. Where a is the inner interface type, and b the outer interface type. Both a and b are numeric values. New inner / outer interface pair types can be linked using the configuration -> Enabled port types page. When the 'a-' value is ommited, the inner port type defaults to 'hardwire'. Examples: OBJECT;SERVER;myServer;www.server.com;SRV001;IPMI,eth[0-2];1-24,3-24 OBJECT SERVER myServer www.server.com SRV001 IPMI,eth[0-2] 1-24,3-24 1 2 3 4 5 6 7 | ||||
|
I'm going by the documentation shown here: https://github.com/sara-nl/racktables-contribs/blob/master/csv_import.php |
|
| Most code in the racktables-contribs repo is supplied by external parties. Secondly, csv_import.php isn't even in the official racktables-contribs repo, it's in a fork maintained by sara.nl. Please contact them for support. | |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2015-12-15 17:07 | BiloxiGeek | New Issue | |
| 2015-12-15 17:07 | BiloxiGeek | File Added: import_typo.txt | |
| 2015-12-15 17:12 | BiloxiGeek | Note Added: 0003055 | |
| 2015-12-15 18:02 | adoom42 | Note Added: 0003057 | |
| 2015-12-15 18:02 | adoom42 | Status | new => closed |
| 2015-12-15 18:02 | adoom42 | Resolution | open => won't fix |