Adds Neutron update Port and router benchmarks:
- NeutronNetwork.create_and_update_routers - NeutronNetwork.create_and_update_ports Partial implementation of blueprint benchmark-scenarios-for-neutron-update Change-Id: I35b84b36a8588dbff942014f18f6257959157ca5
This commit is contained in:
@@ -990,6 +990,16 @@ class FakeNeutronClient(object):
|
|||||||
raise neutron_exceptions.NeutronClientException
|
raise neutron_exceptions.NeutronClientException
|
||||||
self.__subnets[subnet_id].update(data)
|
self.__subnets[subnet_id].update(data)
|
||||||
|
|
||||||
|
def update_port(self, port_id, data):
|
||||||
|
if port_id not in self.__ports:
|
||||||
|
raise neutron_exceptions.NeutronClientException
|
||||||
|
self.__ports[port_id].update(data)
|
||||||
|
|
||||||
|
def update_router(self, router_id, data):
|
||||||
|
if router_id not in self.__routers:
|
||||||
|
raise neutron_exceptions.NeutronClientException
|
||||||
|
self.__routers[router_id].update(data)
|
||||||
|
|
||||||
def delete_network(self, network_id):
|
def delete_network(self, network_id):
|
||||||
if network_id not in self.__networks:
|
if network_id not in self.__networks:
|
||||||
raise neutron_exceptions.NeutronClientException
|
raise neutron_exceptions.NeutronClientException
|
||||||
|
|||||||
Reference in New Issue
Block a user