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

New route map for tags #289

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
41 changes: 41 additions & 0 deletions docs/data-sources/route_map_rule_entry_match_tag.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "nxos_route_map_rule_entry_match_tag Data Source - terraform-provider-nxos"
subcategory: "Routing"
description: |-
This data source can read a Match Tag in Route-Map Rule Entry configuration.
API Documentation: rtmapMatchRtTag https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/Routing%20and%20Forwarding/rtmap:MatchRtTag/
---

# nxos_route_map_rule_entry_match_tag (Data Source)

This data source can read a Match Tag in Route-Map Rule Entry configuration.

- API Documentation: [rtmapMatchRtTag](https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/Routing%20and%20Forwarding/rtmap:MatchRtTag/)

## Example Usage

```terraform
data "nxos_route_map_rule_entry_match_tag" "example" {
rule_name = "RULE1"
order = 10
tag = 12345
}
```

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

### Required

- `order` (Number) Route-Map Rule Entry order.
- `rule_name` (String) Route Map rule name.
- `tag` (Number) Route Map Tag Value

### Optional

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

### Read-Only

- `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 @@ -124,6 +124,7 @@ For the following DME objects a corresponding Terraform resource and data source
| [rtmapEntry](https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/Routing%20and%20Forwarding/rtmap:Entry/) | [nxos_route_map_rule_entry](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/route_map_rule_entry) | [nxos_route_map_rule_entry](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/data-sources/route_map_rule_entry) |
| [rtmapMatchRtDst](https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/Routing%20and%20Forwarding/rtmap:MatchRtDst/) | [nxos_route_map_rule_entry_match_route](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/route_map_rule_entry_match_route) | [nxos_route_map_rule_entry_match_route](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/data-sources/route_map_rule_entry_match_route) |
| [rtmapRsRtDstAtt](https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/Routing%20and%20Forwarding/rtmap:RsRtDstAtt/) | [nxos_route_map_rule_entry_match_route_prefix_list](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/route_map_rule_entry_match_route_prefix_list) | [nxos_route_map_rule_entry_match_route_prefix_list](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/data-sources/route_map_rule_entry_match_route_prefix_list) |
| [rtmapMatchRtTag](https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/Routing%20and%20Forwarding/rtmap:MatchRtTag/) | [nxos_route_map_rule_entry_match_tag](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/route_map_rule_entry_match_tag) | [nxos_route_map_rule_entry_match_tag](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/data-sources/route_map_rule_entry_match_tag) |
| [rtmapSetRegComm](https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/Routing%20and%20Forwarding/rtmap:SetRegComm/) | [nxos_route_map_rule_entry_set_regular_community](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/route_map_rule_entry_set_regular_community) | [nxos_route_map_rule_entry_set_regular_community](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/data-sources/route_map_rule_entry_set_regular_community) |
| [rtregcomItem](https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/Routing%20and%20Forwarding/rtregcom:Item/) | [nxos_route_map_rule_entry_set_regular_community_item](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/route_map_rule_entry_set_regular_community_item) | [nxos_route_map_rule_entry_set_regular_community_item](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/data-sources/route_map_rule_entry_set_regular_community_item) |
| [stpIf](https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/Discovery%20Protocols/stp:If/) | [nxos_spanning_tree_interface](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/spanning_tree_interface) | [nxos_spanning_tree_interface](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/data-sources/spanning_tree_interface) |
Expand Down
63 changes: 63 additions & 0 deletions docs/resources/route_map_rule_entry_match_tag.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "nxos_route_map_rule_entry_match_tag Resource - terraform-provider-nxos"
subcategory: "Routing"
description: |-
This resource can manage a Match Tag in Route-Map Rule Entry configuration.
API Documentation: rtmapMatchRtTag https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/Routing%20and%20Forwarding/rtmap:MatchRtTag/
Parent resources
nxos_route_map_rule_entry https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/route_map_rule_entry
Child resources
nxos_route_map_rule_entry_match_tag https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/route_map_rule_entry_match_tag
---

# nxos_route_map_rule_entry_match_tag (Resource)

This resource can manage a Match Tag in Route-Map Rule Entry configuration.

- API Documentation: [rtmapMatchRtTag](https://pubhub.devnetcloud.com/media/dme-docs-10-2-2/docs/Routing%20and%20Forwarding/rtmap:MatchRtTag/)

### Parent resources

- [nxos_route_map_rule_entry](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/route_map_rule_entry)

### Child resources

- [nxos_route_map_rule_entry_match_tag](https://registry.terraform.io/providers/CiscoDevNet/nxos/latest/docs/resources/route_map_rule_entry_match_tag)

## Example Usage

```terraform
resource "nxos_route_map_rule_entry_match_tag" "example" {
rule_name = "RULE1"
order = 10
tag = 12345
}
```

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

### Required

- `order` (Number) Route-Map Rule Entry order.
- Range: `0`-`65535`
- `rule_name` (String) Route Map rule name.
- `tag` (Number) Route Map Tag Value
- Range: `0`-`4294967295`

### 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_route_map_rule_entry_match_tag.example "sys/rpm/rtmap-[RULE1]/ent-[10]/mrttag-[12345]"
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
data "nxos_route_map_rule_entry_match_tag" "example" {
rule_name = "RULE1"
order = 10
tag = 12345
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
terraform import nxos_route_map_rule_entry_match_tag.example "sys/rpm/rtmap-[RULE1]/ent-[10]/mrttag-[12345]"
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
resource "nxos_route_map_rule_entry_match_tag" "example" {
rule_name = "RULE1"
order = 10
tag = 12345
}
50 changes: 50 additions & 0 deletions gen/definitions/route_map_rule_entry_match_tag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
name: Route Map Rule Entry Match Tag
class_name: rtmapMatchRtTag
dn: sys/rpm/rtmap-[%s]/ent-[%v]/mrttag-[%v]
ds_description: This data source can read a Match Tag in Route-Map Rule Entry configuration.
res_description: This resource can manage a Match Tag in Route-Map Rule Entry configuration.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove the extra space here.

doc_path: Routing%20and%20Forwarding/rtmap:MatchRtTag/
doc_category: Routing
parents:
- Route Map Rule Entry
children:
- Route Map Rule Entry Match Tag
attributes:
- nxos_name: rtmap
tf_name: rule_name
type: String
id: true
reference_only: true
description: "Route Map rule name."
example: RULE1
- nxos_name: order
tf_name: order
type: Int64
description: "Route-Map Rule Entry order."
min_int: 0
max_int: 65535
example: 10
id: true
reference_only: true
- nxos_name: tag
tf_name: tag
type: Int64
min_int: 0
max_int: 4294967295
description: "Route Map Tag Value"
id: true
example: 12345
mandatory: true
test_prerequisites:
- dn: sys/rpm/rtmap-[RULE1]
class_name: rtmapRule
attributes:
- name: name
value: RULE1
- dn: sys/rpm/rtmap-[RULE1]/ent-[10]
class_name: rtmapEntry
attributes:
- name: order
value: 10
dependencies: [0]
116 changes: 116 additions & 0 deletions internal/provider/data_source_nxos_route_map_rule_entry_match_tag.go

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

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

Loading
Loading