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
3 changes: 3 additions & 0 deletions openstack/networking/v2/extensions/security/rules/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ type CreateOpts struct {
// group rule is applied.
Direction RuleDirection `json:"direction" required:"true"`

// String description of each rule, optional
Description string `json:"description,omitempty"`

// Must be "IPv4" or "IPv6", and addresses represented in CIDR must match the
// ingress or egress rules.
EtherType RuleEtherType `json:"ethertype" required:"true"`
Expand Down
3 changes: 3 additions & 0 deletions openstack/networking/v2/extensions/security/rules/results.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ type SecGroupRule struct {
// instance. An egress rule is applied to traffic leaving the instance.
Direction string

// Descripton of the rule
Description string `json:"description"`

// Must be IPv4 or IPv6, and addresses represented in CIDR must match the
// ingress or egress rules.
EtherType string `json:"ethertype"`
Expand Down