Skip to content

Commit

Permalink
[bugfix] Update mso_schema_site_anp_epg_static_port documentation and…
Browse files Browse the repository at this point in the history
… example for path_type = vpc/dpc (#118)
  • Loading branch information
shrsr authored Mar 3, 2022
1 parent 9b8bba4 commit 1d4c544
Showing 1 changed file with 43 additions and 1 deletion.
44 changes: 43 additions & 1 deletion website/docs/r/schema_site_anp_epg_static_port.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Manages MSO Schema Template Application Network Profiles Endpoint Groups Static

## Example Usage ##

### path_type: port ###

```hcl
resource "mso_schema_site_anp_epg_static_port" "static_port" {
schema_id = "5c4d5bb72700000401f80948"
Expand All @@ -30,6 +32,46 @@ resource "mso_schema_site_anp_epg_static_port" "static_port" {
}
```

### path_type: vpc ###

```hcl
resource "mso_schema_site_anp_epg_static_port" "static_port" {
schema_id = "5c4d5bb72700000401f80948"
site_id = "5c7c95b25100008f01c1ee3c"
template_name = "Template1"
anp_name = "ANP"
epg_name = "DB"
path_type = "port"
deployment_immediacy = "lazy"
pod = "pod-1"
leaf = "101-102"
path = "HX-FI-B_PolGrp"
vlan = 200
mode = "untagged"
}
```

### path_type: dpc

```hcl
resource "mso_schema_site_anp_epg_static_port" "static_port" {
schema_id = "5c4d5bb72700000401f80948"
site_id = "5c7c95b25100008f01c1ee3c"
template_name = "Template1"
anp_name = "ANP"
epg_name = "DB"
path_type = "dpc"
deployment_immediacy = "lazy"
pod = "pod-7"
leaf = "109"
path = "HX-FI-A_PolGrp"
vlan = 200
mode = "untagged"
}
```

## Argument Reference ##

* `schema_id` - (Required) SchemaID under which you want to deploy Static Port.
Expand All @@ -39,7 +81,7 @@ resource "mso_schema_site_anp_epg_static_port" "static_port" {
* `epg_name` - (Required) EPG name under which you want to deploy Static Port.
* `path_type` - (Required) The type of the static port. Allowed values are `port`, `vpc` and `dpc`.
* `pod` - (Required) The pod of the static port.
* `leaf` - (Required) The leaf of the static port.
* `leaf` - (Required) The leaf of the static port. When `path_type` is `port` or `dpc`, then `leaf` is a string of the leaf ID; Example - '101'. When `path_type` is `vpc`, then `leaf` is a list with both leaf IDs; Example - '101-102'.
* `path` - (Required) The path of the static port.
* `mode` - (Required) The mode of the static port. Allowed values are `native`, `regular` and `untagged`.
* `deployment_immediacy` - (Required) The deployment immediacy of the static port. Allowed values are `immediate` and `lazy`.
Expand Down

0 comments on commit 1d4c544

Please sign in to comment.