|
34 | 34 | - The name of the location
|
35 | 35 | required: true
|
36 | 36 | type: str
|
| 37 | + status: |
| 38 | + description: |
| 39 | + - Status of the location |
| 40 | + required: false |
| 41 | + type: raw |
| 42 | + version_added: "3.20.0" |
37 | 43 | slug:
|
38 | 44 | description:
|
39 | 45 | - The slugified version of the name or custom slug.
|
|
56 | 62 | required: false
|
57 | 63 | type: raw
|
58 | 64 | version_added: "3.8.0"
|
| 65 | + facility: |
| 66 | + description: |
| 67 | + - Data center provider or facility, ex. Equinix NY7 |
| 68 | + required: false |
| 69 | + type: str |
| 70 | + version_added: "3.20.0" |
59 | 71 | description:
|
60 | 72 | description:
|
61 | 73 | - The description of the location
|
|
93 | 105 | site: Test Site
|
94 | 106 | state: present
|
95 | 107 |
|
96 |
| - - name: Create location within NetBox with a parent location |
| 108 | + - name: Create location within NetBox with a parent location, status and facility |
97 | 109 | netbox.netbox.netbox_location:
|
98 | 110 | netbox_url: http://netbox.local
|
99 | 111 | netbox_token: thisIsMyToken
|
100 | 112 | data:
|
101 | 113 | name: Child location
|
102 | 114 | site: Test Site
|
103 | 115 | parent_location: Test location
|
| 116 | + status: planned |
| 117 | + facility: Test Facility |
104 | 118 | state: present
|
105 | 119 |
|
106 | 120 | - name: Delete location within NetBox
|
@@ -146,10 +160,12 @@ def main():
|
146 | 160 | required=True,
|
147 | 161 | options=dict(
|
148 | 162 | name=dict(required=True, type="str"),
|
| 163 | + status=dict(required=False, type="raw"), |
149 | 164 | slug=dict(required=False, type="str"),
|
150 | 165 | site=dict(required=False, type="raw"),
|
151 | 166 | parent_location=dict(required=False, type="raw"),
|
152 | 167 | tenant=dict(required=False, type="raw"),
|
| 168 | + facility=dict(required=False, type="str"), |
153 | 169 | description=dict(required=False, type="str"),
|
154 | 170 | tags=dict(required=False, type="list", elements="raw"),
|
155 | 171 | custom_fields=dict(required=False, type="dict"),
|
|
0 commit comments