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

Feature NGOAM #291

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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_ngoam.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_ngoam Data Source - terraform-provider-nxos"
subcategory: "Feature"
description: |-
This data source can read the VXLAN operations, administration, and maintenance feature.
API Documentation: fmNgoam https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/Feature%20Management/fm:Ngoam/
---

# nxos_feature_ngoam (Data Source)

This data source can read the VXLAN operations, administration, and maintenance feature.

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

## Example Usage

```terraform
data "nxos_feature_ngoam" "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 @@ -56,6 +56,7 @@ For the following DME objects a corresponding Terraform resource and data source
| [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) |
| [fmNgoam](https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/Feature%20Management/fm:Ngoam/) | [nxos_feature_ngoam](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/feature_ngoam) | [nxos_feature_ngoam](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/data-sources/feature_ngoam) |
| [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_ngoam.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_ngoam Resource - terraform-provider-nxos"
subcategory: "Feature"
description: |-
This resource can manage the VXLAN operations, administration, and maintenance feature.
API Documentation: fmNgoam https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/Feature%20Management/fm:Ngoam/
---

# nxos_feature_ngoam (Resource)

This resource can manage the VXLAN operations, administration, and maintenance feature.

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

## Example Usage

```terraform
resource "nxos_feature_ngoam" "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_ngoam.example "sys/fm/ngoam"
```
2 changes: 2 additions & 0 deletions examples/data-sources/nxos_feature_ngoam/data-source.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
data "nxos_feature_ngoam" "example" {
}
1 change: 1 addition & 0 deletions examples/resources/nxos_feature_ngoam/import.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
terraform import nxos_feature_ngoam.example "sys/fm/ngoam"
3 changes: 3 additions & 0 deletions examples/resources/nxos_feature_ngoam/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
resource "nxos_feature_ngoam" "example" {
admin_state = "enabled"
}
19 changes: 19 additions & 0 deletions gen/definitions/feature_ngoam.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Feature NGOAM
class_name: fmNgoam
dn: sys/fm/ngoam
ds_description: This data source can read the VXLAN operations, administration, and maintenance feature.
res_description: This resource can manage the VXLAN operations, administration, and maintenance feature.
doc_path: Feature%20Management/fm:Ngoam/
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_ngoam.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_ngoam_test.go

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

69 changes: 69 additions & 0 deletions internal/provider/model_nxos_feature_ngoam.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