Skip to content

Commit 4b3b2bf

Browse files
karolgorcDawid212
authored andcommitted
Add md5authenticationkeys to google_compute_router (GoogleCloudPlatform#13472)
1 parent 10d9a35 commit 4b3b2bf

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

mmv1/products/compute/Router.yaml

+25
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@ examples:
6666
network_name: 'test-network'
6767
ignore_read_extra:
6868
- 'advertisedIpRanges'
69+
- name: 'compute_router_md5encrypted'
70+
primary_resource_id: 'foobar'
71+
vars:
72+
router_name: 'test-router'
73+
network_name: 'test-network'
74+
exclude_docs: true
75+
ignore_read_extra:
76+
- 'advertisedIpRanges'
6977
parameters:
7078
- name: 'region'
7179
type: ResourceRef
@@ -208,3 +216,20 @@ properties:
208216
Indicates if a router is dedicated for use with encrypted VLAN
209217
attachments (interconnectAttachments).
210218
immutable: true
219+
- name: 'md5AuthenticationKeys'
220+
ignore_read: true
221+
type: NestedObject
222+
description: |
223+
Keys used for MD5 authentication.
224+
properties:
225+
- name: 'name'
226+
type: String
227+
description: |
228+
Name used to identify the key. Must be unique within a router.
229+
Must be referenced by exactly one bgpPeer. Must comply with RFC1035.
230+
required: true
231+
- name: 'key'
232+
type: String
233+
description: |
234+
Value of the key used for MD5 authentication.
235+
required: true
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
resource "google_compute_router" "foobar" {
2+
name = "{{index $.Vars "router_name"}}"
3+
network = google_compute_network.foobar.name
4+
bgp {
5+
asn = 64514
6+
advertise_mode = "CUSTOM"
7+
advertised_groups = ["ALL_SUBNETS"]
8+
advertised_ip_ranges {
9+
range = "1.2.3.4"
10+
}
11+
advertised_ip_ranges {
12+
range = "6.7.0.0/16"
13+
}
14+
}
15+
md5_authentication_keys {
16+
name = "test"
17+
key = "test"
18+
}
19+
}
20+
21+
resource "google_compute_network" "foobar" {
22+
name = "{{index $.Vars "network_name"}}"
23+
auto_create_subnetworks = false
24+
}

0 commit comments

Comments
 (0)