From 4dcaf14b4ea025c649671f077e54a7837e835440 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 19 Dec 2019 13:23:05 -0500 Subject: [PATCH] Change vendors/ to device-types/ --- CONTRIBUTING.md | 4 ++-- .../Generic/24-port_copper_patch_panel.yaml | 0 .../Generic/48-port_copper_patch_panel.yaml | 0 {vendors => device-types}/Juniper/EX4300-24T.yaml | 0 {vendors => device-types}/Testing/Test.yaml | 0 tests/test_definitions.py | 2 +- 6 files changed, 3 insertions(+), 3 deletions(-) rename {vendors => device-types}/Generic/24-port_copper_patch_panel.yaml (100%) rename {vendors => device-types}/Generic/48-port_copper_patch_panel.yaml (100%) rename {vendors => device-types}/Juniper/EX4300-24T.yaml (100%) rename {vendors => device-types}/Testing/Test.yaml (100%) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 78066dc72..54198af38 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -9,8 +9,8 @@ Each NetBox device type definition exists as a single YAML file, arranged by man concatenating the definition's model name with a `.yaml` extension. For example: ```no-highlight -vendors/Acme/BFR-1000.yaml -vendors/Acme/BFR-2000.yaml +device-types/Acme/BFR-1000.yaml +device-types/Acme/BFR-2000.yaml ``` When writing new definitions, there are some important guidelines to follow: diff --git a/vendors/Generic/24-port_copper_patch_panel.yaml b/device-types/Generic/24-port_copper_patch_panel.yaml similarity index 100% rename from vendors/Generic/24-port_copper_patch_panel.yaml rename to device-types/Generic/24-port_copper_patch_panel.yaml diff --git a/vendors/Generic/48-port_copper_patch_panel.yaml b/device-types/Generic/48-port_copper_patch_panel.yaml similarity index 100% rename from vendors/Generic/48-port_copper_patch_panel.yaml rename to device-types/Generic/48-port_copper_patch_panel.yaml diff --git a/vendors/Juniper/EX4300-24T.yaml b/device-types/Juniper/EX4300-24T.yaml similarity index 100% rename from vendors/Juniper/EX4300-24T.yaml rename to device-types/Juniper/EX4300-24T.yaml diff --git a/vendors/Testing/Test.yaml b/device-types/Testing/Test.yaml similarity index 100% rename from vendors/Testing/Test.yaml rename to device-types/Testing/Test.yaml diff --git a/tests/test_definitions.py b/tests/test_definitions.py index c227a1ac4..8421079af 100644 --- a/tests/test_definitions.py +++ b/tests/test_definitions.py @@ -10,7 +10,7 @@ def _get_definition_files(): """ Return a list of all definition files. """ - return [f for f in glob.glob("vendors/**/*.yaml", recursive=True)] + return [f for f in glob.glob("device-types/**/*.yaml", recursive=True)] # Initialize schema