-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
769 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]" | ||
``` |
5 changes: 5 additions & 0 deletions
5
examples/data-sources/nxos_route_map_rule_entry_match_tag/data-source.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
1 change: 1 addition & 0 deletions
1
examples/resources/nxos_route_map_rule_entry_match_tag/import.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]" |
5 changes: 5 additions & 0 deletions
5
examples/resources/nxos_route_map_rule_entry_match_tag/resource.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
116
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.
Oops, something went wrong.
78 changes: 78 additions & 0 deletions
78
internal/provider/data_source_nxos_route_map_rule_entry_match_tag_test.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.