Change network allocation of Unity driver to 1

One IP port is enough for share server created on Unity system.
This patch change the IP allocation in Unity driver from 2 to 1.

Change-Id: I3e8ea3f5fe1d3e713239d5c0fb19733abc97f5bd
Closes-Bug: 1648328
This commit is contained in:
Tina Tang 2016-11-23 13:35:49 +08:00 committed by Tina
parent 8ed0a25f36
commit c517667298
2 changed files with 2 additions and 2 deletions
manila
share/drivers/dell_emc/plugins/unity
tests/share/drivers/dell_emc/plugins/unity

@ -45,7 +45,7 @@ SUPPORTED_NETWORK_TYPES = (None, 'flat', 'vlan')
class UnityStorageConnection(driver.StorageConnection):
"""Implements Unity specific functionality for EMC Manila driver."""
IP_ALLOCATIONS = 2
IP_ALLOCATIONS = 1
@emc_utils.log_enter_exit
def __init__(self, *args, **kwargs):

@ -597,7 +597,7 @@ class TestConnection(test.TestCase):
@res_mock.patch_connection
def test_get_network_allocations_number(self, connection):
self.assertEqual(2, connection.get_network_allocations_number())
self.assertEqual(1, connection.get_network_allocations_number())
@res_mock.patch_connection
def test_get_proto_enum(self, connection):