Setter method for circuit_encap, mapped from YANG variable /isis_state/interface_detail/isis_intf/circuit_encap (isis-circ-encap)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_circuit_encap is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_circuit_encap() directly.

    YANG Description: Circuit Encapsulation

def _set_circuit_encap(self, v, load=False):
    """
    Setter method for circuit_encap, mapped from YANG variable /isis_state/interface_detail/isis_intf/circuit_encap (isis-circ-encap)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_circuit_encap is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_circuit_encap() directly.

    YANG Description: Circuit Encapsulation
    """
    if hasattr(v, "_utype"):
      v = v._utype(v)
    try:
      t = YANGDynClass(v,base=RestrictedClassType(base_type=unicode,                                     restriction_type="dict_key",                                     restriction_arg={u'ppp': {'value': 2}, u'undef': {'value': 0}, u'chdlc': {'value': 1}},), is_leaf=True, yang_name="circuit-encap", rest_name="circuit-encap", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:brocade.com:mgmt:brocade-isis-operational', defining_module='brocade-isis-operational', yang_type='isis-circ-encap', is_config=False)
    except (TypeError, ValueError):
      raise ValueError({
          'error-string': """circuit_encap must be of a type compatible with isis-circ-encap""",
          'defined-type': "brocade-isis-operational:isis-circ-encap",
          'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=unicode,                                     restriction_type="dict_key",                                     restriction_arg={u'ppp': {'value': 2}, u'undef': {'value': 0}, u'chdlc': {'value': 1}},), is_leaf=True, yang_name="circuit-encap", rest_name="circuit-encap", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:brocade.com:mgmt:brocade-isis-operational', defining_module='brocade-isis-operational', yang_type='isis-circ-encap', is_config=False)""",
        })

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