Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add feature ngmvpn #277

Merged
merged 3 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions docs/data-sources/feature_ngmvpn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "nxos_feature_ngmvpn Data Source - terraform-provider-nxos"
subcategory: "Feature"
description: |-
This data source can read the Next Generation Multicast VPN Feature.
API Documentation: fmNgmvpn https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/Feature%20Management/fm:NgMvpn/
---

# nxos_feature_ngmvpn (Data Source)

This data source can read the Next Generation Multicast VPN Feature.

- API Documentation: [fmNgmvpn](https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/Feature%20Management/fm:NgMvpn/)

## Example Usage

```terraform
data "nxos_feature_ngmvpn" "example" {
}
```

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

### Optional

- `device` (String) A device name from the provider configuration.

### Read-Only

- `admin_state` (String) Administrative state.
- `id` (String) The distinguished name of the object.
1 change: 1 addition & 0 deletions docs/guides/supported_objects.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ For the following DME objects a corresponding Terraform resource and data source
| [fmLldp](https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/Feature%20Management/fm:Lldp/) | [nxos_feature_lldp](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/feature_lldp) | [nxos_feature_lldp](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/data-sources/feature_lldp) |
| [fmMacsec](https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/Feature%20Management/fm:Macsec/) | [nxos_feature_macsec](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/feature_macsec) | [nxos_feature_macsec](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/data-sources/feature_macsec) |
| [fmNetflow](https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/Feature%20Management/fm:Netflow/) | [nxos_feature_netflow](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/feature_netflow) | [nxos_feature_netflow](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/data-sources/feature_netflow) |
| [fmNgmvpn](https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/Feature%20Management/fm:NgMvpn/) | [nxos_feature_ngmvpn](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/feature_ngmvpn) | [nxos_feature_ngmvpn](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/data-sources/feature_ngmvpn) |
| [fmNvo](https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/Feature%20Management/fm:Nvo/) | [nxos_feature_nv_overlay](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/feature_nv_overlay) | [nxos_feature_nv_overlay](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/data-sources/feature_nv_overlay) |
| [fmOspf](https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/Feature%20Management/fm:Ospf/) | [nxos_feature_ospf](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/feature_ospf) | [nxos_feature_ospf](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/data-sources/feature_ospf) |
| [fmOspfv3](https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/Feature%20Management/fm:Ospfv3/) | [nxos_feature_ospfv3](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/feature_ospfv3) | [nxos_feature_ospfv3](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/data-sources/feature_ospfv3) |
Expand Down
46 changes: 46 additions & 0 deletions docs/resources/feature_ngmvpn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "nxos_feature_ngmvpn Resource - terraform-provider-nxos"
subcategory: "Feature"
description: |-
This resource can manage the Next Generation Multicast VPN Feature.
API Documentation: fmNgmvpn https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/Feature%20Management/fm:NgMvpn/
---

# nxos_feature_ngmvpn (Resource)

This resource can manage the Next Generation Multicast VPN Feature.

- API Documentation: [fmNgmvpn](https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/Feature%20Management/fm:NgMvpn/)

## Example Usage

```terraform
resource "nxos_feature_ngmvpn" "example" {
admin_state = "enabled"
}
```

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

### Required

- `admin_state` (String) Administrative state.
- Choices: `enabled`, `disabled`

### Optional

- `device` (String) A device name from the provider configuration.

### Read-Only

- `id` (String) The distinguished name of the object.

## Import

Import is supported using the following syntax:

```shell
terraform import nxos_feature_ngmvpn.example "sys/fm/ngmvpn"
```
2 changes: 2 additions & 0 deletions examples/data-sources/nxos_feature_ngmvpn/data-source.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
data "nxos_feature_ngmvpn" "example" {
}
1 change: 1 addition & 0 deletions examples/resources/nxos_feature_ngmvpn/import.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
terraform import nxos_feature_ngmvpn.example "sys/fm/ngmvpn"
3 changes: 3 additions & 0 deletions examples/resources/nxos_feature_ngmvpn/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
resource "nxos_feature_ngmvpn" "example" {
admin_state = "enabled"
}
19 changes: 19 additions & 0 deletions gen/definitions/feature_ngmvpn.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Feature ngMVPN
class_name: fmNgmvpn
dn: sys/fm/ngmvpn
ds_description: This data source can read the Next Generation Multicast VPN Feature.
res_description: This resource can manage the Next Generation Multicast VPN Feature.
doc_path: Feature%20Management/fm:NgMvpn/
doc_category: Feature
attributes:
- nxos_name: adminSt
tf_name: admin_state
type: String
mandatory: true
description: "Administrative state."
enum_values:
- enabled
- disabled
example: enabled
delete_value: disabled
108 changes: 108 additions & 0 deletions internal/provider/data_source_nxos_feature_ngmvpn.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

52 changes: 52 additions & 0 deletions internal/provider/data_source_nxos_feature_ngmvpn_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

66 changes: 66 additions & 0 deletions internal/provider/model_nxos_feature_ngmvpn.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions internal/provider/provider.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading