File tree Expand file tree Collapse file tree 1 file changed +25
-4
lines changed Expand file tree Collapse file tree 1 file changed +25
-4
lines changed Original file line number Diff line number Diff line change 17
17
}
18
18
19
19
DOCUMENTATION = r"""
20
+ ---
20
21
module: interface
21
22
short_description: Configuration for interface resource.
22
23
description: Configuration for interface resource.
116
117
id:
117
118
type: str
118
119
description:
119
- - Interface number, in C/U format.
120
- - C can take one of the following values:
120
+ - 'Interface number, in C/U format, where C can take one of the following values:'
121
121
- '* 0 - Indicates a management interface.'
122
122
- '* 1 - Indicates a 1 Gbps port.'
123
123
- '* 10 - Indicates a 10 Gbps port.'
124
124
- '* LA - Indicates a link aggregation port.'
125
125
- '* LO - Indicates a loop back port.'
126
- - U is a unique integer for representing an interface in a particular port group.
126
+ - ' U is a unique integer for representing an interface in a particular port group.'
127
127
ifalias:
128
128
type: str
129
129
description:
295
295
- This argument is deprecated by tagall.
296
296
trunkallowedvlan:
297
297
type: list
298
+ elements: str
298
299
description:
299
300
- 'VLAN ID or range of VLAN IDs will be allowed on this trunk interface. In
300
301
the command line interface, separate the range with a hyphen. For example:
301
302
40-90.'
302
- elements: str
303
303
trunkmode:
304
304
type: str
305
305
choices:
309
309
- Accept and send 802.1q VLAN tagged packets, based on Allowed Vlan List of
310
310
this interface.
311
311
extends_documentation_fragment: netscaler.adc.netscaler_adc
312
+
312
313
"""
313
314
314
315
EXAMPLES = r"""
316
+ ---
317
+ - name: Sample interface playbook
318
+ hosts: demo_netscalers
319
+ gather_facts: false
320
+ tasks:
321
+ - name: Configure interface
322
+ delegate_to: localhost
323
+ netscaler.adc.interface:
324
+ state: present
325
+ hamonitor: 'OFF'
326
+ haheartbeat: 'OFF'
327
+ throughput: '0'
328
+ bandwidthhigh: '0'
329
+ bandwidthnormal: '0'
330
+ intftype: Loopback
331
+ ifnum:
332
+ - LO/1
333
+ interface_id: LO/1
315
334
"""
316
335
317
336
RETURN = r"""
344
363
returned: always
345
364
type: list
346
365
sample: ['message 1', 'message 2']
366
+
347
367
"""
348
368
369
+
349
370
import os
350
371
351
372
from ..module_utils .module_executor import ModuleExecutor
You can’t perform that action at this time.
0 commit comments