Skip to content

Commit

Permalink
Update Ubiquiti USW-Aggregation and UDM-Pro (netbox-community#622)
Browse files Browse the repository at this point in the history
* Update Ubiquiti USW-Aggregation switch to 8 ports instead of 10
* Update UDM-Pro model name to be the full name, add part number, airflow, and make it not full-depth
* Include UniFi brand name in UDM-Pro model name
* Add airflow field to device type schema
  • Loading branch information
aphistic authored Jan 24, 2022
1 parent bcde50e commit 5a494d0
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.pyc
.idea
.DS_Store
venv/
6 changes: 4 additions & 2 deletions device-types/Ubiquiti/UDM-Pro.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
---
manufacturer: Ubiquiti
model: UDM-PRO
model: UniFi Dream Machine Pro
slug: udm-pro
airflow: front-to-rear
part_number: UDM-Pro
comments: |
[UniFi Dream Machine Pro](https://store.ui.com/products/udm-pro)
Enterprise Security Gateway and Network Appliance with 10G SFP+, (8) 1G LAN, (1) 1G WAN, (1) 1/10G SFP+ LAN, (1) 1/10G SFP+ WAN
Dimensions: 442.4 x 43.7 x 285.6 mm (17.42 x 1.72 x 11.24")
u_height: 1
is_full_depth: true
is_full_depth: false
interfaces:
- name: eth0
type: 1000base-t
Expand Down
6 changes: 1 addition & 5 deletions device-types/Ubiquiti/USW-Aggregation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ model: UniFi Switch Aggregation
slug: unifi-switch-aggregation
part_number: USW-Aggregation
comments: |
UniFi Switch 16 Aggregation, 10G 10-Port Managed Aggregation Switch, 30W, (10) SFP+
UniFi Switch Aggregation, 10G 8-Port Managed Aggregation Switch, 30W, (8) SFP+
Dimensions: 442.4 x 120 x 43.7 mm (17.42 x 4.72 x 1.72")
u_height: 1
Expand All @@ -26,10 +26,6 @@ interfaces:
type: 10gbase-x-sfpp
- name: SFP+ 8
type: 10gbase-x-sfpp
- name: SFP+ 9
type: 10gbase-x-sfpp
- name: SFP+ 10
type: 10gbase-x-sfpp
power-ports:
- name: Input
type: iec-60320-c14
Expand Down
11 changes: 11 additions & 0 deletions tests/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@
"is_full_depth": {
"type": "boolean"
},
"airflow": {
"type": "string",
"enum": [
"front-to-rear",
"rear-to-front",
"left-to-right",
"right-to-left",
"side-to-rear",
"passive"
]
},
"subdevice_role": {
"type": "string",
"enum": [
Expand Down

0 comments on commit 5a494d0

Please sign in to comment.