Skip to content

Commit

Permalink
Merge pull request #88 from lonegunmanb/e-87
Browse files Browse the repository at this point in the history
Add support for `bgp_community`
  • Loading branch information
jiaweitao001 authored Nov 29, 2022
2 parents 801754f + 2b2f059 commit 18fa679
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ No modules.
| Name | Description | Type | Default | Required |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------|-------------------------------------------------------------------------|------------------------------------------------------------------------------|:--------:|
| <a name="input_address_space"></a> [address\_space](#input\_address\_space) | The address space that is used by the virtual network. | `list(string)` | <pre>[<br> "10.0.0.0/16"<br>]</pre> | no |
| <a name="input_bgp_community"></a> [bgp\_community](#input\_bgp\_community) | (Optional) The BGP community attribute in format `<as-number>:<community-value>`. | `string` | `null` | no |
| <a name="input_ddos_protection_plan"></a> [ddos\_protection\_plan](#input\_ddos\_protection\_plan) | The set of DDoS protection plan configuration | <pre>object({<br> enable = bool<br> id = string<br> })</pre> | `null` | no |
| <a name="input_dns_servers"></a> [dns\_servers](#input\_dns\_servers) | The DNS servers to be used with vNet. | `list(string)` | `[]` | no |
| <a name="input_nsg_ids"></a> [nsg\_ids](#input\_nsg\_ids) | A map of subnet name to Network Security Group IDs | `map(string)` | `{}` | no |
Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ resource "azurerm_virtual_network" "vnet" {
location = var.vnet_location
name = var.vnet_name
resource_group_name = var.resource_group_name
bgp_community = var.bgp_community
dns_servers = var.dns_servers
tags = var.tags

Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ variable "address_space" {
default = ["10.0.0.0/16"]
}

variable "bgp_community" {
type = string
description = "(Optional) The BGP community attribute in format `<as-number>:<community-value>`."
default = null
}

variable "ddos_protection_plan" {
description = "The set of DDoS protection plan configuration"
type = object({
Expand Down

0 comments on commit 18fa679

Please sign in to comment.