From 418aeea4f7d17708db2598463dffd5dd1548b8da Mon Sep 17 00:00:00 2001 From: Alexis de Talhouët Date: Tue, 28 Aug 2018 16:20:38 -0400 Subject: Added external-key and resource-name custom fields MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .../config/initializers/custom_fields.yml | 84 +++++----------------- 1 file changed, 18 insertions(+), 66 deletions(-) (limited to 'kubernetes/contrib/charts/netbox') diff --git a/kubernetes/contrib/charts/netbox/charts/netbox-app/resources/config/initializers/custom_fields.yml b/kubernetes/contrib/charts/netbox/charts/netbox-app/resources/config/initializers/custom_fields.yml index ccde9a0fbc..c23e29a11d 100755 --- a/kubernetes/contrib/charts/netbox/charts/netbox-app/resources/config/initializers/custom_fields.yml +++ b/kubernetes/contrib/charts/netbox/charts/netbox-app/resources/config/initializers/custom_fields.yml @@ -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 -- cgit 1.2.3-korg