Skip to content
Merged
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
12 changes: 12 additions & 0 deletions cloudstack/resource_cloudstack_egress_firewall.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ func resourceCloudStackEgressFirewall() *schema.Resource {
ForceNew: true,
},

"project": {
Type: schema.TypeString,
Optional: true,
Computed: true,
ForceNew: true,
},

"managed": {
Type: schema.TypeBool,
Optional: true,
Expand Down Expand Up @@ -265,6 +272,11 @@ func resourceCloudStackEgressFirewallRead(d *schema.ResourceData, meta interface
p.SetNetworkid(d.Id())
p.SetListall(true)

// If there is a project supplied, we retrieve and set the project id
if err := setProjectid(p, cs, d); err != nil {
return err
}

l, err := cs.Firewall.ListEgressFirewallRules(p)
if err != nil {
return err
Expand Down
12 changes: 12 additions & 0 deletions cloudstack/resource_cloudstack_firewall.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ func resourceCloudStackFirewall() *schema.Resource {
ForceNew: true,
},

"project": {
Type: schema.TypeString,
Optional: true,
Computed: true,
ForceNew: true,
},

"managed": {
Type: schema.TypeBool,
Optional: true,
Expand Down Expand Up @@ -256,6 +263,11 @@ func resourceCloudStackFirewallRead(d *schema.ResourceData, meta interface{}) er
p.SetIpaddressid(d.Id())
p.SetListall(true)

// If there is a project supplied, we retrieve and set the project id
if err := setProjectid(p, cs, d); err != nil {
return err
}

l, err := cs.Firewall.ListFirewallRules(p)
if err != nil {
return err
Expand Down
Loading