From 4be42baddc5c49af05b383ec847a4db339fcb994 Mon Sep 17 00:00:00 2001
From: Colin MacGiollaEain <43743234+colinmacgiolla@users.noreply.github.com>
Date: Thu, 24 Aug 2023 15:39:47 +0100
Subject: [PATCH] Add Arista WAN devices (#1572)

* Create WAN devices

* Add mgmt interfaces

* Remove unused parameter

* Linter

* Update PSU type to match schema

* Address feedback re weight, airflow, and PSUs

* Fix linting for new files
---
 device-types/Arista/AWE-5310.yaml          | 38 +++++++++++++++
 device-types/Arista/AWE-5510.yaml          | 54 ++++++++++++++++++++++
 module-types/Arista/AWE-5300-550-A-PS.yaml |  9 ++++
 module-types/Arista/AWE-5300-800-A-PS.yaml |  9 ++++
 4 files changed, 110 insertions(+)
 create mode 100644 device-types/Arista/AWE-5310.yaml
 create mode 100644 device-types/Arista/AWE-5510.yaml
 create mode 100644 module-types/Arista/AWE-5300-550-A-PS.yaml
 create mode 100644 module-types/Arista/AWE-5300-800-A-PS.yaml

diff --git a/device-types/Arista/AWE-5310.yaml b/device-types/Arista/AWE-5310.yaml
new file mode 100644
index 00000000..8114722e
--- /dev/null
+++ b/device-types/Arista/AWE-5310.yaml
@@ -0,0 +1,38 @@
+---
+manufacturer: Arista
+model: AWE-5310
+slug: arista-awe-5310
+part_number: AWE-5310
+u_height: 1
+is_full_depth: true
+airflow: front-to-rear
+weight: 9.3
+weight_unit: kg
+console-ports:
+  - name: Console
+    type: rj-45
+module-bays:
+  - name: PS1
+    position: '0'
+  - name: PS2
+    position: '1'
+interfaces:
+  - name: Ethernet1/1
+    type: 10gbase-t
+  - name: Ethernet1/2
+    type: 10gbase-t
+  - name: Ethernet1/3
+    type: 10gbase-t
+  - name: Ethernet1/4
+    type: 10gbase-t
+  - name: Ethernet1/5
+    type: 10gbase-x-sfpp
+  - name: Ethernet1/6
+    type: 10gbase-x-sfpp
+  - name: Ethernet1/7
+    type: 10gbase-x-sfpp
+  - name: Ethernet1/8
+    type: 10gbase-x-sfpp
+  - name: Management1/1
+    type: 1000base-t
+    mgmt_only: true
diff --git a/device-types/Arista/AWE-5510.yaml b/device-types/Arista/AWE-5510.yaml
new file mode 100644
index 00000000..52e472dd
--- /dev/null
+++ b/device-types/Arista/AWE-5510.yaml
@@ -0,0 +1,54 @@
+---
+manufacturer: Arista
+model: AWE-5510
+slug: arista-awe-5510
+part_number: AWE-5510
+u_height: 2
+is_full_depth: true
+airflow: front-to-rear
+weight: 13.6
+weight_unit: kg
+console-ports:
+  - name: Console
+    type: rj-45
+module-bays:
+  - name: PS1
+    position: '0'
+  - name: PS2
+    position: '1'
+interfaces:
+  - name: Ethernet1/1
+    type: 10gbase-x-sfpp
+  - name: Ethernet1/2
+    type: 10gbase-x-sfpp
+  - name: Ethernet1/3
+    type: 10gbase-x-sfpp
+  - name: Ethernet1/4
+    type: 10gbase-x-sfpp
+  - name: Ethernet1/5
+    type: 10gbase-x-sfpp
+  - name: Ethernet1/6
+    type: 10gbase-x-sfpp
+  - name: Ethernet1/7
+    type: 10gbase-x-sfpp
+  - name: Ethernet1/8
+    type: 10gbase-x-sfpp
+  - name: Ethernet1/9
+    type: 10gbase-x-sfpp
+  - name: Ethernet1/10
+    type: 10gbase-x-sfpp
+  - name: Ethernet1/11
+    type: 10gbase-x-sfpp
+  - name: Ethernet1/12
+    type: 10gbase-x-sfpp
+  - name: Ethernet1/13
+    type: 10gbase-x-sfpp
+  - name: Ethernet1/14
+    type: 10gbase-x-sfpp
+  - name: Ethernet1/15
+    type: 10gbase-x-sfpp
+  - name: Ethernet1/16
+    type: 10gbase-x-sfpp
+  - name: Management1/1
+    type: 1000base-t
+    mgmt_only: true
diff --git a/module-types/Arista/AWE-5300-550-A-PS.yaml b/module-types/Arista/AWE-5300-550-A-PS.yaml
new file mode 100644
index 00000000..0d66ccfa
--- /dev/null
+++ b/module-types/Arista/AWE-5300-550-A-PS.yaml
@@ -0,0 +1,9 @@
+---
+manufacturer: Arista
+model: AWE-5300-550-A-PS
+part_number: AWE-5300-550-A-PS
+# airflow: front-to-rear
+power-ports:
+  - name: '{module}'
+    type: iec-60320-c16
+    maximum_draw: 550
diff --git a/module-types/Arista/AWE-5300-800-A-PS.yaml b/module-types/Arista/AWE-5300-800-A-PS.yaml
new file mode 100644
index 00000000..eb69d581
--- /dev/null
+++ b/module-types/Arista/AWE-5300-800-A-PS.yaml
@@ -0,0 +1,9 @@
+---
+manufacturer: Arista
+model: AWE-5300-800-A-PS
+part_number: AWE-5300-800-A-PS
+# airflow: front-to-rear
+power-ports:
+  - name: '{module}'
+    type: iec-60320-c16
+    maximum_draw: 800
-- 
GitLab