Merge "VPN DPD timeout changes"
This commit is contained in:
commit
c25f33e163
@ -117,7 +117,7 @@ class TestIPSecDpdProfile(test_resources.BaseTestResource):
|
|||||||
data=jsonutils.dumps({
|
data=jsonutils.dumps({
|
||||||
'display_name': name,
|
'display_name': name,
|
||||||
'description': description,
|
'description': description,
|
||||||
'timeout': timeout,
|
'dpd_probe_interval': timeout,
|
||||||
'enabled': enabled
|
'enabled': enabled
|
||||||
}, sort_keys=True),
|
}, sort_keys=True),
|
||||||
headers=self.default_headers())
|
headers=self.default_headers())
|
||||||
@ -128,7 +128,7 @@ class TestIPSecDpdProfile(test_resources.BaseTestResource):
|
|||||||
uuid = test_constants.FAKE_DPD_ID
|
uuid = test_constants.FAKE_DPD_ID
|
||||||
mocked_resource = self.get_mocked_resource(response=fake_dpd)
|
mocked_resource = self.get_mocked_resource(response=fake_dpd)
|
||||||
mocked_resource.update(uuid, timeout=new_timeout)
|
mocked_resource.update(uuid, timeout=new_timeout)
|
||||||
fake_dpd['timeout'] = new_timeout
|
fake_dpd['dpd_probe_interval'] = new_timeout
|
||||||
test_client.assert_json_call(
|
test_client.assert_json_call(
|
||||||
'put', mocked_resource,
|
'put', mocked_resource,
|
||||||
'https://1.2.3.4/api/v1/%s/%s' % (mocked_resource.uri_segment,
|
'https://1.2.3.4/api/v1/%s/%s' % (mocked_resource.uri_segment,
|
||||||
|
@ -79,7 +79,7 @@ class DpdProfileActionTypes(object):
|
|||||||
class DpdProfileTimeoutLimits(object):
|
class DpdProfileTimeoutLimits(object):
|
||||||
"""Supported DPD timeout range"""
|
"""Supported DPD timeout range"""
|
||||||
DPD_TIMEOUT_MIN = 3
|
DPD_TIMEOUT_MIN = 3
|
||||||
DPD_TIMEOUT_MAX = 3600
|
DPD_TIMEOUT_MAX = 360
|
||||||
|
|
||||||
|
|
||||||
class IkeSALifetimeLimits(object):
|
class IkeSALifetimeLimits(object):
|
||||||
@ -206,7 +206,7 @@ class IPSecDpdProfile(utils.NsxLibApiBase):
|
|||||||
if description:
|
if description:
|
||||||
body['description'] = description
|
body['description'] = description
|
||||||
if timeout:
|
if timeout:
|
||||||
body['timeout'] = timeout
|
body['dpd_probe_interval'] = timeout
|
||||||
# Boolean parameters
|
# Boolean parameters
|
||||||
if enabled is not None:
|
if enabled is not None:
|
||||||
body['enabled'] = enabled
|
body['enabled'] = enabled
|
||||||
@ -219,7 +219,7 @@ class IPSecDpdProfile(utils.NsxLibApiBase):
|
|||||||
|
|
||||||
body = self.get(profile_id)
|
body = self.get(profile_id)
|
||||||
if timeout:
|
if timeout:
|
||||||
body['timeout'] = timeout
|
body['dpd_probe_interval'] = timeout
|
||||||
if enabled is not None:
|
if enabled is not None:
|
||||||
body['enabled'] = enabled
|
body['enabled'] = enabled
|
||||||
if tags is not None:
|
if tags is not None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user