// SetModetrunk will set this NIC in mode trunk, with the specified
// native VLAN ID and allowed trunk VLAN IDs
SetModetrunk will set this NIC in mode trunk, with the specified
native VLAN ID and allowed trunk VLAN IDs
// SetModetrunk will set this NIC in mode trunk with the specified // native VLAN ID and allowed trunk VLAN IDs
func (v *Vnic) SetModetrunk(trunkIDs []int, nativeID int) error {
	plugged, err := v.isPlugged()
	if err != nil {
		return errors.Wrap(err, "isPlugged")
	}
	if plugged == false {
		return fmt.Errorf("NIC is not plugged into a VM switch")
	}
	return nil
}
func ( v * Vnic ) SetModetrunk ( trunkIDs [ ] int , nativeID int ) error { plugged , err := v . isPlugged ( ) if err != nil { return errors . Wrap ( err , " " ) } if plugged == false { return fmt . Errorf ( " " ) } return nil }
SetModetrunk will set this NIC in mode trunk, with the specified
native VLAN ID and allowed trunk VLAN IDs
SetModetrunk will set this NIC in mode trunk with the specified native VLAN ID and allowed trunk VLAN IDs