Skip to content

Commit 78f7f45

Browse files
committed
ncc: add descriptions for preset_topology and policy_mode
1 parent a590de1 commit 78f7f45

File tree

5 files changed

+7
-33
lines changed

5 files changed

+7
-33
lines changed

examples/network_connectivity_center/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ module "network_connectivity_center" {
1818
source = "terraform-google-modules/network/google//modules/network-connectivity-center"
1919
version = "~> 13.0"
2020

21+
2122
project_id = var.project_id
2223
ncc_hub_name = var.ncc_hub_name
2324
ncc_hub_labels = {

examples/network_connectivity_center/versions.tf

Lines changed: 0 additions & 27 deletions
This file was deleted.

modules/network-connectivity-center/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ An extensive example that also contains the creation and attachment of multiple
2828
| ncc\_hub\_description | The description of the NCC Hub | `string` | `null` | no |
2929
| ncc\_hub\_labels | These labels will be added the NCC hub | `map(string)` | `{}` | no |
3030
| ncc\_hub\_name | The Name of the NCC Hub | `string` | n/a | yes |
31-
| ncc\_hub\_policy\_mode | The policy mode of the hub | `string` | `"PRESET"` | no |
32-
| ncc\_hub\_preset\_topology | The topology implemented in the hub | `string` | `null` | no |
31+
| ncc\_hub\_policy\_mode | The policy mode of the hub. Type must be one of `PRESET` or `CUSTOM`. | `string` | `"PRESET"` | no |
32+
| ncc\_hub\_preset\_topology | The topology implemented in the hub. Type must be one of `STAR` or `MESH`. | `string` | `null` | no |
3333
| project\_id | Project ID of the project that holds the network. | `string` | n/a | yes |
3434
| router\_appliance\_spokes | Router appliance instances that are associated with the spoke. | <pre>map(object({<br> instances = set(object({<br> virtual_machine = string<br> ip_address = string<br> }))<br> location = string<br> site_to_site_data_transfer = optional(bool, false)<br> description = optional(string)<br> labels = optional(map(string))<br> include_import_ranges = optional(list(string), [])<br> group = optional(string)<br> }))</pre> | `{}` | no |
3535
| spoke\_labels | These labels will be added to all NCC spokes | `map(string)` | `{}` | no |

modules/network-connectivity-center/metadata.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ spec:
106106
varType: map(string)
107107
defaultValue: {}
108108
- name: ncc_hub_preset_topology
109-
description: The topology implemented in the hub
109+
description: The topology implemented in the hub. Type must be one of `STAR` or `MESH`.
110110
varType: string
111111
- name: ncc_hub_policy_mode
112-
description: The policy mode of the hub
112+
description: The policy mode of the hub. Type must be one of `PRESET` or `CUSTOM`.
113113
varType: string
114114
defaultValue: PRESET
115115
- name: ncc_groups

modules/network-connectivity-center/variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ variable "ncc_hub_labels" {
3636
}
3737

3838
variable "ncc_hub_preset_topology" {
39-
description = "The topology implemented in the hub"
39+
description = "The topology implemented in the hub. Type must be one of `STAR` or `MESH`."
4040
type = string
4141
default = null
4242
}
4343

4444
variable "ncc_hub_policy_mode" {
45-
description = "The policy mode of the hub"
45+
description = "The policy mode of the hub. Type must be one of `PRESET` or `CUSTOM`."
4646
type = string
4747
default = "PRESET"
4848
}

0 commit comments

Comments
 (0)