// SetAccessVLAN will set the NIC in mode ACCESS with the specified VLAN ID
// on the switchport this NIC is connected to.
SetAccessVLAN will set the NIC in mode ACCESS with the specified VLAN ID
on the switchport this NIC is connected to.
// SetAccessVLAN will set the NIC in mode ACCESS with the specified VLAN ID // on the switchport this NIC is connected to .
func (v *Vnic) SetAccessVLAN(vlanID 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 ) SetAccessVLAN ( vlanID int ) error { plugged , err := v . isPlugged ( ) if err != nil { return errors . Wrap ( err , " " ) } if plugged == false { return fmt . Errorf ( " " ) } return nil }
SetAccessVLAN will set the NIC in mode ACCESS with the specified VLAN ID
on the switchport this NIC is connected to.
SetAccessVLAN will set the NIC in mode ACCESS with the specified VLAN ID on the switchport this NIC is connected to .