Merge "Remove unused _vlan_is_disabled test flag"
This commit is contained in:
commit
5cc4f2bd25
@ -117,7 +117,6 @@ NEW_NETWORK = {
|
|||||||
class FakeNetworkAPI(object):
|
class FakeNetworkAPI(object):
|
||||||
|
|
||||||
_sentinel = object()
|
_sentinel = object()
|
||||||
_vlan_is_disabled = False
|
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.networks = copy.deepcopy(FAKE_NETWORKS)
|
self.networks = copy.deepcopy(FAKE_NETWORKS)
|
||||||
@ -153,8 +152,6 @@ class FakeNetworkAPI(object):
|
|||||||
|
|
||||||
def add_network_to_project(self, context,
|
def add_network_to_project(self, context,
|
||||||
project_id, network_uuid=None):
|
project_id, network_uuid=None):
|
||||||
if self._vlan_is_disabled:
|
|
||||||
raise NotImplementedError()
|
|
||||||
if network_uuid:
|
if network_uuid:
|
||||||
for network in self.networks:
|
for network in self.networks:
|
||||||
if network.get('project_id', None) is None:
|
if network.get('project_id', None) is None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user