def _set_vlan(self, v, load=False):
    '\n    Setter method for vlan, mapped from YANG variable /interface/hundredgigabitethernet/switchport/access_mac_group_rspan_vlan_classification/access/vlan (list)\n    If this variable is read-only (config: false) in the\n    source YANG file, then _set_vlan is considered as a private\n    method. Backends looking to populate this variable should\n    do so via calling thisObj._set_vlan() directly.\n    '
    if hasattr(v, '_utype'):
        v = v._utype(v)
    try:
        t = YANGDynClass(v, base=YANGListType('access_vlan_id access_mac_group', vlan.vlan, yang_name='vlan', rest_name='rspan-vlan', parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='access-vlan-id access-mac-group', extensions={u'tailf-common': {u'callpoint': u'rspan-mac-group-vlan-classification-config-phy', u'cli-suppress-list-no': None, u'cli-no-key-completion': None, u'cli-suppress-mode': None, u'alt-name': u'rspan-vlan'}}), is_container='list', yang_name='vlan', rest_name='rspan-vlan', parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'callpoint': u'rspan-mac-group-vlan-classification-config-phy', u'cli-suppress-list-no': None, u'cli-no-key-completion': None, u'cli-suppress-mode': None, u'alt-name': u'rspan-vlan'}}, namespace='urn:brocade.com:mgmt:brocade-interface', defining_module='brocade-interface', yang_type='list', is_config=True)
    except (TypeError, ValueError):
        raise ValueError({'error-string': 'vlan must be of a type compatible with list', 'defined-type': 'list', 'generated-type': 'YANGDynClass(base=YANGListType("access_vlan_id access_mac_group",vlan.vlan, yang_name="vlan", rest_name="rspan-vlan", parent=self, is_container=\'list\', user_ordered=False, path_helper=self._path_helper, yang_keys=\'access-vlan-id access-mac-group\', extensions={u\'tailf-common\': {u\'callpoint\': u\'rspan-mac-group-vlan-classification-config-phy\', u\'cli-suppress-list-no\': None, u\'cli-no-key-completion\': None, u\'cli-suppress-mode\': None, u\'alt-name\': u\'rspan-vlan\'}}), is_container=\'list\', yang_name="vlan", rest_name="rspan-vlan", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u\'tailf-common\': {u\'callpoint\': u\'rspan-mac-group-vlan-classification-config-phy\', u\'cli-suppress-list-no\': None, u\'cli-no-key-completion\': None, u\'cli-suppress-mode\': None, u\'alt-name\': u\'rspan-vlan\'}}, namespace=\'urn:brocade.com:mgmt:brocade-interface\', defining_module=\'brocade-interface\', yang_type=\'list\', is_config=True)'})
    self.__vlan = t
    if hasattr(self, '_set'):
        self._set()
Setter method for vlan, mapped from YANG variable /interface/hundredgigabitethernet/switchport/access_mac_group_rspan_vlan_classification/access/vlan (list)
If this variable is read-only (config: false) in the
source YANG file, then _set_vlan is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_vlan() directly.
def _set_vlan(self, v, load=False):
    '\n    Setter method for vlan, mapped from YANG variable /interface/hundredgigabitethernet/switchport/access_mac_group_rspan_vlan_classification/access/vlan (list)\n    If this variable is read-only (config: false) in the\n    source YANG file, then _set_vlan is considered as a private\n    method. Backends looking to populate this variable should\n    do so via calling thisObj._set_vlan() directly.\n    '
    if hasattr(v, '_utype'):
        v = v._utype(v)
    try:
        t = YANGDynClass(v, base=YANGListType('access_vlan_id access_mac_group', vlan.vlan, yang_name='vlan', rest_name='rspan-vlan', parent=self, is_container='list', user_ordered=False, path_helper=self._path_helper, yang_keys='access-vlan-id access-mac-group', extensions={u'tailf-common': {u'callpoint': u'rspan-mac-group-vlan-classification-config-phy', u'cli-suppress-list-no': None, u'cli-no-key-completion': None, u'cli-suppress-mode': None, u'alt-name': u'rspan-vlan'}}), is_container='list', yang_name='vlan', rest_name='rspan-vlan', parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u'tailf-common': {u'callpoint': u'rspan-mac-group-vlan-classification-config-phy', u'cli-suppress-list-no': None, u'cli-no-key-completion': None, u'cli-suppress-mode': None, u'alt-name': u'rspan-vlan'}}, namespace='urn:brocade.com:mgmt:brocade-interface', defining_module='brocade-interface', yang_type='list', is_config=True)
    except (TypeError, ValueError):
        raise ValueError({'error-string': 'vlan must be of a type compatible with list', 'defined-type': 'list', 'generated-type': 'YANGDynClass(base=YANGListType("access_vlan_id access_mac_group",vlan.vlan, yang_name="vlan", rest_name="rspan-vlan", parent=self, is_container=\'list\', user_ordered=False, path_helper=self._path_helper, yang_keys=\'access-vlan-id access-mac-group\', extensions={u\'tailf-common\': {u\'callpoint\': u\'rspan-mac-group-vlan-classification-config-phy\', u\'cli-suppress-list-no\': None, u\'cli-no-key-completion\': None, u\'cli-suppress-mode\': None, u\'alt-name\': u\'rspan-vlan\'}}), is_container=\'list\', yang_name="vlan", rest_name="rspan-vlan", parent=self, path_helper=self._path_helper, extmethods=self._extmethods, register_paths=True, extensions={u\'tailf-common\': {u\'callpoint\': u\'rspan-mac-group-vlan-classification-config-phy\', u\'cli-suppress-list-no\': None, u\'cli-no-key-completion\': None, u\'cli-suppress-mode\': None, u\'alt-name\': u\'rspan-vlan\'}}, namespace=\'urn:brocade.com:mgmt:brocade-interface\', defining_module=\'brocade-interface\', yang_type=\'list\', is_config=True)'})
    self.__vlan = t
    if hasattr(self, '_set'):
        self._set()