Setter method for session_style, mapped from YANG variable /mpls_state/rsvp/sessions/psbs/session_style (session-reservation-style)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_session_style is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_session_style() directly.

    YANG Description: Style of session

def _set_session_style(self, v, load=False):
    """
    Setter method for session_style, mapped from YANG variable /mpls_state/rsvp/sessions/psbs/session_style (session-reservation-style)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_session_style is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_session_style() directly.

    YANG Description: Style of session
    """
    if hasattr(v, "_utype"):
      v = v._utype(v)
    try:
      t = YANGDynClass(v,base=RestrictedClassType(base_type=unicode,                                     restriction_type="dict_key",                                     restriction_arg={u'reservation-style-shared-explicit': {'value': 2}, u'reservation-style-wildcard-filter': {'value': 0}, u'reservation-style-unknown': {'value': 3}, u'reservation-style-fixed-filter': {'value': 1}},), is_leaf=True, yang_name="session-style", rest_name="session-style", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:brocade.com:mgmt:brocade-mpls-operational', defining_module='brocade-mpls-operational', yang_type='session-reservation-style', is_config=False)
    except (TypeError, ValueError):
      raise ValueError({
          'error-string': """session_style must be of a type compatible with session-reservation-style""",
          'defined-type': "brocade-mpls-operational:session-reservation-style",
          'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=unicode,                                     restriction_type="dict_key",                                     restriction_arg={u'reservation-style-shared-explicit': {'value': 2}, u'reservation-style-wildcard-filter': {'value': 0}, u'reservation-style-unknown': {'value': 3}, u'reservation-style-fixed-filter': {'value': 1}},), is_leaf=True, yang_name="session-style", rest_name="session-style", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, namespace='urn:brocade.com:mgmt:brocade-mpls-operational', defining_module='brocade-mpls-operational', yang_type='session-reservation-style', is_config=False)""",
        })

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