Skip to content

Commit 1abc254

Browse files
corrected action operations post_data
Signed-off-by: Shiva Shankar Vaddepally <[email protected]>
1 parent 6eef4f7 commit 1abc254

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

plugins/module_utils/common.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,8 @@ def create_resource_with_action(client, resource_name, resource_module_params, a
273273
ok, err, post_data = _check_create_resource_params(
274274
resource_name, resource_module_params, action=action
275275
)
276+
if resource_name not in NESTED_POST_DATA_RESOURCES:
277+
post_data = {resource_name: post_data}
276278
if not ok:
277279
return False, err
278280
status_code, response_body = client.post(

plugins/modules/bgpRouter.py

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,24 @@
1616
"supported_by": "community",
1717
}
1818
DOCUMENTATION = r"""
19-
---
19+
---
2020
module: bgpRouter
2121
short_description: Manage BGP Router configuration on Citrix ADC (NetScaler) devices
22-
description: This module allows for the management of BGP Router configurations on Citrix ADC (NetScaler) devices.
22+
description:
23+
- Manage BGP Router configurations on Citrix ADC (NetScaler) devices.
2324
version_added: 2.10.0
2425
author:
2526
- Shiva Shankar Vaddepally (@shivashankar-vaddepally)
2627
options:
2728
state:
28-
choices:
29-
- present
30-
- absent
31-
default: present
32-
- The state of the resource being configured by the module on the NetScaler
33-
ADC node.
34-
- When C(present), the resource will be added/updated configured according to
35-
the module's parameters.
36-
- When C(absent), the resource will be deleted from the NetScaler ADC node.
3729
type: str
30+
choices: ["present", "absent"]
31+
default: present
32+
description:
33+
- The state of the resource on the NetScaler ADC node.
34+
- When C(present), the resource will be added or updated.
35+
- When C(absent), the resource will be deleted.
36+
3837
afParams.addressFamily:
3938
type: str
4039
choices: ["ipv4", "ipv6"]
@@ -86,13 +85,13 @@
8685
type: str
8786
choices: ["ipv4", "ipv6"]
8887
description:
89-
- Address family identifier
88+
- Address family identifier.
9089
9190
neighbor.afParams.routeMap.direction:
9291
type: str
9392
choices: ["in", "out"]
9493
description:
95-
- Apply the route-map to incoming routes or outgoing routes.
94+
- Apply the route-map to incoming or outgoing routes.
9695
9796
neighbor.afParams.routeMap.name:
9897
type: str
@@ -133,7 +132,7 @@
133132
neighbor.singlehopBfd:
134133
type: bool
135134
description:
136-
- Enable BFD on this neighbor
135+
- Enable BFD on this neighbor.
137136
138137
neighbor.updateSource:
139138
type: str

0 commit comments

Comments
 (0)