From a120a95184f779ae3b91f97ce41618f6cb9d9307 Mon Sep 17 00:00:00 2001 From: Aleksandar Radunovic Date: Tue, 16 Oct 2018 13:26:23 +0200 Subject: [PATCH] Fix initializers --- initializers/custom_fields.yml | 2 ++ initializers/device_types.yml | 8 ++++++++ initializers/devices.yml | 6 +++--- initializers/racks.yml | 6 +++--- initializers/sites.yml | 8 ++++++++ 5 files changed, 24 insertions(+), 6 deletions(-) diff --git a/initializers/custom_fields.yml b/initializers/custom_fields.yml index e70d6e5..0b6472a 100644 --- a/initializers/custom_fields.yml +++ b/initializers/custom_fields.yml @@ -7,6 +7,8 @@ # on_objects: # - dcim.models.Device # - dcim.models.Rack +# - dcim.models.Site +# - dcim.models.DeviceType # - ipam.models.IPAddress # - ipam.models.Prefix # - tenancy.models.Tenant diff --git a/initializers/device_types.yml b/initializers/device_types.yml index b41e31d..4177ac4 100644 --- a/initializers/device_types.yml +++ b/initializers/device_types.yml @@ -2,14 +2,22 @@ # model: Model 1 # slug: model-1 # u_height: 2 +# custom_fields: +# text_field: Description # - manufacturer: Intel # model: Model 2 # slug: model-2 +# custom_fields: +# text_field: Description # - manufacturer: Intel # model: Model 3 # slug: model-3 # is_full_depth: false # u_height: 0 +# custom_fields: +# text_field: Description # - manufacturer: NoName # model: Other # slug: other +# custom_fields: +# text_field: Description diff --git a/initializers/devices.yml b/initializers/devices.yml index 93334c9..0beb6f2 100644 --- a/initializers/devices.yml +++ b/initializers/devices.yml @@ -1,6 +1,6 @@ # - name: server01 # device_role: server -# device_type: other +# device_type: Other # site: AMS 1 # rack: rack-01 # face: Front @@ -9,7 +9,7 @@ # text_field: Description # - name: server02 # device_role: server -# device_type: other +# device_type: Other # site: AMS 2 # rack: rack-02 # face: Front @@ -18,7 +18,7 @@ # text_field: Description # - name: server03 # device_role: server -# device_type: other +# device_type: Other # site: SING 1 # rack: rack-03 # face: Front diff --git a/initializers/racks.yml b/initializers/racks.yml index 7a06b08..9a71743 100644 --- a/initializers/racks.yml +++ b/initializers/racks.yml @@ -1,6 +1,6 @@ # - site: AMS 1 # name: rack-01 -# role: role-1 +# role: Role 1 # type: 4-post cabinet # width: 19 inches # u_height: 47 @@ -8,7 +8,7 @@ # text_field: Description # - site: AMS 2 # name: rack-02 -# role: role-2 +# role: Role 2 # type: 4-post cabinet # width: 19 inches # u_height: 47 @@ -16,7 +16,7 @@ # text_field: Description # - site: SING 1 # name: rack-03 -# role: role-3 +# role: Role 3 # type: 4-post cabinet # width: 19 inches # u_height: 47 diff --git a/initializers/sites.yml b/initializers/sites.yml index 2d48feb..2381f99 100644 --- a/initializers/sites.yml +++ b/initializers/sites.yml @@ -4,21 +4,29 @@ # status: 1 # facility: Amsterdam 1 # asn: 12345 +# custom_fields: +# text_field: Description # - name: AMS 2 # slug: ams2 # region: Downtown # status: 1 # facility: Amsterdam 2 # asn: 54321 +# custom_fields: +# text_field: Description # - name: AMS 3 # slug: ams3 # region: Suburbs # status: 1 # facility: Amsterdam 3 # asn: 67890 +# custom_fields: +# text_field: Description # - name: SING 1 # slug: sing1 # region: Singapore # status: 1 # facility: Singapore 1 # asn: 09876 +# custom_fields: +# text_field: Description