Setter method for dest_ethernet_val, mapped from YANG variable /monitor/session/span_command/dest_ethernet_val (span-if-type)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_dest_ethernet_val is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_dest_ethernet_val() directly.

def _set_dest_ethernet_val(self, v, load=False):
    """
    Setter method for dest_ethernet_val, mapped from YANG variable /monitor/session/span_command/dest_ethernet_val (span-if-type)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_dest_ethernet_val is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_dest_ethernet_val() directly.
    """
    if hasattr(v, "_utype"):
      v = v._utype(v)
    try:
      t = YANGDynClass(v,base=RestrictedClassType(base_type=unicode, restriction_dict={'length': [u'3..16']}), is_leaf=True, yang_name="dest-ethernet-val", rest_name="dest-ethernet-val", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'cli-drop-node-name': None, u'display-when': u"../dest-ethernet = 'ethernet'", u'cli-incomplete-no': None, u'cli-incomplete-command': None}}, namespace='urn:brocade.com:mgmt:brocade-span', defining_module='brocade-span', yang_type='span-if-type', is_config=True)
    except (TypeError, ValueError):
      raise ValueError({
          'error-string': """dest_ethernet_val must be of a type compatible with span-if-type""",
          'defined-type': "brocade-span:span-if-type",
          'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=unicode, restriction_dict={'length': [u'3..16']}), is_leaf=True, yang_name="dest-ethernet-val", rest_name="dest-ethernet-val", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'cli-drop-node-name': None, u'display-when': u"../dest-ethernet = 'ethernet'", u'cli-incomplete-no': None, u'cli-incomplete-command': None}}, namespace='urn:brocade.com:mgmt:brocade-span', defining_module='brocade-span', yang_type='span-if-type', is_config=True)""",
        })

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