~james-page/ubuntu/raring/nova/myfixes

« back to all changes in this revision

Viewing changes to nova/tests/fake_network.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-09-20 07:45:50 UTC
  • mto: This revision was merged to the branch mainline in revision 87.
  • Revision ID: package-import@ubuntu.com-20120920074550-ir9euteqh5gt4ja8
Tags: upstream-2012.2~rc1
ImportĀ upstreamĀ versionĀ 2012.2~rc1

Show diffs side-by-side

added added

removed removed

Lines of Context:
118
118
            fakenet['id'] = 999
119
119
            return fakenet
120
120
 
121
 
        def network_get(self, context, network_id):
 
121
        def network_get(self, context, network_id, project_only="allow_none"):
122
122
            return {'cidr_v6': '2001:db8:69:%x::/64' % network_id}
123
123
 
124
124
        def network_get_by_uuid(self, context, network_uuid):
127
127
        def network_get_all(self, context):
128
128
            raise exception.NoNetworksFound()
129
129
 
130
 
        def network_get_all_by_uuids(self, context):
 
130
        def network_get_all_by_uuids(self, context, project_only="allow_none"):
131
131
            raise exception.NoNetworksFound()
132
132
 
133
133
        def network_disassociate(self, context, network_id):
294
294
               'network': None,
295
295
               'instance_uuid': 0}
296
296
 
297
 
    def network_get_fake(context, network_id):
 
297
    def network_get_fake(context, network_id, project_only='allow_none'):
298
298
        nets = [n for n in networks if n['id'] == network_id]
299
299
        if not nets:
300
300
            raise exception.NetworkNotFound(network_id=network_id)