Skip to content

Commit

Permalink
Implement session resource
Browse files Browse the repository at this point in the history
  • Loading branch information
mraerino committed Jul 13, 2024
1 parent 378f400 commit 6eace79
Show file tree
Hide file tree
Showing 8 changed files with 629 additions and 214 deletions.
25 changes: 0 additions & 25 deletions docs/resources/example.md

This file was deleted.

42 changes: 42 additions & 0 deletions docs/resources/session.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "netboxbgp_session Resource - netboxbgp"
subcategory: ""
description: |-
Session resource
---

# netboxbgp_session (Resource)

Session resource



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

### Required

- `device_id` (Number)
- `local_address_id` (Number)
- `local_as_id` (Number)
- `name` (String)
- `remote_address_id` (Number)
- `remote_as_id` (Number)
- `status` (String) One of: "active", "failed", "offline", "planned"

### Optional

- `comments` (String)
- `description` (String)
- `export_policy_ids` (List of Number)
- `import_policy_ids` (List of Number)
- `peer_group_id` (Number)
- `prefix_list_in_id` (Number)
- `prefix_list_out` (Number)
- `site_id` (Number)
- `tenant_id` (Number)

### Read-Only

- `id` (Number) ID of the resource in Netbox
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module github.com/ffddorf/terraform-provider-netbox-bgp
go 1.22

require (
github.com/google/uuid v1.6.0
github.com/hashicorp/terraform-plugin-docs v0.19.4
github.com/hashicorp/terraform-plugin-framework v1.10.0
github.com/hashicorp/terraform-plugin-go v0.23.0
Expand Down Expand Up @@ -33,7 +34,6 @@ require (
github.com/go-openapi/swag v0.22.8 // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/hashicorp/cli v1.1.6 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-checkpoint v0.5.0 // indirect
Expand Down
Loading

0 comments on commit 6eace79

Please sign in to comment.