Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.
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
2 changes: 2 additions & 0 deletions openstack/networking/v2/extensions/snatrules/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ type CreateOpts struct {
NatGatewayID string `json:"nat_gateway_id" required:"true"`
NetworkID string `json:"network_id" required:"true"`
FloatingIPID string `json:"floating_ip_id" required:"true"`
Cidr string `json:"cidr,omitempty"`
SourceType int `json:"source_type,omitempty"`
}

// ToSnatRuleCreateMap allows CreateOpts to satisfy the CreateOptsBuilder
Expand Down
2 changes: 2 additions & 0 deletions openstack/networking/v2/extensions/snatrules/results.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ type SnatRule struct {
FloatingIPAddress string `json:"floating_ip_address"`
Status string `json:"status"`
AdminStateUp bool `json:"admin_state_up"`
Cidr string `json:"cidr"`
SourceType int `json:"source_type"`
}

// GetResult is a return struct of get method
Expand Down