blob: 0d20bb170720dfdb593815edbbfdef4eb2a4863e [file] [log] [blame]
package external
import "github.com/rackspace/gophercloud/openstack/networking/v2/networks"
type CreateOpts struct {
Parent networks.CreateOpts
External bool
}
func (o CreateOpts) ToMap() map[string]map[string]interface{} {
outer := o.Parent.ToMap()
outer["network"]["router:external"] = o.External
return outer
}
func (o CreateOpts) IsCreateOpts() bool { return true }
type UpdateOpts struct {
Parent networks.UpdateOpts
External bool
}
func (o UpdateOpts) ToMap() map[string]map[string]interface{} {
outer := o.Parent.ToMap()
outer["network"]["router:external"] = o.External
return outer
}
func (o UpdateOpts) IsUpdateOpts() bool { return true }