Added external-key and resource-name custom fields 27/63327/3
authorAlexis de Talhouët <adetalhouet89@gmail.com>
Tue, 28 Aug 2018 20:20:38 +0000 (16:20 -0400)
committerAlexis de Talhouët <adetalhouet89@gmail.com>
Wed, 29 Aug 2018 18:24:53 +0000 (14:24 -0400)
During the self serve flow, the resources can be uniquely
identify using a external-key, allowing the DG to retrieve
the data from SDNC DB very easily for unassign purposes.
The resource-name has been added in order to provide more
information for the netbox admin, allowing him to have a
clear idea what purpose the ip is serving; given the
resource-name passed on by the designed is meaningfull.

Change-Id: I33bb74b9bca8009e70faede8001c34a451ad205f
Issue-ID: CCSDK-366
Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
kubernetes/contrib/charts/netbox/charts/netbox-app/resources/config/initializers/custom_fields.yml

index ccde9a0..c23e29a 100755 (executable)
@@ -1,66 +1,18 @@
-# text_field:
-#   type: text
-#   label: Custom Text
-#   description: Enter text in a text field.
-#   required: false
-#   filterable: true
-#   weight: 0
-#   on_objects:
-#   - dcim.models.Device
-#   - dcim.models.Rack
-#   - ipam.models.IPAddress
-#   - ipam.models.Prefix
-#   - tenancy.models.Tenant
-#   - virtualization.models.VirtualMachine
-# integer_field:
-#   type: integer
-#   label: Custom Number
-#   description: Enter numbers into an integer field.
-#   required: true
-#   filterable: true
-#   weight: 10
-#   on_objects:
-#   - tenancy.models.Tenant
-# selection_field:
-#   type: selection
-#   label: Choose between items
-#   required: false
-#   filterable: true
-#   weight: 30
-#   on_objects:
-#   - dcim.models.Device
-#   choices:
-#   - value: First Item
-#     weight: 10
-#   - value: Second Item
-#     weight: 20
-#   - value: Third Item
-#     weight: 30
-#   - value: Fifth Item
-#     weight: 50
-#   - value: Fourth Item
-#     weight: 40
-# boolean_field:
-#   type: boolean
-#   label: Yes Or No?
-#   required: true
-#   filterable: true
-#   default: "false" # important: but "false" in quotes!
-#   weight: 90
-#   on_objects:
-#   - dcim.models.Device
-# url_field:
-#   type: url
-#   label: Hyperlink
-#   description: Link to something nice.
-#   required: true
-#   filterable: false
-#   on_objects:
-#   - tenancy.models.Tenant
-# date_field:
-#   type: date
-#   label: Important Date
-#   required: false
-#   filterable: false
-#   on_objects:
-#   - dcim.models.Device
+external-key: 
+  description: "The external-key uniquely identify the resources to a service within ONAP."
+  filterable: true
+  label: ONAP external key
+  on_objects: 
+    - ipam.models.IPAddress
+  required: true
+  type: text
+  weight: 0
+resource-name:
+  description: "The resource-name of the element using this IP."
+  filterable: true
+  label: ONAP resource name
+  on_objects:
+    - ipam.models.IPAddress
+  required: true
+  type: text
+  weight: 0
\ No newline at end of file