Setter method for intf_ldp_sync, mapped from YANG variable /routing_system/interface/ve/ip/interface_vlan_ospf_conf/ospf1/intf_ldp_sync (enumeration)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_intf_ldp_sync is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_intf_ldp_sync() directly.

def _set_intf_ldp_sync(self, v, load=False):
    """
    Setter method for intf_ldp_sync, mapped from YANG variable /routing_system/interface/ve/ip/interface_vlan_ospf_conf/ospf1/intf_ldp_sync (enumeration)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_intf_ldp_sync is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_intf_ldp_sync() 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'enable': {'value': 1}, u'disable': {'value': 2}},), is_leaf=True, yang_name="intf-ldp-sync", rest_name="ldp-sync", 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'Set LDP-SYNC operation mode on this interface', u'cli-full-no': None, u'alt-name': u'ldp-sync'}}, namespace='urn:brocade.com:mgmt:brocade-ospf', defining_module='brocade-ospf', yang_type='enumeration', is_config=True)
    except (TypeError, ValueError):
      raise ValueError({
          'error-string': """intf_ldp_sync must be of a type compatible with enumeration""",
          'defined-type': "brocade-ospf:enumeration",
          'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=unicode,                                     restriction_type="dict_key",                                     restriction_arg={u'enable': {'value': 1}, u'disable': {'value': 2}},), is_leaf=True, yang_name="intf-ldp-sync", rest_name="ldp-sync", 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'Set LDP-SYNC operation mode on this interface', u'cli-full-no': None, u'alt-name': u'ldp-sync'}}, namespace='urn:brocade.com:mgmt:brocade-ospf', defining_module='brocade-ospf', yang_type='enumeration', is_config=True)""",
        })

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