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/v1/subnets/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ type CreateOpts struct {
CIDR string `json:"cidr" required:"true"`
DnsList []string `json:"dnsList,omitempty"`
GatewayIP string `json:"gateway_ip" required:"true"`
EnableIPv6 *bool `json:"ipv6_enable,omitempty"`
EnableDHCP bool `json:"dhcp_enable" no_default:"y"`
PRIMARY_DNS string `json:"primary_dns,omitempty"`
SECONDARY_DNS string `json:"secondary_dns,omitempty"`
Expand Down Expand Up @@ -188,6 +189,7 @@ type UpdateOptsBuilder interface {
// UpdateOpts contains the values used when updating a subnets.
type UpdateOpts struct {
Name string `json:"name,omitempty"`
EnableIPv6 *bool `json:"ipv6_enable,omitempty"`
EnableDHCP bool `json:"dhcp_enable"`
PRIMARY_DNS string `json:"primary_dns,omitempty"`
SECONDARY_DNS string `json:"secondary_dns,omitempty"`
Expand Down
9 changes: 9 additions & 0 deletions openstack/networking/v1/subnets/results.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ type Subnet struct {
//Specifies the gateway of the subnet.
GatewayIP string `json:"gateway_ip"`

//Specifies whether the IPv6 function is enabled for the subnet.
EnableIPv6 bool `json:"ipv6_enable"`

//Specifies the IPv6 subnet CIDR block.
IPv6CIDR string `json:"cidr_v6"`

//Specifies the IPv6 subnet gateway.
IPv6Gateway string `json:"gateway_ip_v6"`

//Specifies whether the DHCP function is enabled for the subnet.
EnableDHCP bool `json:"dhcp_enable"`

Expand Down