def _set_lsp_tie_breaking(self, v, load=False):
    """
    Setter method for lsp_tie_breaking, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/lsp/lsp_tie_breaking (tie-breaking)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_lsp_tie_breaking is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_lsp_tie_breaking() 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'most-fill': {'value': 2}, u'random': {'value': 0}, u'least-fill': {'value': 1}},), default=unicode("random"), is_leaf=True, yang_name="lsp-tie-breaking", rest_name="tie-breaking", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'cli-full-command': None, u'info': u'Choose the tie breaking mode for cspf', u'cli-full-no': None, u'alt-name': u'tie-breaking'}}, namespace='urn:brocade.com:mgmt:brocade-mpls', defining_module='brocade-mpls', yang_type='tie-breaking', is_config=True)
    except (TypeError, ValueError):
      raise ValueError({
          'error-string': """lsp_tie_breaking must be of a type compatible with tie-breaking""",
          'defined-type': "brocade-mpls:tie-breaking",
          'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=unicode,                                     restriction_type="dict_key",                                     restriction_arg={u'most-fill': {'value': 2}, u'random': {'value': 0}, u'least-fill': {'value': 1}},), default=unicode("random"), is_leaf=True, yang_name="lsp-tie-breaking", rest_name="tie-breaking", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'cli-full-command': None, u'info': u'Choose the tie breaking mode for cspf', u'cli-full-no': None, u'alt-name': u'tie-breaking'}}, namespace='urn:brocade.com:mgmt:brocade-mpls', defining_module='brocade-mpls', yang_type='tie-breaking', is_config=True)""",
        })

    self.__lsp_tie_breaking = t
    if hasattr(self, '_set'):
      self._set()
def _set_lsp_tie_breaking ( self , v , load = False ) : if hasattr ( v , "_utype" ) : v = v . _utype ( v ) try : t = YANGDynClass ( v , base = RestrictedClassType ( base_type = unicode , restriction_type = "dict_key" , restriction_arg = { u'most-fill' : { 'value' : 2 } , u'random' : { 'value' : 0 } , u'least-fill' : { 'value' : 1 } } , ) , default = unicode ( "random" ) , is_leaf = True , yang_name = "lsp-tie-breaking" , rest_name = "tie-breaking" , parent = self , path_helper = self . _path_helper , extmethods = self . _extmethods , register_paths = True , extensions = { u'tailf-common' : { u'cli-full-command' : None , u'info' : u'Choose the tie breaking mode for cspf' , u'cli-full-no' : None , u'alt-name' : u'tie-breaking' } } , namespace = 'urn:brocade.com:mgmt:brocade-mpls' , defining_module = 'brocade-mpls' , yang_type = 'tie-breaking' , is_config = True ) except ( TypeError , ValueError ) : raise ValueError ( { 'error-string' : """lsp_tie_breaking must be of a type compatible with tie-breaking""" , 'defined-type' : "brocade-mpls:tie-breaking" , 'generated-type' : """YANGDynClass(base=RestrictedClassType(base_type=unicode,                                     restriction_type="dict_key",                                     restriction_arg={u'most-fill': {'value': 2}, u'random': {'value': 0}, u'least-fill': {'value': 1}},), default=unicode("random"), is_leaf=True, yang_name="lsp-tie-breaking", rest_name="tie-breaking", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'cli-full-command': None, u'info': u'Choose the tie breaking mode for cspf', u'cli-full-no': None, u'alt-name': u'tie-breaking'}}, namespace='urn:brocade.com:mgmt:brocade-mpls', defining_module='brocade-mpls', yang_type='tie-breaking', is_config=True)""" , } ) self . __lsp_tie_breaking = t if hasattr ( self , '_set' ) : self . _set ( )
Setter method for lsp_tie_breaking, mapped from YANG variable /mpls_config/router/mpls/mpls_cmds_holder/lsp/lsp_tie_breaking (tie-breaking)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_lsp_tie_breaking is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_lsp_tie_breaking() directly.