code: func setMacVlanMode(mode string) (netlink.MacvlanMode, error) {
  	switch mode {
  	case modePrivate:
  		return netlink.MACVLAN_MODE_PRIVATE, nil
  	case modeVepa:
  		return netlink.MACVLAN_MODE_VEPA, nil
  	case modeBridge:
  		return netlink.MACVLAN_MODE_BRIDGE, nil
  	case modePassthru:
  		return netlink.MACVLAN_MODE_PASSTHRU, nil
  	default:
  		return 0, fmt.Errorf("unknown macvlan mode: %s", mode)
  	}
  }
docs: // setMacVlanMode setter for one of the four macvlan port types