Skip to content

Commit

Permalink
New route map for tags
Browse files Browse the repository at this point in the history
  • Loading branch information
rafmuller committed Dec 31, 2024
1 parent a3029a0 commit cf0e08e
Show file tree
Hide file tree
Showing 14 changed files with 769 additions and 0 deletions.
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.
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

0 comments on commit cf0e08e

Please sign in to comment.