Skip to content

Commit 0e45745

Browse files
authored
Fix #765: Add label to front and rear port modules (#766)
1 parent 76691b6 commit 0e45745

File tree

4 files changed

+42
-0
lines changed

4 files changed

+42
-0
lines changed

plugins/modules/netbox_front_port.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@
7676
- Description of the front port
7777
required: false
7878
type: str
79+
label:
80+
description:
81+
- Label of the front port
82+
required: false
83+
type: str
84+
version_added: "3.7.0"
7985
tags:
8086
description:
8187
- Any tags that the front port may need to be associated with
@@ -185,6 +191,7 @@ def main():
185191
rear_port=dict(required=True, type="raw"),
186192
rear_port_position=dict(required=False, type="int"),
187193
description=dict(required=False, type="str"),
194+
label=dict(required=False, type="str"),
188195
tags=dict(required=False, type="list", elements="raw"),
189196
),
190197
),

plugins/modules/netbox_front_port_template.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,18 @@
7171
- The position of the rear port template this front port template is connected to
7272
required: false
7373
type: int
74+
description:
75+
description:
76+
- Description of the front port
77+
required: false
78+
type: str
79+
version_added: "3.7.0"
80+
label:
81+
description:
82+
- Label of the front port
83+
required: false
84+
type: str
85+
version_added: "3.7.0"
7486
"""
7587

7688
EXAMPLES = r"""
@@ -172,6 +184,8 @@ def main():
172184
),
173185
rear_port_template=dict(required=True, type="raw"),
174186
rear_port_template_position=dict(required=False, type="int"),
187+
description=dict(required=False, type="str"),
188+
label=dict(required=False, type="str"),
175189
),
176190
),
177191
)

plugins/modules/netbox_rear_port.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@
7171
- Description of the rear port
7272
required: false
7373
type: str
74+
label:
75+
description:
76+
- Label of the rear port
77+
required: false
78+
type: str
79+
version_added: "3.7.0"
7480
tags:
7581
description:
7682
- Any tags that the rear port may need to be associated with
@@ -176,6 +182,7 @@ def main():
176182
),
177183
positions=dict(required=False, type="int"),
178184
description=dict(required=False, type="str"),
185+
label=dict(required=False, type="str"),
179186
tags=dict(required=False, type="list", elements="raw"),
180187
),
181188
),

plugins/modules/netbox_rear_port_template.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,18 @@
6666
- The number of front ports which may be mapped to each rear port
6767
required: false
6868
type: int
69+
description:
70+
description:
71+
- Description of the rear port
72+
required: false
73+
type: str
74+
version_added: "3.7.0"
75+
label:
76+
description:
77+
- Label of the rear port
78+
required: false
79+
type: str
80+
version_added: "3.7.0"
6981
"""
7082

7183
EXAMPLES = r"""
@@ -163,6 +175,8 @@ def main():
163175
type="str",
164176
),
165177
positions=dict(required=False, type="int"),
178+
description=dict(required=False, type="str"),
179+
label=dict(required=False, type="str"),
166180
),
167181
),
168182
)

0 commit comments

Comments
 (0)