Various small fixes (#27766)
This commit is contained in:
parent
b52aeeabfa
commit
b339f23485
4 changed files with 6 additions and 23 deletions
|
@ -204,8 +204,6 @@ def main():
|
||||||
transforms = {
|
transforms = {
|
||||||
}
|
}
|
||||||
|
|
||||||
json_encodes = ['targetvserverexpr']
|
|
||||||
|
|
||||||
# Instantiate config proxy
|
# Instantiate config proxy
|
||||||
csaction_proxy = ConfigProxy(
|
csaction_proxy = ConfigProxy(
|
||||||
actual=csaction(),
|
actual=csaction(),
|
||||||
|
@ -215,7 +213,6 @@ def main():
|
||||||
readonly_attrs=readonly_attrs,
|
readonly_attrs=readonly_attrs,
|
||||||
immutable_attrs=immutable_attrs,
|
immutable_attrs=immutable_attrs,
|
||||||
transforms=transforms,
|
transforms=transforms,
|
||||||
json_encodes=json_encodes,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -180,11 +180,6 @@ options:
|
||||||
setting, the client-side connection port is used as the source port for the server-side connection.
|
setting, the client-side connection port is used as the source port for the server-side connection.
|
||||||
- "Note: This parameter is available only when the Use Source IP (USIP) parameter is set to YES."
|
- "Note: This parameter is available only when the Use Source IP (USIP) parameter is set to YES."
|
||||||
|
|
||||||
sc:
|
|
||||||
description:
|
|
||||||
- "State of SureConnect for the service."
|
|
||||||
default: off
|
|
||||||
|
|
||||||
sp:
|
sp:
|
||||||
description:
|
description:
|
||||||
- "Enable surge protection for the service."
|
- "Enable surge protection for the service."
|
||||||
|
@ -621,10 +616,6 @@ def main():
|
||||||
cipheader=dict(type='str'),
|
cipheader=dict(type='str'),
|
||||||
usip=dict(type='bool'),
|
usip=dict(type='bool'),
|
||||||
useproxyport=dict(type='bool'),
|
useproxyport=dict(type='bool'),
|
||||||
sc=dict(
|
|
||||||
type='bool',
|
|
||||||
default=False,
|
|
||||||
),
|
|
||||||
sp=dict(type='bool'),
|
sp=dict(type='bool'),
|
||||||
rtspsessionidremap=dict(
|
rtspsessionidremap=dict(
|
||||||
type='bool',
|
type='bool',
|
||||||
|
@ -742,7 +733,6 @@ def main():
|
||||||
'cipheader',
|
'cipheader',
|
||||||
'usip',
|
'usip',
|
||||||
'useproxyport',
|
'useproxyport',
|
||||||
'sc',
|
|
||||||
'sp',
|
'sp',
|
||||||
'rtspsessionidremap',
|
'rtspsessionidremap',
|
||||||
'clttimeout',
|
'clttimeout',
|
||||||
|
@ -828,7 +818,6 @@ def main():
|
||||||
'healthmonitor': ['bool_yes_no'],
|
'healthmonitor': ['bool_yes_no'],
|
||||||
'useproxyport': ['bool_yes_no'],
|
'useproxyport': ['bool_yes_no'],
|
||||||
'rtspsessionidremap': ['bool_on_off'],
|
'rtspsessionidremap': ['bool_on_off'],
|
||||||
'sc': ['bool_on_off'],
|
|
||||||
'accessdown': ['bool_yes_no'],
|
'accessdown': ['bool_yes_no'],
|
||||||
'cmp': ['bool_yes_no'],
|
'cmp': ['bool_yes_no'],
|
||||||
}
|
}
|
||||||
|
|
|
@ -151,11 +151,6 @@ options:
|
||||||
the service as UP at all times.
|
the service as UP at all times.
|
||||||
type: bool
|
type: bool
|
||||||
|
|
||||||
sc:
|
|
||||||
description:
|
|
||||||
- "State of the SureConnect feature for the service group."
|
|
||||||
type: bool
|
|
||||||
|
|
||||||
sp:
|
sp:
|
||||||
description:
|
description:
|
||||||
- "Enable surge protection for the service group."
|
- "Enable surge protection for the service group."
|
||||||
|
@ -693,7 +688,6 @@ def main():
|
||||||
pathmonitorindv=dict(type='bool'),
|
pathmonitorindv=dict(type='bool'),
|
||||||
useproxyport=dict(type='bool'),
|
useproxyport=dict(type='bool'),
|
||||||
healthmonitor=dict(type='bool'),
|
healthmonitor=dict(type='bool'),
|
||||||
sc=dict(type='bool'),
|
|
||||||
sp=dict(type='bool'),
|
sp=dict(type='bool'),
|
||||||
rtspsessionidremap=dict(type='bool'),
|
rtspsessionidremap=dict(type='bool'),
|
||||||
clttimeout=dict(type='float'),
|
clttimeout=dict(type='float'),
|
||||||
|
@ -789,7 +783,6 @@ def main():
|
||||||
'pathmonitorindv',
|
'pathmonitorindv',
|
||||||
'useproxyport',
|
'useproxyport',
|
||||||
'healthmonitor',
|
'healthmonitor',
|
||||||
'sc',
|
|
||||||
'sp',
|
'sp',
|
||||||
'rtspsessionidremap',
|
'rtspsessionidremap',
|
||||||
'clttimeout',
|
'clttimeout',
|
||||||
|
@ -862,7 +855,6 @@ def main():
|
||||||
'healthmonitor': ['bool_yes_no'],
|
'healthmonitor': ['bool_yes_no'],
|
||||||
'useproxyport': ['bool_yes_no'],
|
'useproxyport': ['bool_yes_no'],
|
||||||
'rtspsessionidremap': ['bool_on_off'],
|
'rtspsessionidremap': ['bool_on_off'],
|
||||||
'sc': ['bool_on_off'],
|
|
||||||
'graceful': ['bool_yes_no'],
|
'graceful': ['bool_yes_no'],
|
||||||
'cmp': ['bool_yes_no'],
|
'cmp': ['bool_yes_no'],
|
||||||
}
|
}
|
||||||
|
@ -926,7 +918,11 @@ def main():
|
||||||
if not servicegroup_exists(client, module):
|
if not servicegroup_exists(client, module):
|
||||||
module.fail_json(msg='Service group is not present', **module_result)
|
module.fail_json(msg='Service group is not present', **module_result)
|
||||||
if not servicegroup_identical(client, module, servicegroup_proxy):
|
if not servicegroup_identical(client, module, servicegroup_proxy):
|
||||||
module.fail_json(msg='Service group is not identical to configuration', **module_result)
|
module.fail_json(
|
||||||
|
msg='Service group is not identical to configuration',
|
||||||
|
diff=diff(client, module, servicegroup_proxy),
|
||||||
|
**module_result
|
||||||
|
)
|
||||||
if not servicemembers_identical(client, module):
|
if not servicemembers_identical(client, module):
|
||||||
module.fail_json(msg='Service group members differ from configuration', **module_result)
|
module.fail_json(msg='Service group members differ from configuration', **module_result)
|
||||||
if not monitor_bindings_identical(client, module):
|
if not monitor_bindings_identical(client, module):
|
||||||
|
|
|
@ -796,6 +796,7 @@ class TestNetscalerLBVServerModule(TestModule):
|
||||||
ConfigProxy=Mock(return_value=lb_vserver_proxy_mock),
|
ConfigProxy=Mock(return_value=lb_vserver_proxy_mock),
|
||||||
ensure_feature_is_enabled=Mock(return_value=True),
|
ensure_feature_is_enabled=Mock(return_value=True),
|
||||||
lb_vserver_exists=Mock(side_effect=[True, True]),
|
lb_vserver_exists=Mock(side_effect=[True, True]),
|
||||||
|
nitro_exception=self.MockException,
|
||||||
do_state_change=do_state_change_mock,
|
do_state_change=do_state_change_mock,
|
||||||
):
|
):
|
||||||
self.module = netscaler_lb_vserver
|
self.module = netscaler_lb_vserver
|
||||||
|
|
Loading…
Reference in a new issue