Setter method for node_hw_sync_state, mapped from YANG variable /brocade_vcs_rpc/show_vcs/output/vcs_nodes/vcs_node_info/node_hw_sync_state (node-hw-sync-state-type)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_node_hw_sync_state is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_node_hw_sync_state() directly.

    YANG Description: Node hardware synchronization state

def _set_node_hw_sync_state(self, v, load=False):
    """
    Setter method for node_hw_sync_state, mapped from YANG variable /brocade_vcs_rpc/show_vcs/output/vcs_nodes/vcs_node_info/node_hw_sync_state (node-hw-sync-state-type)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_node_hw_sync_state is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_node_hw_sync_state() directly.

    YANG Description: Node hardware synchronization state
    """
    if hasattr(v, "_utype"):
      v = v._utype(v)
    try:
      t = YANGDynClass(v,base=RestrictedClassType(base_type=unicode,                                     restriction_type="dict_key",                                     restriction_arg={u'node-in-sync': {'value': 4}, u'node-uninitialized': {'value': 2}, u'node-unknown': {'value': 1}, u'node-synchronizing': {'value': 3}, u'node-out-of-sync': {'value': 5}},), is_leaf=True, yang_name="node-hw-sync-state", rest_name="node-hw-sync-state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-vcs', defining_module='brocade-vcs', yang_type='node-hw-sync-state-type', is_config=True)
    except (TypeError, ValueError):
      raise ValueError({
          'error-string': """node_hw_sync_state must be of a type compatible with node-hw-sync-state-type""",
          'defined-type': "brocade-vcs:node-hw-sync-state-type",
          'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=unicode,                                     restriction_type="dict_key",                                     restriction_arg={u'node-in-sync': {'value': 4}, u'node-uninitialized': {'value': 2}, u'node-unknown': {'value': 1}, u'node-synchronizing': {'value': 3}, u'node-out-of-sync': {'value': 5}},), is_leaf=True, yang_name="node-hw-sync-state", rest_name="node-hw-sync-state", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=False, namespace='urn:brocade.com:mgmt:brocade-vcs', defining_module='brocade-vcs', yang_type='node-hw-sync-state-type', is_config=True)""",
        })

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