Skip to content

bl4ko/go-devicetype-library

Repository files navigation

Devices data

This data file is automatically fetched and generated from netbox's devicetype-library. Current version is matched with latest commit on master branch.

For more info see generator.

Usage

package main

import (
  "fmt"

  devices "github.com/bl4ko/go-devicetype-library/pkg"
)

func main() {
  for manufacturer, deviceType2device := range devices.DeviceTypesMap {
    fmt.Printf("Manufacturer: %s\n", manufacturer)
    for deviceType, device := range deviceType2device {
      fmt.Printf("Device Type[%s]: %+v\n", deviceType, device)
    }
  }
}