code: func setIPVlanMode(mode string) (netlink.IPVlanMode, error) {
  	switch mode {
  	case modeL2:
  		return netlink.IPVLAN_MODE_L2, nil
  	case modeL3:
  		return netlink.IPVLAN_MODE_L3, nil
  	default:
  		return 0, fmt.Errorf("Unknown ipvlan mode: %s", mode)
  	}
  }
docs: // setIPVlanMode setter for one of the two ipvlan port types