-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add service template and vlan access map resources and data sources (#46
- Loading branch information
1 parent
21321a6
commit 1e4984d
Showing
67 changed files
with
3,100 additions
and
52 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
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
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,79 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "iosxe_service_template Data Source - terraform-provider-iosxe" | ||
subcategory: "System" | ||
description: |- | ||
This data source can read the Service Template configuration. | ||
--- | ||
|
||
# iosxe_service_template (Data Source) | ||
|
||
This data source can read the Service Template configuration. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "iosxe_service_template" "example" { | ||
word = "DEFAULT_LINKSEC_POLICY_MUST_SECURE" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `word` (String) Specify a template name (maximum 48 characters) | ||
|
||
### Optional | ||
|
||
- `device` (String) A device name from the provider configuration. | ||
|
||
### Read-Only | ||
|
||
- `absolute_timer` (Number) Enter a value between 1 and 1073741823 | ||
- `access_group` (Attributes List) Access list to be applied (see [below for nested schema](#nestedatt--access_group)) | ||
- `description` (String) Enter a description | ||
- `dns_acl_preauth` (String) pre-authentication | ||
- `id` (String) The path of the retrieved object. | ||
- `inactivity_timer_probe` (Boolean) ARP probe | ||
- `inactivity_timer_value` (Number) Enter a value between 1 and 65535 | ||
- `interface_template` (Attributes List) Interface template to be applied (see [below for nested schema](#nestedatt--interface_template)) | ||
- `linksec_policy` (String) Set the link security policy | ||
- `mdns_service_policy` (String) mdns policy to be applied | ||
- `redirect_append_client_mac` (String) Append client Mac Address in redirect URL | ||
- `redirect_append_switch_mac` (String) Append switch Mac Address in redirect URL | ||
- `redirect_url_match_acl_name` (String) Specify the access list name | ||
- `redirect_url_match_action` (String) | ||
- `redirect_url_url_name` (String) Specify a valid URL | ||
- `service_policy_qos_input` (String) Configure input Qos policy | ||
- `service_policy_qos_output` (String) Configure output Qos policy | ||
- `sgt` (Number) SGT tag | ||
- `tag_config` (Attributes List) tag name (see [below for nested schema](#nestedatt--tag_config)) | ||
- `tunnel_capwap_name` (String) tunnel profile name | ||
- `vlan` (Number) Vlan to be applied | ||
- `vnid` (String) Vnid to be applied | ||
- `voice_vlan` (Boolean) Critical voice vlan | ||
|
||
<a id="nestedatt--access_group"></a> | ||
### Nested Schema for `access_group` | ||
|
||
Read-Only: | ||
|
||
- `name` (String) Specify the access list name | ||
|
||
|
||
<a id="nestedatt--interface_template"></a> | ||
### Nested Schema for `interface_template` | ||
|
||
Read-Only: | ||
|
||
- `name` (String) Enter name of interface template | ||
|
||
|
||
<a id="nestedatt--tag_config"></a> | ||
### Nested Schema for `tag_config` | ||
|
||
Read-Only: | ||
|
||
- `name` (String) Specify the Tag name |
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,39 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "iosxe_vlan_access_map Data Source - terraform-provider-iosxe" | ||
subcategory: "Switching" | ||
description: |- | ||
This data source can read the VLAN Access Map configuration. | ||
--- | ||
|
||
# iosxe_vlan_access_map (Data Source) | ||
|
||
This data source can read the VLAN Access Map configuration. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "iosxe_vlan_access_map" "example" { | ||
name = "accessmap1" | ||
value = 1000 | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) Vlan access map tag | ||
- `value` (Number) Sequence to insert to/delete from existing vlan access-map entry | ||
|
||
### Optional | ||
|
||
- `device` (String) A device name from the provider configuration. | ||
|
||
### Read-Only | ||
|
||
- `action` (String) Take the action | ||
- `id` (String) The path of the retrieved object. | ||
- `match_ip_address` (List of String) | ||
- `match_ipv6_address` (List of String) Match IPv6 address to access control. |
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
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
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,125 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "iosxe_service_template Resource - terraform-provider-iosxe" | ||
subcategory: "System" | ||
description: |- | ||
This resource can manage the Service Template configuration. | ||
--- | ||
|
||
# iosxe_service_template (Resource) | ||
|
||
This resource can manage the Service Template configuration. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "iosxe_service_template" "example" { | ||
word = "DEFAULT_LINKSEC_POLICY_MUST_SECURE" | ||
access_group = [ | ||
{ | ||
name = "ag1" | ||
} | ||
] | ||
inactivity_timer_value = 25 | ||
inactivity_timer_probe = false | ||
vlan = 27 | ||
voice_vlan = false | ||
linksec_policy = "must-secure" | ||
sgt = 57 | ||
absolute_timer = 45 | ||
description = "service_template_desc" | ||
interface_template = [ | ||
{ | ||
name = "template1" | ||
} | ||
] | ||
tunnel_capwap_name = "tunnel_name" | ||
vnid = "vnid_1" | ||
redirect_append_client_mac = "00:01:00:01:00:01" | ||
redirect_append_switch_mac = "00:01:00:01:00:02" | ||
redirect_url_url_name = "valid_url" | ||
redirect_url_match_acl_name = "acl_name" | ||
redirect_url_match_action = "redirect-on-no-match" | ||
dns_acl_preauth = "dns_acl_name" | ||
service_policy_qos_input = "input_qos" | ||
service_policy_qos_output = "output_qos" | ||
tag_config = [ | ||
{ | ||
name = "tag_name" | ||
} | ||
] | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `word` (String) Specify a template name (maximum 48 characters) | ||
|
||
### Optional | ||
|
||
- `absolute_timer` (Number) Enter a value between 1 and 1073741823 | ||
- Range: `1`-`1073741823` | ||
- `access_group` (Attributes List) Access list to be applied (see [below for nested schema](#nestedatt--access_group)) | ||
- `description` (String) Enter a description | ||
- `device` (String) A device name from the provider configuration. | ||
- `dns_acl_preauth` (String) pre-authentication | ||
- `inactivity_timer_probe` (Boolean) ARP probe | ||
- `inactivity_timer_value` (Number) Enter a value between 1 and 65535 | ||
- Range: `1`-`65535` | ||
- `interface_template` (Attributes List) Interface template to be applied (see [below for nested schema](#nestedatt--interface_template)) | ||
- `linksec_policy` (String) Set the link security policy | ||
- Choices: `must-not-secure`, `must-secure`, `should-secure` | ||
- `mdns_service_policy` (String) mdns policy to be applied | ||
- `redirect_append_client_mac` (String) Append client Mac Address in redirect URL | ||
- `redirect_append_switch_mac` (String) Append switch Mac Address in redirect URL | ||
- `redirect_url_match_acl_name` (String) Specify the access list name | ||
- `redirect_url_match_action` (String) - Choices: `one-time-redirect`, `redirect-on-no-match` | ||
- `redirect_url_url_name` (String) Specify a valid URL | ||
- `service_policy_qos_input` (String) Configure input Qos policy | ||
- `service_policy_qos_output` (String) Configure output Qos policy | ||
- `sgt` (Number) SGT tag | ||
- Range: `2`-`65519` | ||
- `tag_config` (Attributes List) tag name (see [below for nested schema](#nestedatt--tag_config)) | ||
- `tunnel_capwap_name` (String) tunnel profile name | ||
- `vlan` (Number) Vlan to be applied | ||
- Range: `1`-`4094` | ||
- `vnid` (String) Vnid to be applied | ||
- `voice_vlan` (Boolean) Critical voice vlan | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The path of the object. | ||
|
||
<a id="nestedatt--access_group"></a> | ||
### Nested Schema for `access_group` | ||
|
||
Required: | ||
|
||
- `name` (String) Specify the access list name | ||
|
||
|
||
<a id="nestedatt--interface_template"></a> | ||
### Nested Schema for `interface_template` | ||
|
||
Required: | ||
|
||
- `name` (String) Enter name of interface template | ||
|
||
|
||
<a id="nestedatt--tag_config"></a> | ||
### Nested Schema for `tag_config` | ||
|
||
Required: | ||
|
||
- `name` (String) Specify the Tag name | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
terraform import iosxe_service_template.example "Cisco-IOS-XE-native:native/Cisco-IOS-XE-switch:service-template=DEFAULT_LINKSEC_POLICY_MUST_SECURE" | ||
``` |
Oops, something went wrong.