Skip to content

Commit 40ceacc

Browse files
Fixed issue with not resolving choice IDs for interfaces and type keys (#210)
1 parent c5bbcd5 commit 40ceacc

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010
global:
1111
- COLLECTION_NAMESPACE: netbox
1212
- COLLECTION_NAME: netbox
13-
- COLLECTION_VERSION: 0.2.1
13+
- COLLECTION_VERSION: 0.2.2
1414
- secure: "tE6GtwrRU+Kjobx/94xqR2MqM20pHCnrLcHgPzIHA3npdwuA+GjCBiBLTkEEQM4fUWIfzUTyjSr9bZErm1PTI1GcIRdniTgJ3ZzSSkE7tgeYALB/7xsusB57SlmbBQm2SGwU558uWZ3NHEsi0WTgD8GKZo77OpGX72FZKsVXOz6k2wve51sOtoSVjgCsvWTmZHx4ynGdiA5wFkZfaEcjXECahKtunW+MlB5kpJzkVeLRUEXFMhWlsIYiA5nj8OI/X3Nk9ugh1ribENX9LrjpgrqQ9YariZ8G6py1ONuKZIn2g7xs5kNQ3qL6HL6N7SoUxiwH16CfSyugFaYiMfaxQ4NUVGGRHS4vSGbNIf+gLHcYvP40miI1f/+pntCzqygZMhW73FX2o+KH2OGv09khOl8k1nDg2/XvW0kCc/FU6l+Jp5wCC8H9X2uiULtQpRqts5TzIonlPEzGIpfGFgJ5m54Emhv9gjG1Z5OOyL/qae1Wr+L/uhiFafcglZYh8NHEMWCUCkeqFqR2kDmUMtdgYLD7Q7NdwlL/PSVVs1l7UPiQHlnecQKEHN7CvR3eKByTEmkCKafRYh/JQ9rBt9sZc7aAPVu+w3wWUwbHS4o4vVnmyXvJb1PeJSiuynF7CBo4Qd6qj4YwX8gLK6PylGyaMOp169u6xw1mo5/CX0pJ3x4="
1515

1616
jobs:

galaxy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace: netbox
99
name: netbox
1010

1111
# The version of the collection. Must be compatible with semantic versioning
12-
version: 0.2.1
12+
version: 0.2.2
1313

1414
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
1515
readme: README.md

plugins/module_utils/netbox_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@
248248
"circuits": set(["status"]),
249249
"devices": set(["status", "face"]),
250250
"device_types": set(["subdevice_role"]),
251-
"interfaces": set(["form_factor", "mode"]),
251+
"interfaces": set(["form_factor", "mode", "type"]),
252252
"ip_addresses": set(["status", "role"]),
253253
"prefixes": set(["status"]),
254254
"racks": set(["status", "outer_unit", "type"]),

tests/integration/targets/latest/tasks/netbox_device_interface.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
data:
1212
device: test100
1313
name: GigabitEthernet3
14-
form_factor: "1000Base-T (1GE)"
14+
type: "1000Base-T (1GE)"
1515
register: test_one
1616

1717
- name: "1 - ASSERT"
@@ -72,7 +72,7 @@
7272
data:
7373
device: test100
7474
name: port-channel1
75-
form_factor: Link Aggregation Group (LAG)
75+
type: Link Aggregation Group (LAG)
7676
mtu: 1600
7777
mgmt_only: false
7878
mode: Access
@@ -102,7 +102,7 @@
102102
device: test100
103103
name: GigabitEthernet3
104104
enabled: false
105-
form_factor: 1000Base-T (1GE)
105+
type: 1000Base-T (1GE)
106106
lag:
107107
name: port-channel1
108108
mtu: 1600
@@ -135,7 +135,7 @@
135135
device: test100
136136
name: GigabitEthernet21
137137
enabled: false
138-
form_factor: 1000Base-T (1GE)
138+
type: 1000Base-T (1GE)
139139
untagged_vlan:
140140
name: Wireless
141141
site: Test Site
@@ -191,7 +191,7 @@
191191
data:
192192
device: "R1-Device"
193193
name: "port-channel1"
194-
form_factor: "Link Aggregation Group (LAG)"
194+
type: "Link Aggregation Group (LAG)"
195195

196196
- name: "8 - Create interface and assign it to parent LAG - non dict"
197197
netbox.netbox.netbox_device_interface:
@@ -201,7 +201,7 @@
201201
device: test100
202202
name: GigabitEthernet4
203203
enabled: false
204-
form_factor: 1000Base-T (1GE)
204+
type: 1000Base-T (1GE)
205205
lag: "port-channel1"
206206
mtu: 1600
207207
mgmt_only: false
@@ -232,7 +232,7 @@
232232
data:
233233
device: Test Nexus Child One
234234
name: Ethernet2/2
235-
form_factor: 1000Base-T (1GE)
235+
type: 1000Base-T (1GE)
236236
state: present
237237
register: test_nine
238238

0 commit comments

Comments
 (0)