Skip to content

Commit 24feca8

Browse files
2 parents d8621e2 + 71829ee commit 24feca8

12 files changed

+25
-11
lines changed

examples/nsacls.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
- name: Configure nsacls
77
delegate_to: localhost
88
netscaler.adc.nsacls:
9-
state: present
9+
state: applied

examples/nspbrs.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@
66
- name: Configure nspbrs
77
delegate_to: localhost
88
netscaler.adc.nspbrs:
9-
state: present
10-
action: apply
9+
state: applied

plugins/module_utils/common.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,8 @@ def get_valid_desired_states(resource_name):
601601
desired_states.add("switched")
602602
if "unset" in supported_operations:
603603
desired_states.add("unset")
604+
if "apply" in supported_operations:
605+
desired_states.add("applied")
604606
return desired_states
605607

606608

plugins/module_utils/module_executor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -979,13 +979,15 @@ def main(self):
979979
"flushed",
980980
"switched",
981981
"unset",
982+
"applied",
982983
}:
983984
state_action_map = {
984985
"created": "create",
985986
"imported": "import",
986987
"flushed": "flush",
987988
"switched": "switch",
988989
"unset": "unset",
990+
"applied": "apply",
989991
}
990992
self.act_on_resource(
991993
action=state_action_map[self.module.params["state"]]

plugins/modules/nsacls.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
- Shiva Shankar Vaddepally (@shivashankar-vaddepally)
2828
options:
2929
state:
30-
choices: []
30+
choices:
31+
- applied
3132
default: present
3233
description:
3334
- The state of the resource being configured by the module on the NetScaler
@@ -57,7 +58,7 @@
5758
- name: Configure nsacls
5859
delegate_to: localhost
5960
netscaler.adc.nsacls:
60-
state: present
61+
state: applied
6162
"""
6263

6364
RETURN = r"""

plugins/modules/nsacls6.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@
2727
- Shiva Shankar Vaddepally (@shivashankar-vaddepally)
2828
options:
2929
state:
30-
choices: []
30+
choices:
31+
- applied
3132
default: present
3233
description:
3334
- The state of the resource being configured by the module on the NetScaler
3435
ADC node.
36+
- When C(applied), the resources will be applied on the NetScaler ADC node
3537
type: str
3638
type:
3739
type: str

plugins/modules/nspbr6.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
- enabled
3434
- disabled
3535
- unset
36+
- applied
3637
default: present
3738
description:
3839
- The state of the resource being configured by the module on the NetScaler
@@ -43,6 +44,7 @@
4344
- When C(enabled), the resource will be enabled on the NetScaler ADC node.
4445
- When C(disabled), the resource will be disabled on the NetScaler ADC node.
4546
- When C(unset), the resource will be unset on the NetScaler ADC node.
47+
- When C(applied), the resources will be applied on the NetScaler ADC node
4648
type: str
4749
interface:
4850
type: str

plugins/modules/nspbrs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
- Shiva Shankar Vaddepally (@shivashankar-vaddepally)
2828
options:
2929
state:
30-
choices: []
30+
choices:
31+
- applied
3132
default: present
3233
description:
3334
- The state of the resource being configured by the module on the NetScaler
@@ -46,8 +47,7 @@
4647
- name: Configure nspbrs
4748
delegate_to: localhost
4849
netscaler.adc.nspbrs:
49-
state: present
50-
action: apply
50+
state: applied
5151
"""
5252

5353
RETURN = r"""

plugins/modules/nstestlicense.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@
2727
- Shiva Shankar Vaddepally (@shivashankar-vaddepally)
2828
options:
2929
state:
30-
choices: []
30+
choices:
31+
- applied
3132
default: present
3233
description:
3334
- The state of the resource being configured by the module on the NetScaler
3435
ADC node.
36+
- When C(applied), the resources will be applied on the NetScaler ADC node
3537
type: str
3638
extends_documentation_fragment: netscaler.adc.netscaler_adc
3739

plugins/modules/routerdynamicrouting.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
- present
3232
- absent
3333
- unset
34+
- applied
3435
default: present
3536
description:
3637
- The state of the resource being configured by the module on the NetScaler
@@ -39,6 +40,7 @@
3940
the module's parameters.
4041
- When C(absent), the resource will be deleted from the NetScaler ADC node.
4142
- When C(unset), the resource will be unset on the NetScaler ADC node.
43+
- When C(applied), the resources will be applied on the NetScaler ADC node
4244
type: str
4345
commandstring:
4446
type: str

plugins/modules/sslcertbundle.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,14 @@
3030
choices:
3131
- absent
3232
- imported
33+
- applied
3334
default: present
3435
description:
3536
- The state of the resource being configured by the module on the NetScaler
3637
ADC node.
3738
- When C(absent), the resource will be deleted from the NetScaler ADC node.
3839
- When C(imported), the resource will be imported on the NetScaler ADC node.
40+
- When C(applied), the resources will be applied on the NetScaler ADC node
3941
type: str
4042
name:
4143
type: str

plugins/modules/videooptimizationglobaldetection_videooptimizationdetectionpolicy_binding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
version_added: 2.0.0
2626
author:
2727
- Sumanth Lingappa (@sumanth-lingappa)
28-
- Shiva Shankar Vaddepally (@shivashankar-vaddepallsy)
28+
- Shiva Shankar Vaddepally (@shivashankar-vaddepally)
2929
options:
3030
state:
3131
choices:

0 commit comments

Comments
 (0)