'Create an address scope.'

def create_address_scope(self, context, address_scope):

    a_s = address_scope['address_scope']
    address_scope_id = (a_s.get('id') or uuidutils.generate_uuid())
    pool_args = {'project_id': a_s['tenant_id'], 'id': address_scope_id, 'name': a_s['name'], 'shared': a_s['shared'], 'ip_version': a_s['ip_version']}
    address_scope = obj_addr_scope.AddressScope(context, **pool_args)
    address_scope.create()
    return self._make_address_scope_dict(address_scope)
