From d25e5d7e9345f24c34d1865fca615b45b657cbcf Mon Sep 17 00:00:00 2001
From: Sebastien Philippot <sebastien.philippot@inria.fr>
Date: Tue, 19 Jun 2018 17:48:30 +0200
Subject: [PATCH] [nancy] add description for grvingt-pdu[1-2]

---
 .../sites/nancy/pdus/grvingt-pdu1.json        | 21 +++++++++++++++++--
 .../sites/nancy/pdus/grvingt-pdu2.json        | 19 ++++++++++++++++-
 input/grid5000/sites/nancy/pdus.yaml          | 14 ++++++++++++-
 3 files changed, 50 insertions(+), 4 deletions(-)

diff --git a/data/grid5000/sites/nancy/pdus/grvingt-pdu1.json b/data/grid5000/sites/nancy/pdus/grvingt-pdu1.json
index 95df82d0373..788695ae7fe 100644
--- a/data/grid5000/sites/nancy/pdus/grvingt-pdu1.json
+++ b/data/grid5000/sites/nancy/pdus/grvingt-pdu1.json
@@ -1,6 +1,23 @@
 {
   "ip": "172.17.79.220",
   "mac": "00:C0:B7:E3:22:41",
+  "model": "AP8886",
+  "sensors": [
+    {
+      "power": {
+        "per_outlets": false,
+        "resolution": 1,
+        "snmp": {
+          "available": true,
+          "total_oids": [
+            "iso.3.6.1.4.1.318.1.1.12.1.16.0"
+          ],
+          "unit": "W"
+        }
+      }
+    }
+  ],
   "type": "pdu",
-  "uid": "grvingt-pdu1"
-}
\ No newline at end of file
+  "uid": "grvingt-pdu1",
+  "vendor": "APC"
+}
diff --git a/data/grid5000/sites/nancy/pdus/grvingt-pdu2.json b/data/grid5000/sites/nancy/pdus/grvingt-pdu2.json
index 494ce4d8b52..f7e8f0dc073 100644
--- a/data/grid5000/sites/nancy/pdus/grvingt-pdu2.json
+++ b/data/grid5000/sites/nancy/pdus/grvingt-pdu2.json
@@ -1,6 +1,23 @@
 {
   "ip": "172.17.79.221",
   "mac": "00:C0:B7:E2:B6:68",
+  "model": "AP8886",
+  "sensors": [
+    {
+      "power": {
+        "per_outlets": false,
+        "resolution": 1,
+        "snmp": {
+          "available": true,
+          "total_oids": [
+            "iso.3.6.1.4.1.318.1.1.12.1.16.0"
+          ],
+          "unit": "W"
+        }
+      }
+    }
+  ],
   "type": "pdu",
-  "uid": "grvingt-pdu2"
+  "uid": "grvingt-pdu2",
+  "vendor": "APC"
 }
\ No newline at end of file
diff --git a/input/grid5000/sites/nancy/pdus.yaml b/input/grid5000/sites/nancy/pdus.yaml
index d368d9e27de..3605103517f 100644
--- a/input/grid5000/sites/nancy/pdus.yaml
+++ b/input/grid5000/sites/nancy/pdus.yaml
@@ -1,4 +1,16 @@
-pdus: 
+pdus:
+  grvingt-pdu[1-2]:
+    vendor: APC
+    model: AP8886
+    sensors:
+     - power:
+        per_outlets: false
+        snmp:
+          available: true
+          total_oids:
+            - iso.3.6.1.4.1.318.1.1.12.1.16.0
+          unit: W
+        resolution: 1
 
   graphene-pdu[1-6]:
     vendor: APC
-- 
GitLab