Skip to content

Commit 807ab2f

Browse files
Updataed documnetations
Signed-off-by: Shiva Shankar Vaddepally <shivashankar.vaddepally@cloud.com>
1 parent 14632ca commit 807ab2f

File tree

6 files changed

+156
-23
lines changed

6 files changed

+156
-23
lines changed

examples/bgpRouter.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@
77
delegate_to: localhost
88
netscaler.adc.bgpRouter:
99
state: present
10-
nsip: 10.102.201.219
11-
nitro_user: nsroot
12-
nitro_pass: nspentest
13-
validate_certs: no
14-
nitro_protocol: http
1510
localAS: 10
1611
afParams.addressFamily: "ipv4"
1712
afParams.redistribute.protocol: "kernel"

meta/runtime.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -697,19 +697,7 @@ action_groups:
697697
- route
698698
- route6
699699
- routerdynamicrouting
700-
- "accessList"
701-
- "bfdInterface"
702-
- "bgpPrefix"
703-
- "bgpRouter"
704-
- "ipRoute"
705-
- "ospfDatabase"
706-
- "ospfInterface"
707-
- "ospfNeighbor"
708-
- "ospfRouter"
709-
- "ospf6Database"
710-
- "ospf6Interface"
711-
- "ospf6Neighbor"
712-
- "ospf6Router"
700+
- bgpRouter
713701
- rsskeytype
714702
- save_config
715703
- server

plugins/modules/bgpRouter.py

Lines changed: 149 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,155 @@
1515
"status": ["preview"],
1616
"supported_by": "community",
1717
}
18-
DOCUMENTATION = ""
19-
EXAMPLES = ""
18+
DOCUMENTATION = r"""
19+
---
20+
module: bgpRouter
21+
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.
23+
version_added: 2.10.0
24+
author:
25+
- Shiva Shankar Vaddepally (@shivashankar-vaddepally)
26+
options:
27+
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.
37+
type: str
38+
afParams.addressFamily:
39+
type: str
40+
choices: ["ipv4", "ipv6"]
41+
description:
42+
- Address family for this BGP AF parameter.
43+
44+
afParams.redistribute.protocol:
45+
type: str
46+
choices: ["kernel", "connected", "static", "rip", "ospf", "isis", "intranet"]
47+
description:
48+
- The protocol from which routes need to be redistributed.
49+
50+
afParams.redistribute.routeMap:
51+
type: str
52+
description:
53+
- Route map reference.
54+
55+
localAS:
56+
type: int
57+
description:
58+
- Local Autonomous System number.
59+
60+
routerId:
61+
type: str
62+
description:
63+
- Router ID in IP address format.
64+
65+
neighbor.ASOriginationInterval:
66+
type: int
67+
description:
68+
- Minimum interval between sending AS-origination routing updates.
69+
70+
neighbor.address:
71+
type: str
72+
description:
73+
- Address of the neighboring router.
74+
75+
neighbor.advertisementInterval:
76+
type: int
77+
description:
78+
- Minimum interval between sending BGP routing updates.
79+
80+
neighbor.afParams.activate:
81+
type: bool
82+
description:
83+
- Enable the Address Family for the neighbor.
84+
85+
neighbor.afParams.addressFamily:
86+
type: str
87+
choices: ["ipv4", "ipv6"]
88+
description:
89+
- Address family identifier
90+
91+
neighbor.afParams.routeMap.direction:
92+
type: str
93+
choices: ["in", "out"]
94+
description:
95+
- Apply the route-map to incoming routes or outgoing routes.
96+
97+
neighbor.afParams.routeMap.name:
98+
type: str
99+
description:
100+
- Name of the route map.
101+
102+
neighbor.connectTimer:
103+
type: int
104+
description:
105+
- Time interval (in seconds) for the ConnectRetry timer.
106+
107+
neighbor.holdTimerConfig:
108+
type: int
109+
description:
110+
- Hold timer value for the neighbor in seconds.
111+
112+
neighbor.keepaliveTimerConfig:
113+
type: int
114+
description:
115+
- Keepalive timer value for the neighbor in seconds.
116+
117+
neighbor.md5Password:
118+
type: str
119+
description:
120+
- MD5 password used for neighbor authentication.
121+
no_log: true
122+
123+
neighbor.multihopBfd:
124+
type: bool
125+
description:
126+
- Enable BFD for multihop BGP sessions.
127+
128+
neighbor.remoteAS:
129+
type: int
130+
description:
131+
- Remote AS number for the neighbor.
132+
133+
neighbor.singlehopBfd:
134+
type: bool
135+
description:
136+
- Enable BFD on this neighbor
137+
138+
neighbor.updateSource:
139+
type: str
140+
description:
141+
- Source of routing updates.
142+
"""
143+
EXAMPLES = r"""
144+
---
145+
- name: BGP routing
146+
hosts: localhost
147+
gather_facts: no
148+
tasks:
149+
- name: Configure BGP routing
150+
delegate_to: localhost
151+
netscaler.adc.bgpRouter:
152+
state: present
153+
localAS: 10
154+
afParams.addressFamily: "ipv4"
155+
afParams.redistribute.protocol: "kernel"
156+
routerId: "10.102.201.219"
157+
neighbor.ASOriginationInterval: 15
158+
neighbor.address: "2.2.12.30"
159+
neighbor.advertisementInterval: 30
160+
neighbor.afParams.addressFamily: "ipv4"
161+
neighbor.holdTimerConfig: 90
162+
neighbor.keepaliveTimerConfig: 30
163+
neighbor.multihopBfd: "False"
164+
neighbor.remoteAS: 100
165+
neighbor.singlehopBfd: "False"
166+
"""
20167
RETURN = r"""
21168
---
22169
changed:

tests/sanity/ignore-2.15.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,4 +947,5 @@ plugins/modules/nslaslicense.py validate-modules:missing-gplv3-license # We use
947947
plugins/modules/sslechconfig.py validate-modules:missing-gplv3-license # We use MIT license
948948
plugins/modules/sslhpkekey.py validate-modules:missing-gplv3-license # We use MIT license
949949
plugins/modules/sslprofile_sslechconfig_binding.py validate-modules:missing-gplv3-license # We use MIT license
950-
plugins/modules/authenticationprotecteduseraction.py validate-modules:missing-gplv3-license # We use MIT license
950+
plugins/modules/authenticationprotecteduseraction.py validate-modules:missing-gplv3-license # We use MIT license
951+
plugins/modules/bgpRouter.py validate-modules:missing-gplv3-license # We use MIT license

tests/sanity/ignore-2.16.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,4 +947,5 @@ plugins/modules/nslaslicense.py validate-modules:missing-gplv3-license # We use
947947
plugins/modules/sslechconfig.py validate-modules:missing-gplv3-license # We use MIT license
948948
plugins/modules/sslhpkekey.py validate-modules:missing-gplv3-license # We use MIT license
949949
plugins/modules/sslprofile_sslechconfig_binding.py validate-modules:missing-gplv3-license # We use MIT license
950-
plugins/modules/authenticationprotecteduseraction.py validate-modules:missing-gplv3-license # We use MIT license
950+
plugins/modules/authenticationprotecteduseraction.py validate-modules:missing-gplv3-license # We use MIT license
951+
plugins/modules/bgpRouter.py validate-modules:missing-gplv3-license # We use MIT license

tests/sanity/ignore-2.17.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,4 +947,5 @@ plugins/modules/nslaslicense.py validate-modules:missing-gplv3-license # We use
947947
plugins/modules/sslechconfig.py validate-modules:missing-gplv3-license # We use MIT license
948948
plugins/modules/sslhpkekey.py validate-modules:missing-gplv3-license # We use MIT license
949949
plugins/modules/sslprofile_sslechconfig_binding.py validate-modules:missing-gplv3-license # We use MIT license
950-
plugins/modules/authenticationprotecteduseraction.py validate-modules:missing-gplv3-license # We use MIT license
950+
plugins/modules/authenticationprotecteduseraction.py validate-modules:missing-gplv3-license # We use MIT license
951+
plugins/modules/bgpRouter.py validate-modules:missing-gplv3-license # We use MIT license

0 commit comments

Comments
 (0)