Setter method for igmps_version, mapped from YANG variable /bridge_domain/ip/bd_ip_igmp/snooping/igmps_version (igmps-version-type)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_igmps_version is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_igmps_version() directly.

def _set_igmps_version(self, v, load=False):
    """
    Setter method for igmps_version, mapped from YANG variable /bridge_domain/ip/bd_ip_igmp/snooping/igmps_version (igmps-version-type)
    If this variable is read-only (config: false) in the
    source YANG file, then _set_igmps_version is considered as a private
    method. Backends looking to populate this variable should
    do so via calling thisObj._set_igmps_version() directly.
    """
    if hasattr(v, "_utype"):
      v = v._utype(v)
    try:
      t = YANGDynClass(v,base=RestrictedClassType(base_type=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'1..3']}), default=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)(2), is_leaf=True, yang_name="igmps-version", rest_name="version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'IGMP Snooping Version', u'cli-full-command': None, u'alt-name': u'version'}}, namespace='urn:brocade.com:mgmt:brocade-igmp-snooping', defining_module='brocade-igmp-snooping', yang_type='igmps-version-type', is_config=True)
    except (TypeError, ValueError):
      raise ValueError({
          'error-string': """igmps_version must be of a type compatible with igmps-version-type""",
          'defined-type': "brocade-igmp-snooping:igmps-version-type",
          'generated-type': """YANGDynClass(base=RestrictedClassType(base_type=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32), restriction_dict={'range': [u'1..3']}), default=RestrictedClassType(base_type=long, restriction_dict={'range': ['0..4294967295']}, int_size=32)(2), is_leaf=True, yang_name="igmps-version", rest_name="version", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'info': u'IGMP Snooping Version', u'cli-full-command': None, u'alt-name': u'version'}}, namespace='urn:brocade.com:mgmt:brocade-igmp-snooping', defining_module='brocade-igmp-snooping', yang_type='igmps-version-type', is_config=True)""",
        })

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