def _set_default_action(self, v, load=False):
    """
    Setter method for default_action, mapped from YANG variable /openflow_state/detail/default_action (default-packet-action)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_default_action is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_default_action() directly.

    YANG Description: Default action
    """
    if hasattr(v, "_utype"):
      v = v._utype(v)
    try:
      t = YANGDynClass(v,base=RestrictedClassType(base_type=unicode,                                     restriction_type="dict_key",                                     restriction_arg={u'dcm-action-drop': {'value': 1}, u'dcm-action-invalid': {'value': 0}, u'dcm-action-send-to-controller': {'value': 2}},), is_leaf=True, yang_name="default-action", rest_name="default-action", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:brocade.com:mgmt:brocade-openflow-operational', defining_module='brocade-openflow-operational', yang_type='default-packet-action', is_config=False)
    except (TypeError, ValueError):
      raise ValueError({
          'error-string': """default_action must be of a type compatible with default-packet-action""",
          'defined-type': "brocade-openflow-operational:default-packet-action",
          'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=unicode,                                     restriction_type="dict_key",                                     restriction_arg={u'dcm-action-drop': {'value': 1}, u'dcm-action-invalid': {'value': 0}, u'dcm-action-send-to-controller': {'value': 2}},), is_leaf=True, yang_name="default-action", rest_name="default-action", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:brocade.com:mgmt:brocade-openflow-operational', defining_module='brocade-openflow-operational', yang_type='default-packet-action', is_config=False)""",
        })

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