Skip to content

Commit

Permalink
Merge pull request #46 from F5Networks/devel_09122024_vendorsync
Browse files Browse the repository at this point in the history
vendor sync
  • Loading branch information
RavinderReddyF5 authored Dec 9, 2024
2 parents 991a35c + 3242546 commit 0fc1246
Show file tree
Hide file tree
Showing 9 changed files with 1,313 additions and 7 deletions.
195 changes: 195 additions & 0 deletions docs/resources/cm_instance_onboard.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,195 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "bigipnext_cm_instance_onboard Resource - terraform-provider-bigipnext"
subcategory: ""
description: |-
Configure NEXT instances onboarding (DNS Servers, NTP Servers, L1 Networks along with VLANs and Self IPs).
Note: Delete call is just for clearing the state, It makes no changes on the CM
---

# bigipnext_cm_instance_onboard (Resource)

Configure NEXT instances onboarding (DNS Servers, NTP Servers, L1 Networks along with VLANs and Self IPs).
Note: Delete call is just for clearing the state, It makes no changes on the CM

## Example Usage

```terraform
# example to Configure NEXT instances (with DNS Servers, NTP Servers)
resource "bigipnext_cm_instance_onboard" "test" {
dns_servers = ["2.2.2.4"]
ntp_servers = ["4.pool.com"]
management_address = "10.218.135.67"
timeout = 300
}
# example to Configure NEXT instances (with DNS Servers, NTP Servers, L1 Networks)
resource "bigipnext_cm_instance_onboard" "test" {
dns_servers = ["2.2.2.4"]
ntp_servers = ["4.pool.com"]
management_address = "10.218.135.67"
l1_networks = [{
name = "l1network4"
l1_link = {
name = "1.1"
link_type : "Interface"
}
}]
timeout = 300
}
# example to Configure NEXT instances (with DNS Servers, NTP Servers, L1 Networks, VLANs)
resource "bigipnext_cm_instance_onboard" "test" {
dns_servers = ["2.2.2.4"]
ntp_servers = ["4.pool.com"]
management_address = "10.218.135.67"
l1_networks = [{
name = "l1network4"
vlans = [
{
tag = 104
name = "vlan104"
}
]
l1_link = {
name = "1.1"
link_type : "Interface"
}
}]
timeout = 300
}
# example to Configure NEXT instances (with DNS Servers, NTP Servers, L1 Networks, VLANs, SelfIPs)
resource "bigipnext_cm_instance_onboard" "test" {
dns_servers = ["2.2.2.5"]
ntp_servers = ["5.pool.com"]
management_address = "10.218.135.67"
l1_networks = [{
name = "l1network4"
vlans = [
{
tag = 104
name = "vlan104"
self_ips = [
{
address = "20.20.20.24/24"
device_name = "device4"
}
]
}
]
l1_link = {
name = "1.1"
link_type : "Interface"
}
}]
timeout = 300
}
# example to Configure/Update NEXT instances (with multiple L1 Networks)
resource "bigipnext_cm_instance_onboard" "sample123" {
dns_servers = ["2.2.2.6"]
ntp_servers = ["5.pool.com"]
management_address = "10.218.135.67"
l1_networks = [
{
name = "l1network-internal"
vlans = [
{
tag = 105
name = "vlan105"
self_ips = [
{
address = "20.20.20.25/24"
device_name = "device5"
}
]
}
]
l1_link = {
name = "1.1"
link_type = "Interface"
}
},
{
name = "l1network-external"
vlans = [
{
tag = 106
name = "vlan106"
self_ips = [
{
address = "20.20.20.26/24"
device_name = "device6"
}
]
}
]
l1_link = {
name = "1.2"
link_type = "Interface"
}
}
]
timeout = 300
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `dns_servers` (List of String) DNS servers to be Added.
- `management_address` (String) The desired management Address of the Deployment.
- `ntp_servers` (List of String) NTP servers to be Added.

### Optional

- `l1_networks` (Attributes List) (see [below for nested schema](#nestedatt--l1_networks))
- `timeout` (Number) The number of seconds to wait for instance onboard to finish.

### Read-Only

- `id` (String) Unique Identifier for the resource

<a id="nestedatt--l1_networks"></a>
### Nested Schema for `l1_networks`

Required:

- `l1_link` (Attributes) L1 link layer interface. (see [below for nested schema](#nestedatt--l1_networks--l1_link))
- `name` (String) L1 network name.

Optional:

- `vlans` (Attributes List) (see [below for nested schema](#nestedatt--l1_networks--vlans))

<a id="nestedatt--l1_networks--l1_link"></a>
### Nested Schema for `l1_networks.l1_link`

Required:

- `link_type` (String) L1 Link type..
- `name` (String) A soft reference, by name, to an L1 link layer interface.


<a id="nestedatt--l1_networks--vlans"></a>
### Nested Schema for `l1_networks.vlans`

Required:

- `name` (String) L1 network name.
- `tag` (Number) An unsigned 32-bit integer..

Optional:

- `self_ips` (Attributes List) (see [below for nested schema](#nestedatt--l1_networks--vlans--self_ips))

<a id="nestedatt--l1_networks--vlans--self_ips"></a>
### Nested Schema for `l1_networks.vlans.self_ips`

Required:

- `address` (String) An IPv4 or IPv6 prefix.
- `device_name` (String) Specifies the node that this non-floating self-IP address belongs to.
118 changes: 118 additions & 0 deletions examples/resources/bigipnext_cm_instance_onboard/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
# example to Configure NEXT instances (with DNS Servers, NTP Servers)
resource "bigipnext_cm_instance_onboard" "test" {
dns_servers = ["2.2.2.4"]
ntp_servers = ["4.pool.com"]
management_address = "10.218.135.67"
timeout = 300
}

# example to Configure NEXT instances (with DNS Servers, NTP Servers, L1 Networks)
resource "bigipnext_cm_instance_onboard" "test" {
dns_servers = ["2.2.2.4"]
ntp_servers = ["4.pool.com"]
management_address = "10.218.135.67"
l1_networks = [{
name = "l1network4"
l1_link = {
name = "1.1"
link_type : "Interface"
}
}]
timeout = 300
}

# example to Configure NEXT instances (with DNS Servers, NTP Servers, L1 Networks, VLANs)
resource "bigipnext_cm_instance_onboard" "test" {
dns_servers = ["2.2.2.4"]
ntp_servers = ["4.pool.com"]
management_address = "10.218.135.67"
l1_networks = [{
name = "l1network4"
vlans = [
{
tag = 104
name = "vlan104"
}
]
l1_link = {
name = "1.1"
link_type : "Interface"
}
}]
timeout = 300
}

# example to Configure NEXT instances (with DNS Servers, NTP Servers, L1 Networks, VLANs, SelfIPs)
resource "bigipnext_cm_instance_onboard" "test" {
dns_servers = ["2.2.2.5"]
ntp_servers = ["5.pool.com"]
management_address = "10.218.135.67"
l1_networks = [{
name = "l1network4"
vlans = [
{
tag = 104
name = "vlan104"
self_ips = [
{
address = "20.20.20.24/24"
device_name = "device4"
}
]
}
]
l1_link = {
name = "1.1"
link_type : "Interface"
}
}]
timeout = 300
}

# example to Configure/Update NEXT instances (with multiple L1 Networks)
resource "bigipnext_cm_instance_onboard" "sample123" {
dns_servers = ["2.2.2.6"]
ntp_servers = ["5.pool.com"]
management_address = "10.218.135.67"
l1_networks = [
{
name = "l1network-internal"
vlans = [
{
tag = 105
name = "vlan105"
self_ips = [
{
address = "20.20.20.25/24"
device_name = "device5"
}
]
}
]
l1_link = {
name = "1.1"
link_type = "Interface"
}
},
{
name = "l1network-external"
vlans = [
{
tag = 106
name = "vlan106"
self_ips = [
{
address = "20.20.20.26/24"
device_name = "device6"
}
]
}
]
l1_link = {
name = "1.2"
link_type = "Interface"
}
}
]
timeout = 300
}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require (
github.com/hashicorp/terraform-plugin-go v0.22.1
github.com/hashicorp/terraform-plugin-log v0.9.0
github.com/hashicorp/terraform-plugin-testing v1.7.0
gitswarm.f5net.com/terraform-providers/bigipnext v0.0.5
gitswarm.f5net.com/terraform-providers/bigipnext v0.0.6
)

require (
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ github.com/yuin/goldmark-meta v1.1.0 h1:pWw+JLHGZe8Rk0EGsMVssiNb/AaPMHfSRszZeUei
github.com/yuin/goldmark-meta v1.1.0/go.mod h1:U4spWENafuA7Zyg+Lj5RqK/MF+ovMYtBvXi1lBb2VP0=
github.com/zclconf/go-cty v1.14.3 h1:1JXy1XroaGrzZuG6X9dt7HL6s9AwbY+l4UNL8o5B6ho=
github.com/zclconf/go-cty v1.14.3/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE=
gitswarm.f5net.com/terraform-providers/bigipnext v0.0.5 h1:NAFKv63B/SMIAHZe8ngphTq0DqMXZgJmkSxJc5Ss+y8=
gitswarm.f5net.com/terraform-providers/bigipnext v0.0.5/go.mod h1:SLwUYHgvE++OJL3tdWyNT4vbu094xMq8sQZyei0r3So=
gitswarm.f5net.com/terraform-providers/bigipnext v0.0.6 h1:DzT5ePpprPXAMfeA4lM2UqEWnKb49FlOuWG4PSCX3xk=
gitswarm.f5net.com/terraform-providers/bigipnext v0.0.6/go.mod h1:SLwUYHgvE++OJL3tdWyNT4vbu094xMq8sQZyei0r3So=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4=
Expand Down
Loading

0 comments on commit 0fc1246

Please sign in to comment.