Skip to content

Commit 30672fb

Browse files
lint issues- interface.py
1 parent 9502e73 commit 30672fb

File tree

1 file changed

+25
-4
lines changed

1 file changed

+25
-4
lines changed

plugins/modules/interface.py

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
}
1818

1919
DOCUMENTATION = r"""
20+
---
2021
module: interface
2122
short_description: Configuration for interface resource.
2223
description: Configuration for interface resource.
@@ -116,14 +117,13 @@
116117
id:
117118
type: str
118119
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:'
121121
- '* 0 - Indicates a management interface.'
122122
- '* 1 - Indicates a 1 Gbps port.'
123123
- '* 10 - Indicates a 10 Gbps port.'
124124
- '* LA - Indicates a link aggregation port.'
125125
- '* 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.'
127127
ifalias:
128128
type: str
129129
description:
@@ -295,11 +295,11 @@
295295
- This argument is deprecated by tagall.
296296
trunkallowedvlan:
297297
type: list
298+
elements: str
298299
description:
299300
- 'VLAN ID or range of VLAN IDs will be allowed on this trunk interface. In
300301
the command line interface, separate the range with a hyphen. For example:
301302
40-90.'
302-
elements: str
303303
trunkmode:
304304
type: str
305305
choices:
@@ -309,9 +309,28 @@
309309
- Accept and send 802.1q VLAN tagged packets, based on Allowed Vlan List of
310310
this interface.
311311
extends_documentation_fragment: netscaler.adc.netscaler_adc
312+
312313
"""
313314

314315
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
315334
"""
316335

317336
RETURN = r"""
@@ -344,8 +363,10 @@
344363
returned: always
345364
type: list
346365
sample: ['message 1', 'message 2']
366+
347367
"""
348368

369+
349370
import os
350371

351372
from ..module_utils.module_executor import ModuleExecutor

0 commit comments

Comments
 (0)