Setter method for mep_down_up, mapped from YANG variable /protocol/cfm/domain_name/ma_name/cfm_ma_sub_commands/mep/mep_down_up (mep-down-up-type)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_mep_down_up is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_mep_down_up() directly.

def _set_mep_down_up(self, v, load=False):
    """
    Setter method for mep_down_up, mapped from YANG variable /protocol/cfm/domain_name/ma_name/cfm_ma_sub_commands/mep/mep_down_up (mep-down-up-type)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_mep_down_up is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_mep_down_up() directly.
    """
    if hasattr(v, "_utype"):
      v = v._utype(v)
    try:
      t = YANGDynClass(v,base=RestrictedClassType(base_type=unicode,                                     restriction_type="dict_key",                                     restriction_arg={u'down': {'value': 1}, u'up': {'value': 2}},), is_leaf=True, yang_name="mep-down-up", rest_name="mep-down-up", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'cli-run-template': u'$(.?:)', u'cli-incomplete-command': None, u'cli-hide-in-submode': None, u'cli-drop-node-name': None}}, namespace='urn:brocade.com:mgmt:brocade-dot1ag', defining_module='brocade-dot1ag', yang_type='mep-down-up-type', is_config=True)
    except (TypeError, ValueError):
      raise ValueError({
          'error-string': """mep_down_up must be of a type compatible with mep-down-up-type""",
          'defined-type': "brocade-dot1ag:mep-down-up-type",
          'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=unicode,                                     restriction_type="dict_key",                                     restriction_arg={u'down': {'value': 1}, u'up': {'value': 2}},), is_leaf=True, yang_name="mep-down-up", rest_name="mep-down-up", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'cli-run-template': u'$(.?:)', u'cli-incomplete-command': None, u'cli-hide-in-submode': None, u'cli-drop-node-name': None}}, namespace='urn:brocade.com:mgmt:brocade-dot1ag', defining_module='brocade-dot1ag', yang_type='mep-down-up-type', is_config=True)""",
        })

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