From 0673b061c6f8b36262f289697b0d6470137a02b0 Mon Sep 17 00:00:00 2001 From: Samuel Mutel <12967891+smutel@users.noreply.github.com> Date: Fri, 22 Sep 2023 17:46:21 +0200 Subject: [PATCH 1/2] enh: Add some missing examples in doc --- examples/data-sources/netbox_tenancy_contact/data-source.tf | 3 +++ .../data-sources/netbox_tenancy_contact_group/data-source.tf | 3 +++ .../data-sources/netbox_tenancy_contact_role/data-source.tf | 3 +++ examples/data-sources/netbox_tenancy_tenant/data-source.tf | 3 +++ .../data-sources/netbox_tenancy_tenant_group/data-source.tf | 3 +++ .../data-sources/netbox_virtualization_cluster/data-source.tf | 4 ++++ 6 files changed, 19 insertions(+) create mode 100644 examples/data-sources/netbox_tenancy_contact/data-source.tf create mode 100644 examples/data-sources/netbox_tenancy_contact_group/data-source.tf create mode 100644 examples/data-sources/netbox_tenancy_contact_role/data-source.tf create mode 100644 examples/data-sources/netbox_tenancy_tenant/data-source.tf create mode 100644 examples/data-sources/netbox_tenancy_tenant_group/data-source.tf create mode 100644 examples/data-sources/netbox_virtualization_cluster/data-source.tf diff --git a/examples/data-sources/netbox_tenancy_contact/data-source.tf b/examples/data-sources/netbox_tenancy_contact/data-source.tf new file mode 100644 index 000000000..14b37e5d6 --- /dev/null +++ b/examples/data-sources/netbox_tenancy_contact/data-source.tf @@ -0,0 +1,3 @@ +data "netbox_tenancy_contact" "tenancy_contact_test" { + name = "TestContact" +} diff --git a/examples/data-sources/netbox_tenancy_contact_group/data-source.tf b/examples/data-sources/netbox_tenancy_contact_group/data-source.tf new file mode 100644 index 000000000..26c355ae3 --- /dev/null +++ b/examples/data-sources/netbox_tenancy_contact_group/data-source.tf @@ -0,0 +1,3 @@ +data "netbox_tenancy_contact_group" "tenancy_contact_group_test" { + slug = "TestContactGroup" +} diff --git a/examples/data-sources/netbox_tenancy_contact_role/data-source.tf b/examples/data-sources/netbox_tenancy_contact_role/data-source.tf new file mode 100644 index 000000000..3d6b1505a --- /dev/null +++ b/examples/data-sources/netbox_tenancy_contact_role/data-source.tf @@ -0,0 +1,3 @@ +data "netbox_tenancy_contact_role" "tenancy_contact_role_test" { + slug = "TestContactRole" +} diff --git a/examples/data-sources/netbox_tenancy_tenant/data-source.tf b/examples/data-sources/netbox_tenancy_tenant/data-source.tf new file mode 100644 index 000000000..0522d5088 --- /dev/null +++ b/examples/data-sources/netbox_tenancy_tenant/data-source.tf @@ -0,0 +1,3 @@ +data "netbox_tenancy_tenant" "tenancy_tenant" { + slug = "TestTenant" +} diff --git a/examples/data-sources/netbox_tenancy_tenant_group/data-source.tf b/examples/data-sources/netbox_tenancy_tenant_group/data-source.tf new file mode 100644 index 000000000..51adc1a33 --- /dev/null +++ b/examples/data-sources/netbox_tenancy_tenant_group/data-source.tf @@ -0,0 +1,3 @@ +data "netbox_tenancy_tenant_group" "tenancy_tenant_group" { + slug = "TestTenantGroup" +} diff --git a/examples/data-sources/netbox_virtualization_cluster/data-source.tf b/examples/data-sources/netbox_virtualization_cluster/data-source.tf new file mode 100644 index 000000000..26a055d46 --- /dev/null +++ b/examples/data-sources/netbox_virtualization_cluster/data-source.tf @@ -0,0 +1,4 @@ +data "netbox_virtualization_cluster" "virtualization_cluster" { + name = "TestCluster" + site_id = 1 +} From d607ba594c9440bb1127bc20f8645b50bc2990e3 Mon Sep 17 00:00:00 2001 From: Samuel Mutel <12967891+smutel@users.noreply.github.com> Date: Fri, 22 Sep 2023 17:46:58 +0200 Subject: [PATCH 2/2] enh: Remove unused exports csv --- examples/exports/v3.3/netbox_dcim_device roles.csv | 2 -- examples/exports/v3.3/netbox_dcim_platforms.csv | 4 ---- examples/exports/v3.3/netbox_dcim_sites.csv | 2 -- examples/exports/v3.3/netbox_extras_custom fields.csv | 11 ----------- examples/exports/v3.3/netbox_extras_tags.csv | 3 --- examples/exports/v3.3/netbox_ipam_RIRs.csv | 2 -- examples/exports/v3.3/netbox_ipam_roles.csv | 3 --- examples/exports/v3.3/netbox_ipam_vrfs.csv | 2 -- .../v3.3/netbox_virtualization_cluster types.csv | 2 -- .../exports/v3.3/netbox_virtualization_clusters.csv | 2 -- examples/exports/v3.4/netbox_ipam_vrfs.csv | 2 -- 11 files changed, 35 deletions(-) delete mode 100644 examples/exports/v3.3/netbox_dcim_device roles.csv delete mode 100644 examples/exports/v3.3/netbox_dcim_platforms.csv delete mode 100644 examples/exports/v3.3/netbox_dcim_sites.csv delete mode 100644 examples/exports/v3.3/netbox_extras_custom fields.csv delete mode 100644 examples/exports/v3.3/netbox_extras_tags.csv delete mode 100644 examples/exports/v3.3/netbox_ipam_RIRs.csv delete mode 100644 examples/exports/v3.3/netbox_ipam_roles.csv delete mode 100644 examples/exports/v3.3/netbox_ipam_vrfs.csv delete mode 100644 examples/exports/v3.3/netbox_virtualization_cluster types.csv delete mode 100644 examples/exports/v3.3/netbox_virtualization_clusters.csv delete mode 100644 examples/exports/v3.4/netbox_ipam_vrfs.csv diff --git a/examples/exports/v3.3/netbox_dcim_device roles.csv b/examples/exports/v3.3/netbox_dcim_device roles.csv deleted file mode 100644 index e29334a4f..000000000 --- a/examples/exports/v3.3/netbox_dcim_device roles.csv +++ /dev/null @@ -1,2 +0,0 @@ -name,color,vm_role,description,slug -test,9e9e9e,True,"Test Device Role",test diff --git a/examples/exports/v3.3/netbox_dcim_platforms.csv b/examples/exports/v3.3/netbox_dcim_platforms.csv deleted file mode 100644 index dc7a7f3f1..000000000 --- a/examples/exports/v3.3/netbox_dcim_platforms.csv +++ /dev/null @@ -1,4 +0,0 @@ -name,description,slug -Debian_10,"Test platform",Debian_10 -"Ubuntu 22.04","Test platform",ubuntu_22_04 -"Ubuntu 22.10","Test platform",ubuntu_22_10 diff --git a/examples/exports/v3.3/netbox_dcim_sites.csv b/examples/exports/v3.3/netbox_dcim_sites.csv deleted file mode 100644 index 07516c54c..000000000 --- a/examples/exports/v3.3/netbox_dcim_sites.csv +++ /dev/null @@ -1,2 +0,0 @@ -name,status,description,slug -pa3,active,"Test site",pa3 diff --git a/examples/exports/v3.3/netbox_extras_custom fields.csv b/examples/exports/v3.3/netbox_extras_custom fields.csv deleted file mode 100644 index c49360b24..000000000 --- a/examples/exports/v3.3/netbox_extras_custom fields.csv +++ /dev/null @@ -1,11 +0,0 @@ -name,content_types,label,type,required,description,weight,default,filter_logic,choices,object_type,ui_visibility -cf_boolean,"virtualization.virtualmachine,tenancy.tenant,tenancy.contactrole,tenancy.contactgroup,ipam.aggregate,ipam.ipaddress,ipam.prefix,tenancy.contact,ipam.vlan,ipam.service,ipam.iprange","Boolean field",boolean,False,,100,,loose,,,read-write -cf_date,"tenancy.tenant,tenancy.contactrole,tenancy.contactgroup,ipam.aggregate,ipam.ipaddress,ipam.prefix,tenancy.contact,virtualization.virtualmachine,ipam.vlan,ipam.service,ipam.iprange",,date,False,,100,,loose,,,read-write -cf_integer,"tenancy.tenant,tenancy.contactrole,tenancy.contactgroup,ipam.aggregate,ipam.ipaddress,ipam.prefix,tenancy.contact,virtualization.virtualmachine,ipam.vlan,ipam.service,ipam.iprange",,integer,False,,100,,loose,,,read-write -cf_multi_selection,"tenancy.tenant,tenancy.contactrole,tenancy.contactgroup,ipam.aggregate,ipam.ipaddress,ipam.prefix,tenancy.contact,virtualization.virtualmachine,ipam.vlan,ipam.service,ipam.iprange",,multiselect,False,,100,,loose,"0,1",,read-write -cf_selection,"tenancy.tenant,tenancy.contactrole,tenancy.contactgroup,ipam.aggregate,ipam.ipaddress,ipam.prefix,tenancy.contact,virtualization.virtualmachine,ipam.vlan,ipam.service,ipam.iprange",,select,False,,100,,loose,"0,1",,read-write -cf_text,"tenancy.tenant,tenancy.contactrole,tenancy.contactgroup,ipam.aggregate,ipam.ipaddress,ipam.prefix,tenancy.contact,virtualization.virtualmachine,ipam.vlan,ipam.service,ipam.iprange",,text,False,,100,,loose,,,read-write -cf_url,"tenancy.tenant,tenancy.contactrole,tenancy.contactgroup,ipam.aggregate,ipam.ipaddress,ipam.prefix,tenancy.contact,virtualization.virtualmachine,ipam.vlan,ipam.service,ipam.iprange",,url,False,,100,,loose,,,read-write -cf_json,"tenancy.tenant,tenancy.contactrole,tenancy.contactgroup,ipam.aggregate,ipam.ipaddress,ipam.prefix,tenancy.contact,virtualization.virtualmachine,ipam.vlan,ipam.service,ipam.iprange",,json,False,,100,,loose,,,read-write -cf_multi_object,"tenancy.tenant,tenancy.contactrole,tenancy.contactgroup,ipam.aggregate,ipam.ipaddress,ipam.prefix,tenancy.contact,virtualization.virtualmachine,ipam.vlan,ipam.service,ipam.iprange",,multiobject,False,,100,,loose,,dcim.platform,read-write -cf_object,"tenancy.tenant,tenancy.contactrole,tenancy.contactgroup,ipam.aggregate,ipam.ipaddress,ipam.prefix,tenancy.contact,virtualization.virtualmachine,ipam.vlan,ipam.service,ipam.iprange",,multiobject,False,,100,,loose,,dcim.platform,read-write diff --git a/examples/exports/v3.3/netbox_extras_tags.csv b/examples/exports/v3.3/netbox_extras_tags.csv deleted file mode 100644 index 79a1b120f..000000000 --- a/examples/exports/v3.3/netbox_extras_tags.csv +++ /dev/null @@ -1,3 +0,0 @@ -name,slug,color,description -tag1,tag1,9e9e9e, -tag2,tag2,9e9e9e, diff --git a/examples/exports/v3.3/netbox_ipam_RIRs.csv b/examples/exports/v3.3/netbox_ipam_RIRs.csv deleted file mode 100644 index eaef794ac..000000000 --- a/examples/exports/v3.3/netbox_ipam_RIRs.csv +++ /dev/null @@ -1,2 +0,0 @@ -name,is_private,description,slug -test,False,"Test RIR",test diff --git a/examples/exports/v3.3/netbox_ipam_roles.csv b/examples/exports/v3.3/netbox_ipam_roles.csv deleted file mode 100644 index ff32ea066..000000000 --- a/examples/exports/v3.3/netbox_ipam_roles.csv +++ /dev/null @@ -1,3 +0,0 @@ -name,description,slug,weight -backup,,backup,1000 -production,,production,1000 diff --git a/examples/exports/v3.3/netbox_ipam_vrfs.csv b/examples/exports/v3.3/netbox_ipam_vrfs.csv deleted file mode 100644 index f9cc5624e..000000000 --- a/examples/exports/v3.3/netbox_ipam_vrfs.csv +++ /dev/null @@ -1,2 +0,0 @@ -name,rd,tenant,description -test,,, diff --git a/examples/exports/v3.3/netbox_virtualization_cluster types.csv b/examples/exports/v3.3/netbox_virtualization_cluster types.csv deleted file mode 100644 index c638b896d..000000000 --- a/examples/exports/v3.3/netbox_virtualization_cluster types.csv +++ /dev/null @@ -1,2 +0,0 @@ -name,description,slug -"Test Cluster Type","Test Cluster Type",test_cluster_type diff --git a/examples/exports/v3.3/netbox_virtualization_clusters.csv b/examples/exports/v3.3/netbox_virtualization_clusters.csv deleted file mode 100644 index 8280f8c19..000000000 --- a/examples/exports/v3.3/netbox_virtualization_clusters.csv +++ /dev/null @@ -1,2 +0,0 @@ -name,type,status -"Test Cluster","Test Cluster Type",active diff --git a/examples/exports/v3.4/netbox_ipam_vrfs.csv b/examples/exports/v3.4/netbox_ipam_vrfs.csv deleted file mode 100644 index f9cc5624e..000000000 --- a/examples/exports/v3.4/netbox_ipam_vrfs.csv +++ /dev/null @@ -1,2 +0,0 @@ -name,rd,tenant,description -test,,,