Skip to content

Latest commit

 

History

History
63 lines (60 loc) · 1.76 KB

README.md

File metadata and controls

63 lines (60 loc) · 1.76 KB

Netbox

Script which can be used to interact with Netbox.

Purpose

Specifically designed to convert JSON files created from CFG2JSON.

Usage

See update.pl.example and updatedevice.pm, for inspiration.

Dependencies

{
  "model": "S4048-ON",
  "sitename": "us-east-1a",
  "devicerole": "adevicerole",
  "interfaces": {
    "TenGigabitEthernet 1/3": {
      "formfactor": "SFP+10GBASE-LR",
      "description": "test description",
      "ipaddress": [],
      "qualified": "Yes",
      "serial": "aserial1"
    },
    "fortyGigE 1/50": {
      "description": "another interface description",
      "formfactor": "QSFP40GBASE-SR4",
      "serial": "aserial2",
      "qualified": "Yes",
      "ipaddress": []
    },
    "Vlan 4007": {
      "description": "testdescription",
      "formfactor": "virtual",
      "vrf": "aVRF",
      "ipaddress": [
        {
          "bits": "30",
          "version": "4",
          "ip": "10.10.10.74",
          "type": "interface"
        }
      ],
      "vlan": "4007"
    }
  },
  "serial": "devserial",
  "lags": [],
  "version": "9.14(0.0)",
  "mgmtip": "1.1.1.1",
  "hostname": "devhostname",
  "vendor": "force10"
}