Skip to content

Commit

Permalink
pre-commit format update
Browse files Browse the repository at this point in the history
  • Loading branch information
scotttyso committed Sep 15, 2021
1 parent 4fd717a commit 6fd3fd3
Show file tree
Hide file tree
Showing 27 changed files with 100 additions and 122 deletions.
18 changes: 9 additions & 9 deletions modules/port_channel_appliances/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,25 +36,25 @@ No modules.

| Name | Type |
|------|------|
| [intersight_fabric_uplink_role.lan_uplink](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/fabric_uplink_role) | resource |
| [intersight_fabric_appliance_pc_role.port_channel](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/fabric_appliance_pc_role) | resource |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_breakout_sw_port"></a> [breakout\_sw\_port](#input\_breakout\_sw\_port) | Breakout port Identifier of the Switch Interface. When a port is not configured as a breakout port, the aggregatePortId is set to 0, and unused. When a port is configured as a breakout port, the 'aggregatePortId' port number as labeled on the equipment, e.g. the id of the port on the switch. | `number` | `0` | no |
| <a name="input_fec"></a> [fec](#input\_fec) | Forward error correction configuration for the port.<br>* Auto - Forward error correction option 'Auto'.<br>* Cl91 - Forward error correction option 'cl91'.<br>* Cl74 - Forward error correction option 'cl74'. | `string` | `"Auto"` | no |
| <a name="input_flow_control_moid"></a> [flow\_control\_moid](#input\_flow\_control\_moid) | A reference to a fabricFlowControlPolicy resource. | `set(string)` | `[]` | no |
| <a name="input_lan_uplink_port_list"></a> [lan\_uplink\_port\_list](#input\_lan\_uplink\_port\_list) | List of Ports to Assign to the LAN Uplink Policy. | `set(string)` | <pre>[<br> 49<br>]</pre> | no |
| <a name="input_lan_uplink_speed"></a> [lan\_uplink\_speed](#input\_lan\_uplink\_speed) | Admin configured speed for the port.<br>* Auto - Admin configurable speed AUTO ( default ).<br>* 1Gbps - Admin configurable speed 1Gbps.<br>* 10Gbps - Admin configurable speed 10Gbps.<br>* 25Gbps - Admin configurable speed 25Gbps.<br>* 40Gbps - Admin configurable speed 40Gbps.<br>* 100Gbps - Admin configurable speed 100Gbps. | `string` | `"Auto"` | no |
| <a name="input_link_control_moid"></a> [link\_control\_moid](#input\_link\_control\_moid) | A reference to a fabricLinkControlPolicy resource. | `set(string)` | `[]` | no |
| <a name="input_admin_speed"></a> [admin\_speed](#input\_admin\_speed) | Admin configured speed for the port.<br>* Auto - Admin configurable speed AUTO ( default ).<br>* 1Gbps - Admin configurable speed 1Gbps.<br>* 10Gbps - Admin configurable speed 10Gbps.<br>* 25Gbps - Admin configurable speed 25Gbps.<br>* 40Gbps - Admin configurable speed 40Gbps.<br>* 100Gbps - Admin configurable speed 100Gbps. | `string` | `"Auto"` | no |
| <a name="input_ethernet_network_control_policy_moid"></a> [ethernet\_network\_control\_policy\_moid](#input\_ethernet\_network\_control\_policy\_moid) | A reference to a fabricEthNetworkControlPolicy resource. | `set(string)` | `[]` | no |
| <a name="input_ethernet_network_group_policy_moid"></a> [ethernet\_network\_group\_policy\_moid](#input\_ethernet\_network\_group\_policy\_moid) | A reference to a fabricEthNetworkGroupPolicy resource. | `set(string)` | `[]` | no |
| <a name="input_interfaces"></a> [interfaces](#input\_interfaces) | List of Ports to Assign to the LAN Port-Channel Policy. | <pre>list(object(<br> {<br> breakout_port_id = optional(number)<br> port_id = number<br> slot_id = number<br> }<br> ))</pre> | `[]` | no |
| <a name="input_mode"></a> [mode](#input\_mode) | Port mode to be set on the appliance port.<br>* access - Access Mode Switch Port Type.<br>* trunk (default) - Trunk Mode Switch Port Type. | `string` | `"trunk"` | no |
| <a name="input_pc_id"></a> [pc\_id](#input\_pc\_id) | Unique Identifier of the port-channel, local to this switch. | `number` | `1` | no |
| <a name="input_port_policy_moid"></a> [port\_policy\_moid](#input\_port\_policy\_moid) | A reference to a fabricPortPolicy resource. | `string` | n/a | yes |
| <a name="input_slot_id"></a> [slot\_id](#input\_slot\_id) | Slot Identifier of the Switch/FEX/Chassis Interface. | `number` | `1` | no |
| <a name="input_priority"></a> [priority](#input\_priority) | The 'name' of the System QoS Class.<br>* Best Effort - (Default) QoS Priority for Best-effort traffic.<br>* Bronze - QoS Priority for Bronze traffic.<br>* FC - QoS Priority for FC traffic.<br>* Gold - QoS Priority for Gold traffic.<br>* Platinum - QoS Priority for Platinum traffic.<br>* Silver - QoS Priority for Silver traffic. | `string` | `"Best Effort"` | no |
| <a name="input_tags"></a> [tags](#input\_tags) | List of Tag Attributes to Assign to the Policy. | `list(map(string))` | `[]` | no |

## Outputs

| Name | Description |
|------|-------------|
| <a name="output_moid"></a> [moid](#output\_moid) | LAN Uplink Policy Managed Object ID (moid). |
| <a name="output_moid"></a> [moid](#output\_moid) | Port-Channel - Appliance Managed Object ID (moid). |
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
8 changes: 4 additions & 4 deletions modules/port_channel_appliances/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
#________________________________________________________________________________________________

resource "intersight_fabric_appliance_pc_role" "port_channel" {
admin_speed = var.admin_speed
admin_speed = var.admin_speed
# aggregate_port_id = var.breakout_port_id
mode = var.mode
pc_id = var.pc_id
priority = var.priority
mode = var.mode
pc_id = var.pc_id
priority = var.priority
port_policy {
moid = var.port_policy_moid
}
Expand Down
4 changes: 2 additions & 2 deletions modules/port_channel_appliances/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ variable "ethernet_network_group_policy_moid" {
}

variable "interfaces" {
default = []
default = []
description = "List of Ports to Assign to the LAN Port-Channel Policy."
type = list(object(
type = list(object(
{
breakout_port_id = optional(number)
port_id = number
Expand Down
14 changes: 6 additions & 8 deletions modules/port_channel_ethernet_uplinks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,13 @@ No modules.

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_breakout_sw_port"></a> [breakout\_sw\_port](#input\_breakout\_sw\_port) | Breakout port Identifier of the Switch Interface. When a port is not configured as a breakout port, the aggregatePortId is set to 0, and unused. When a port is configured as a breakout port, the 'aggregatePortId' port number as labeled on the equipment, e.g. the id of the port on the switch. | `number` | `0` | no |
| <a name="input_flow_control_moid"></a> [flow\_control\_moid](#input\_flow\_control\_moid) | A reference to a fabricFlowControlPolicy resource. | `set(string)` | `[]` | no |
| <a name="input_lan_uplink_pc_id"></a> [lan\_uplink\_pc\_id](#input\_lan\_uplink\_pc\_id) | Unique Identifier of the port-channel, local to this switch. | `string` | `49` | no |
| <a name="input_lan_uplink_pc_ports"></a> [lan\_uplink\_pc\_ports](#input\_lan\_uplink\_pc\_ports) | List of Ports to Assign to the LAN Port-Channel Policy. | `set(string)` | <pre>[<br> 49,<br> 50<br>]</pre> | no |
| <a name="input_lan_uplink_speed"></a> [lan\_uplink\_speed](#input\_lan\_uplink\_speed) | Admin configured speed for the port.<br>* Auto - Admin configurable speed Auto.<br>* 1Gbps - Admin configurable speed 1Gbps.<br>* 10Gbps - Admin configurable speed 10Gbps.<br>* 25Gbps - Admin configurable speed 25Gbps.<br>* 40Gbps - Admin configurable speed 40Gbps.<br>* 100Gbps - Admin configurable speed 100Gbps. | `string` | `"Auto"` | no |
| <a name="input_link_aggregation_moid"></a> [link\_aggregation\_moid](#input\_link\_aggregation\_moid) | A reference to a fabricLinkAggregationPolicy resource. | `set(string)` | `[]` | no |
| <a name="input_link_control_moid"></a> [link\_control\_moid](#input\_link\_control\_moid) | A reference to a fabricLinkControlPolicy resource. | `set(string)` | `[]` | no |
| <a name="input_admin_speed"></a> [admin\_speed](#input\_admin\_speed) | Admin configured speed for the port.<br>* Auto - Admin configurable speed Auto.<br>* 1Gbps - Admin configurable speed 1Gbps.<br>* 10Gbps - Admin configurable speed 10Gbps.<br>* 25Gbps - Admin configurable speed 25Gbps.<br>* 40Gbps - Admin configurable speed 40Gbps.<br>* 100Gbps - Admin configurable speed 100Gbps. | `string` | `"Auto"` | no |
| <a name="input_flow_control_policy_moid"></a> [flow\_control\_policy\_moid](#input\_flow\_control\_policy\_moid) | A reference to a fabricFlowControlPolicy resource. | `set(string)` | `[]` | no |
| <a name="input_interfaces"></a> [interfaces](#input\_interfaces) | List of Ports to Assign to the LAN Port-Channel Policy. | <pre>list(object(<br> {<br> breakout_port_id = optional(number)<br> port_id = number<br> slot_id = number<br> }<br> ))</pre> | `[]` | no |
| <a name="input_link_aggregation_policy_moid"></a> [link\_aggregation\_policy\_moid](#input\_link\_aggregation\_policy\_moid) | A reference to a fabricLinkAggregationPolicy resource. | `set(string)` | `[]` | no |
| <a name="input_link_control_policy_moid"></a> [link\_control\_policy\_moid](#input\_link\_control\_policy\_moid) | A reference to a fabricLinkControlPolicy resource. | `set(string)` | `[]` | no |
| <a name="input_pc_id"></a> [pc\_id](#input\_pc\_id) | Unique Identifier of the port-channel, local to this switch. | `string` | `49` | no |
| <a name="input_port_policy_moid"></a> [port\_policy\_moid](#input\_port\_policy\_moid) | A reference to a fabricPortPolicy resource. | `string` | n/a | yes |
| <a name="input_slot_id"></a> [slot\_id](#input\_slot\_id) | Slot Identifier of the Switch/FEX/Chassis Interface. | `number` | `1` | no |
| <a name="input_tags"></a> [tags](#input\_tags) | List of Tag Attributes to Assign to the Policy. | `list(map(string))` | `[]` | no |

## Outputs
Expand Down
4 changes: 2 additions & 2 deletions modules/port_channel_ethernet_uplinks/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ variable "flow_control_policy_moid" {
}

variable "interfaces" {
default = []
default = []
description = "List of Ports to Assign to the LAN Port-Channel Policy."
type = list(object(
type = list(object(
{
breakout_port_id = optional(number)
port_id = number
Expand Down
8 changes: 3 additions & 5 deletions modules/port_channel_fc_uplinks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,11 @@ No modules.

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_breakout_sw_port"></a> [breakout\_sw\_port](#input\_breakout\_sw\_port) | Breakout port Identifier of the Switch Interface. When a port is not configured as a breakout port, the aggregatePortId is set to 0, and unused. When a port is configured as a breakout port, the 'aggregatePortId' port number as labeled on the equipment, e.g. the id of the port on the switch. | `number` | `0` | no |
| <a name="input_admin_speed"></a> [admin\_speed](#input\_admin\_speed) | Admin configured speed for the port.<br>* Auto - Admin configurable speed AUTO.<br>* 8Gbps - Admin configurable speed 8Gbps.<br>* 16Gbps - (default). Admin configurable speed 16Gbps.<br>* 32Gbps - Admin configurable speed 32Gbps. | `string` | `"16Gbps"` | no |
| <a name="input_fill_pattern"></a> [fill\_pattern](#input\_fill\_pattern) | Fill pattern to differentiate the configs in NPIV.<br>* Arbff - Fc Fill Pattern type Arbff.<br>* Idle - Fc Fill Pattern type Idle. | `string` | `"Idle"` | no |
| <a name="input_interfaces"></a> [interfaces](#input\_interfaces) | List of Ports to Assign to the LAN Port-Channel Policy. | <pre>list(object(<br> {<br> breakout_port_id = optional(number)<br> port_id = number<br> slot_id = number<br> }<br> ))</pre> | `[]` | no |
| <a name="input_pc_id"></a> [pc\_id](#input\_pc\_id) | Unique Identifier of the port-channel, local to this switch. | `number` | `1` | no |
| <a name="input_port_policy_moid"></a> [port\_policy\_moid](#input\_port\_policy\_moid) | A reference to a fabricPortPolicy resource. | `string` | n/a | yes |
| <a name="input_san_uplink_pc_id"></a> [san\_uplink\_pc\_id](#input\_san\_uplink\_pc\_id) | Unique Identifier of the port-channel, local to this switch. | `string` | `1` | no |
| <a name="input_san_uplink_pc_ports"></a> [san\_uplink\_pc\_ports](#input\_san\_uplink\_pc\_ports) | List of Ports to Assign to the SAN Port-Channel Policy. | `set(string)` | <pre>[<br> 1,<br> 2<br>]</pre> | no |
| <a name="input_san_uplink_speed"></a> [san\_uplink\_speed](#input\_san\_uplink\_speed) | Admin configured speed for the port.<br>* Auto - Admin configurable speed AUTO ( default ).<br>* 8Gbps - Admin configurable speed 8Gbps.<br>* 16Gbps - Admin configurable speed 16Gbps.<br>* 32Gbps - Admin configurable speed 32Gbps. | `string` | `"16Gbps"` | no |
| <a name="input_slot_id"></a> [slot\_id](#input\_slot\_id) | Slot Identifier of the Switch/FEX/Chassis Interface. | `number` | `1` | no |
| <a name="input_tags"></a> [tags](#input\_tags) | List of Tag Attributes to Assign to the Policy. | `list(map(string))` | `[]` | no |
| <a name="input_vsan_id"></a> [vsan\_id](#input\_vsan\_id) | Virtual San Identifier associated to the FC port. | `number` | `1` | no |

Expand Down
4 changes: 2 additions & 2 deletions modules/port_channel_fc_uplinks/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ variable "fill_pattern" {
}

variable "interfaces" {
default = []
default = []
description = "List of Ports to Assign to the LAN Port-Channel Policy."
type = list(object(
type = list(object(
{
breakout_port_id = optional(number)
port_id = number
Expand Down
15 changes: 6 additions & 9 deletions modules/port_channel_fcoe_uplinks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,18 @@ No modules.

| Name | Type |
|------|------|
| [intersight_fabric_uplink_pc_role.port_channel](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/fabric_uplink_pc_role) | resource |
| [intersight_fabric_fcoe_uplink_pc_role.port_channel](https://registry.terraform.io/providers/CiscoDevNet/intersight/latest/docs/resources/fabric_fcoe_uplink_pc_role) | resource |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_breakout_sw_port"></a> [breakout\_sw\_port](#input\_breakout\_sw\_port) | Breakout port Identifier of the Switch Interface. When a port is not configured as a breakout port, the aggregatePortId is set to 0, and unused. When a port is configured as a breakout port, the 'aggregatePortId' port number as labeled on the equipment, e.g. the id of the port on the switch. | `number` | `0` | no |
| <a name="input_flow_control_moid"></a> [flow\_control\_moid](#input\_flow\_control\_moid) | A reference to a fabricFlowControlPolicy resource. | `set(string)` | `[]` | no |
| <a name="input_lan_uplink_pc_id"></a> [lan\_uplink\_pc\_id](#input\_lan\_uplink\_pc\_id) | Unique Identifier of the port-channel, local to this switch. | `string` | `49` | no |
| <a name="input_lan_uplink_pc_ports"></a> [lan\_uplink\_pc\_ports](#input\_lan\_uplink\_pc\_ports) | List of Ports to Assign to the LAN Port-Channel Policy. | `set(string)` | <pre>[<br> 49,<br> 50<br>]</pre> | no |
| <a name="input_lan_uplink_speed"></a> [lan\_uplink\_speed](#input\_lan\_uplink\_speed) | Admin configured speed for the port.<br>* Auto - Admin configurable speed Auto.<br>* 1Gbps - Admin configurable speed 1Gbps.<br>* 10Gbps - Admin configurable speed 10Gbps.<br>* 25Gbps - Admin configurable speed 25Gbps.<br>* 40Gbps - Admin configurable speed 40Gbps.<br>* 100Gbps - Admin configurable speed 100Gbps. | `string` | `"Auto"` | no |
| <a name="input_link_aggregation_moid"></a> [link\_aggregation\_moid](#input\_link\_aggregation\_moid) | A reference to a fabricLinkAggregationPolicy resource. | `set(string)` | `[]` | no |
| <a name="input_link_control_moid"></a> [link\_control\_moid](#input\_link\_control\_moid) | A reference to a fabricLinkControlPolicy resource. | `set(string)` | `[]` | no |
| <a name="input_admin_speed"></a> [admin\_speed](#input\_admin\_speed) | Admin configured speed for the port.<br>* Auto - Admin configurable speed Auto.<br>* 1Gbps - Admin configurable speed 1Gbps.<br>* 10Gbps - Admin configurable speed 10Gbps.<br>* 25Gbps - Admin configurable speed 25Gbps.<br>* 40Gbps - Admin configurable speed 40Gbps.<br>* 100Gbps - Admin configurable speed 100Gbps. | `string` | `"Auto"` | no |
| <a name="input_interfaces"></a> [interfaces](#input\_interfaces) | List of Ports to Assign to the LAN Port-Channel Policy. | <pre>list(object(<br> {<br> breakout_port_id = optional(number)<br> port_id = number<br> slot_id = number<br> }<br> ))</pre> | `[]` | no |
| <a name="input_link_aggregation_policy_moid"></a> [link\_aggregation\_policy\_moid](#input\_link\_aggregation\_policy\_moid) | A reference to a fabricLinkAggregationPolicy resource. | `set(string)` | `[]` | no |
| <a name="input_link_control_policy_moid"></a> [link\_control\_policy\_moid](#input\_link\_control\_policy\_moid) | A reference to a fabricLinkControlPolicy resource. | `set(string)` | `[]` | no |
| <a name="input_pc_id"></a> [pc\_id](#input\_pc\_id) | Unique Identifier of the port-channel, local to this switch. | `string` | `49` | no |
| <a name="input_port_policy_moid"></a> [port\_policy\_moid](#input\_port\_policy\_moid) | A reference to a fabricPortPolicy resource. | `string` | n/a | yes |
| <a name="input_slot_id"></a> [slot\_id](#input\_slot\_id) | Slot Identifier of the Switch/FEX/Chassis Interface. | `number` | `1` | no |
| <a name="input_tags"></a> [tags](#input\_tags) | List of Tag Attributes to Assign to the Policy. | `list(map(string))` | `[]` | no |

## Outputs
Expand Down
2 changes: 1 addition & 1 deletion modules/port_channel_fcoe_uplinks/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ variable "admin_speed" {
variable "interfaces" {
default = []
description = "List of Ports to Assign to the LAN Port-Channel Policy."
type = list(object(
type = list(object(
{
breakout_port_id = optional(number)
port_id = number
Expand Down
2 changes: 1 addition & 1 deletion modules/port_policies/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ No modules.
| <a name="input_device_model"></a> [device\_model](#input\_device\_model) | This field specifies the device model template for the Port Policy.<br>* UCS-FI-6454 - The standard 4th generation UCS Fabric Interconnect with 54 ports.<br>* UCS-FI-64108 - The expanded 4th generation UCS Fabric Interconnect with 108 ports.<br>* unknown - Unknown device type, usage is TBD. | `string` | `"UCS-FI-6454"` | no |
| <a name="input_name"></a> [name](#input\_name) | Name for the Policy. | `string` | `"port_policy"` | no |
| <a name="input_org_moid"></a> [org\_moid](#input\_org\_moid) | Intersight Organization moid. | `string` | n/a | yes |
| <a name="input_profiles"></a> [profiles](#input\_profiles) | List of Profiles to Assign to the Policy. | `set(string)` | `[]` | no |
| <a name="input_profiles"></a> [profiles](#input\_profiles) | Map of Profiles to Assign to the Policy.<br>* moid - Managed Object Identifier for the Managed Resource.<br>* object\_type - Object Type to Assign in the Profile Configuration.<br> - server.Profile - For UCS Server Profiles.<br> - server.ProfileTemplate - For UCS Server Profile Templates. | <pre>map(object(<br> {<br> moid = string<br> object_type = string<br> }<br> ))</pre> | `{}` | no |
| <a name="input_tags"></a> [tags](#input\_tags) | List of Tag Attributes to Assign to the Policy. | `list(map(string))` | `[]` | no |

## Outputs
Expand Down
Loading

0 comments on commit 6fd3fd3

Please sign in to comment.