Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions cloudstack/resource_cloudstack_egress_firewall.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ func resourceCloudStackEgressFirewall() *schema.Resource {
Set: schema.HashString,
},

"dest_cidr_list": {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't tested but doesn't createEgressFirewallRule need to set the dest_cidr_list in the params?

Type: schema.TypeSet,
Optional: true,
Elem: &schema.Schema{Type: schema.TypeString},
Set: schema.HashString,
},

"protocol": {
Type: schema.TypeString,
Required: true,
Expand Down
11 changes: 7 additions & 4 deletions website/docs/r/egress_firewall.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ resource "cloudstack_egress_firewall" "default" {
network_id = "6eb22f91-7454-4107-89f4-36afcdf33021"

rule {
cidr_list = ["10.0.0.0/8"]
protocol = "tcp"
ports = ["80", "1000-2000"]
cidr_list = ["10.1.0.0/16"]
dest_cidr_list = ["10.2.0.0/16"]
protocol = "tcp"
ports = ["80", "1000-2000"]
}
}
```
Expand All @@ -43,7 +44,9 @@ The following arguments are supported:

The `rule` block supports:

* `cidr_list` - (Required) A CIDR list to allow access to the given ports.
* `cidr_list` - (Required) the cidr list to forward traffic from.

* `dest_cidr_list` - (Optional) the cidr list to forward traffic to.

* `protocol` - (Required) The name of the protocol to allow. Valid options are:
`tcp`, `udp` and `icmp`.
Expand Down
Loading