Setter method for nameserver_devicetype, mapped from YANG variable /brocade_nameserver_rpc/get_nameserver_detail/output/show_nameserver/nameserver_devicetype (nameserver-devicetype-type)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_nameserver_devicetype is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_nameserver_devicetype() directly.

    YANG Description: Indicates the type and role of the
device.

def _set_nameserver_devicetype(self, v, load=False):
    """
    Setter method for nameserver_devicetype, mapped from YANG variable /brocade_nameserver_rpc/get_nameserver_detail/output/show_nameserver/nameserver_devicetype (nameserver-devicetype-type)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_nameserver_devicetype is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_nameserver_devicetype() directly.

    YANG Description: Indicates the type and role of the
device.
    """
    if hasattr(v, "_utype"):
      v = v._utype(v)
    try:
      t = YANGDynClass(v,base=RestrictedClassType(base_type=unicode, restriction_dict={'pattern': u'Undefined|Unknown(initiator/target)|\n                    Physical Initiator|NPIV Initiator|\n                    Virtual Initiator|iSCSI Initiator|Physical Target|\n                    NPIV Target|Virtual Target|iSCSI Target|\n                    Physical Initiator+Target|NPIV Initiator+Target|\n                    Virtual Initiator+Target|iSCSI Initiator+Target', 'length': [u'0..64']}), is_leaf=True, yang_name="nameserver-devicetype", rest_name="nameserver-devicetype", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, extensions={u'tailf-common': {u'info': u'device type'}}, namespace='urn:brocade.com:mgmt:brocade-nameserver', defining_module='brocade-nameserver', yang_type='nameserver-devicetype-type', is_config=True)
    except (TypeError, ValueError):
      raise ValueError({
          'error-string': """nameserver_devicetype must be of a type compatible with nameserver-devicetype-type""",
          'defined-type': "brocade-nameserver:nameserver-devicetype-type",
          'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=unicode, restriction_dict={'pattern': u'Undefined|Unknown(initiator/target)|\n                    Physical Initiator|NPIV Initiator|\n                    Virtual Initiator|iSCSI Initiator|Physical Target|\n                    NPIV Target|Virtual Target|iSCSI Target|\n                    Physical Initiator+Target|NPIV Initiator+Target|\n                    Virtual Initiator+Target|iSCSI Initiator+Target', 'length': [u'0..64']}), is_leaf=True, yang_name="nameserver-devicetype", rest_name="nameserver-devicetype", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, extensions={u'tailf-common': {u'info': u'device type'}}, namespace='urn:brocade.com:mgmt:brocade-nameserver', defining_module='brocade-nameserver', yang_type='nameserver-devicetype-type', is_config=True)""",
        })

    self.__nameserver_devicetype = t
    if hasattr(self, '_set'):
      self._set()