github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/networking/v2/extensions/extradhcpopts/results.go (about) 1 package extradhcpopts 2 3 // ExtraDHCPOptsExt is a struct that contains different DHCP options for a 4 // single port. 5 type ExtraDHCPOptsExt struct { 6 ExtraDHCPOpts []ExtraDHCPOpt `json:"extra_dhcp_opts"` 7 } 8 9 // ExtraDHCPOpt represents a single set of extra DHCP options for a single port. 10 type ExtraDHCPOpt struct { 11 // OptName is the name of a single DHCP option. 12 OptName string `json:"opt_name"` 13 14 // OptValue is the value of a single DHCP option. 15 OptValue string `json:"opt_value"` 16 17 // IPVersion is the IP protocol version of a single DHCP option. 18 // Valid value is 4 or 6. Default is 4. 19 IPVersion string `json:"ip_version"` 20 }