def _set_dscp(self, v, load=False):
    """
    Setter method for dscp, mapped from YANG variable /ipv6_acl/ipv6/access_list/extended/seq/dscp (union)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_dscp is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_dscp() 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'af23': {'value': 22}, u'af22': {'value': 20}, u'af21': {'value': 18}, u'af33': {'value': 30}, u'af41': {'value': 34}, u'af43': {'value': 38}, u'af31': {'value': 26}, u'af32': {'value': 28}, u'af42': {'value': 36}, u'af12': {'value': 12}, u'af13': {'value': 14}, u'af11': {'value': 10}, u'default': {'value': 0}, u'ef': {'value': 46}, u'cs5': {'value': 40}, u'cs4': {'value': 32}, u'cs7': {'value': 56}, u'cs6': {'value': 48}, u'cs1': {'value': 8}, u'cs3': {'value': 24}, u'cs2': {'value': 16}},),RestrictedClassType(base_type=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'0..63']}),], is_leaf=True, yang_name="dscp", rest_name="dscp", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Differentiated Service Code Point', u'cli-optional-in-sequence': None, u'cli-suppress-no': None}}, namespace='urn:brocade.com:mgmt:brocade-ipv6-access-list', defining_module='brocade-ipv6-access-list', yang_type='union', is_config=True)
    except (TypeError, ValueError):
      raise ValueError({
          'error-string': """dscp must be of a type compatible with union""",
          'defined-type': "brocade-ipv6-access-list:union",
          'generated-type': """YANGDynClass(base=[RestrictedClassType(base_type=unicode,                                     restriction_type="dict_key",                                     restriction_arg={u'af23': {'value': 22}, u'af22': {'value': 20}, u'af21': {'value': 18}, u'af33': {'value': 30}, u'af41': {'value': 34}, u'af43': {'value': 38}, u'af31': {'value': 26}, u'af32': {'value': 28}, u'af42': {'value': 36}, u'af12': {'value': 12}, u'af13': {'value': 14}, u'af11': {'value': 10}, u'default': {'value': 0}, u'ef': {'value': 46}, u'cs5': {'value': 40}, u'cs4': {'value': 32}, u'cs7': {'value': 56}, u'cs6': {'value': 48}, u'cs1': {'value': 8}, u'cs3': {'value': 24}, u'cs2': {'value': 16}},),RestrictedClassType(base_type=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'0..63']}),], is_leaf=True, yang_name="dscp", rest_name="dscp", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Differentiated Service Code Point', u'cli-optional-in-sequence': None, u'cli-suppress-no': None}}, namespace='urn:brocade.com:mgmt:brocade-ipv6-access-list', defining_module='brocade-ipv6-access-list', yang_type='union', is_config=True)""",
        })

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