|
39 | 39 | - Status of the tunnel
|
40 | 40 | required: false
|
41 | 41 | type: raw
|
42 |
| - version_added: "3.20.0" |
43 |
| - slug: |
| 42 | + tunnel_group: |
44 | 43 | description:
|
45 |
| - - The slugified version of the name or custom slug. |
46 |
| - - This is auto-generated following NetBox rules if not provided |
| 44 | + - The VLAN group the VLAN will be associated to |
47 | 45 | required: false
|
48 |
| - type: str |
49 |
| - site: |
| 46 | + type: raw |
| 47 | + encapsulation: |
50 | 48 | description:
|
51 |
| - - Required if I(state=present) and the tunnel does not exist yet |
| 49 | + - The encapsulation protocol or technique employed to effect the tunnel |
52 | 50 | required: false
|
53 | 51 | type: raw
|
54 |
| - parent_tunnel: |
| 52 | + ipsec_profile: |
55 | 53 | description:
|
56 |
| - - The parent tunnel the tunnel will be associated with |
| 54 | + - The IPSec Profile employed to negotiate security associations |
57 | 55 | required: false
|
58 | 56 | type: raw
|
59 | 57 | tenant:
|
60 | 58 | description:
|
61 | 59 | - The tenant that the tunnel will be associated with
|
62 | 60 | required: false
|
63 | 61 | type: raw
|
64 |
| - version_added: "3.8.0" |
65 |
| - facility: |
| 62 | + tunnel_id: |
66 | 63 | description:
|
67 |
| - - Data center provider or facility, ex. Equinix NY7 |
| 64 | + - The ID of the tunnel |
68 | 65 | required: false
|
69 |
| - type: str |
70 |
| - version_added: "3.20.0" |
| 66 | + type: int |
71 | 67 | description:
|
72 | 68 | description:
|
73 | 69 | - The description of the tunnel
|
74 | 70 | required: false
|
75 | 71 | type: str
|
| 72 | + comments: |
| 73 | + description: |
| 74 | + - Comments that may include additional information in regards to the tunnel |
| 75 | + required: false |
| 76 | + type: str |
76 | 77 | tags:
|
77 | 78 | description:
|
78 |
| - - The tags to add/update |
| 79 | + - Any tags that the tunnel may need to be associated with |
79 | 80 | required: false
|
80 | 81 | type: list
|
81 | 82 | elements: raw
|
82 |
| - version_added: "3.6.0" |
83 | 83 | custom_fields:
|
84 | 84 | description:
|
85 | 85 | - Must exist in NetBox
|
86 | 86 | required: false
|
87 | 87 | type: dict
|
88 |
| - version_added: "3.6.0" |
89 | 88 | required: true
|
90 | 89 | """
|
91 | 90 |
|
|
101 | 100 | netbox_url: http://netbox.local
|
102 | 101 | netbox_token: thisIsMyToken
|
103 | 102 | data:
|
104 |
| - name: Test tunnel |
105 |
| - site: Test Site |
| 103 | + name: Test Tunnel |
| 104 | + status: active |
| 105 | + encapsulation: ipsec-tunnel |
106 | 106 | state: present
|
107 | 107 |
|
108 |
| - - name: Create tunnel within NetBox with a parent tunnel, status and facility |
| 108 | + - name: Delete tunnel within NetBox |
109 | 109 | netbox.netbox.netbox_tunnel:
|
110 | 110 | netbox_url: http://netbox.local
|
111 | 111 | netbox_token: thisIsMyToken
|
112 | 112 | data:
|
113 |
| - name: Child tunnel |
114 |
| - site: Test Site |
115 |
| - parent_tunnel: Test tunnel |
116 |
| - status: planned |
117 |
| - facility: Test Facility |
118 |
| - state: present |
| 113 | + name: Test Tunnel |
| 114 | + state: absent |
119 | 115 |
|
120 |
| - - name: Delete tunnel within NetBox |
| 116 | + - name: Create tunnel with all information |
121 | 117 | netbox.netbox.netbox_tunnel:
|
122 | 118 | netbox_url: http://netbox.local
|
123 | 119 | netbox_token: thisIsMyToken
|
124 | 120 | data:
|
125 |
| - name: Test tunnel |
126 |
| - state: absent |
| 121 | + name: Test Tunnel |
| 122 | + status: planned |
| 123 | + tunnel_group: Test Tunnel Group |
| 124 | + encapsulation: ipsec-tunnel |
| 125 | + ipsec_profile: ipsec-profile |
| 126 | + description: Test Description |
| 127 | + tenant: Test Tenant |
| 128 | + tunnel_id: 200 |
| 129 | + tags: |
| 130 | + - test |
| 131 | + state: present |
127 | 132 | """
|
128 | 133 |
|
129 | 134 | RETURN = r"""
|
@@ -161,9 +166,13 @@ def main():
|
161 | 166 | options=dict(
|
162 | 167 | name=dict(required=True, type="str"),
|
163 | 168 | status=dict(required=False, type="raw"),
|
| 169 | + tunnel_group=dict(required=False, type="raw"), |
164 | 170 | encapsulation=dict(required=False, type="raw"),
|
| 171 | + ipsec_profile=dict(required=False, type="raw"), |
165 | 172 | tenant=dict(required=False, type="raw"),
|
| 173 | + tunnel_id=dict(required=False, type="int"), |
166 | 174 | description=dict(required=False, type="str"),
|
| 175 | + comments=dict(required=False, type="str"), |
167 | 176 | tags=dict(required=False, type="list", elements="raw"),
|
168 | 177 | custom_fields=dict(required=False, type="dict"),
|
169 | 178 | ),
|
|
0 commit comments