RESOURCE_ATTRIBUTE_MAP = {
'security_groups': {
'id': {'allow_post': False, 'allow_put': False,
- 'validate': {'type:regex': attr.UUID_PATTERN},
+ 'validate': {'type:uuid': None},
'is_visible': True},
'name': {'allow_post': True, 'allow_put': False,
'is_visible': True, 'default': '',
},
'security_group_rules': {
'id': {'allow_post': False, 'allow_put': False,
- 'validate': {'type:regex': attr.UUID_PATTERN},
+ 'validate': {'type:uuid': None},
'is_visible': True},
# external_id can be used to be backwards compatible with nova
'external_id': {'allow_post': True, 'allow_put': False,