code: func WithIPvlan(parent, mode string) func(*types.NetworkCreate) {
  	return func(n *types.NetworkCreate) {
  		n.Driver = "ipvlan"
  		if n.Options == nil {
  			n.Options = map[string]string{}
  		}
  		if parent != "" {
  			n.Options["parent"] = parent
  		}
  		if mode != "" {
  			n.Options["ipvlan_mode"] = mode
  		}
  	}
  }
docs: // WithIPvlan sets the network as ipvlan with the specified parent and mode