code: def _set_level_2(self, v, load=False):
      
      if hasattr(v, "_utype"):
        v = v._utype(v)
      try:
        t = YANGDynClass(v,base=level_2.level_2, is_container='container', presence=False, yang_name="level-2", rest_name="level-2", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Level-2 routes'}}, namespace='urn:brocade.com:mgmt:brocade-isis', defining_module='brocade-isis', yang_type='container', is_config=True)
      except (TypeError, ValueError):
        raise ValueError({
            'error-string': """level_2 must be of a type compatible with container""",
            'defined-type': "container",
            'generated-type': """YANGDynClass(base=level_2.level_2, is_container='container', presence=False, yang_name="level-2", rest_name="level-2", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'Level-2 routes'}}, namespace='urn:brocade.com:mgmt:brocade-isis', defining_module='brocade-isis', yang_type='container', is_config=True)""",
          })
  
      self.__level_2 = t
      if hasattr(self, '_set'):
        self._set()
docs: Setter method for level_2, mapped from YANG variable /routing_system/router/isis/router_isis_cmds_holder/address_family/ipv6/af_ipv6_unicast/af_ipv6_attributes/af_common_attributes/redistribute/isis/level_2 (container)
      If this variable is read-only (config: false) in the
      source YANG file, then _set_level_2 is considered as a private
      method. Backends looking to populate this variable should
      do so via calling thisObj._set_level_2() directly.