From c734b35ab5ea2630c5d53c4be17ec9f516a3b09c Mon Sep 17 00:00:00 2001
From: Baptiste Jonglez <baptiste.jonglez@imag.fr>
Date: Mon, 9 Nov 2020 13:46:04 +0100
Subject: [PATCH] [drac] Really fix interface state and rate

---
 data/grid5000/sites/grenoble/clusters/drac/nodes/drac-1.json   | 3 ++-
 data/grid5000/sites/grenoble/clusters/drac/nodes/drac-10.json  | 3 ++-
 data/grid5000/sites/grenoble/clusters/drac/nodes/drac-11.json  | 3 ++-
 data/grid5000/sites/grenoble/clusters/drac/nodes/drac-12.json  | 3 ++-
 data/grid5000/sites/grenoble/clusters/drac/nodes/drac-2.json   | 3 ++-
 data/grid5000/sites/grenoble/clusters/drac/nodes/drac-3.json   | 3 ++-
 data/grid5000/sites/grenoble/clusters/drac/nodes/drac-4.json   | 3 ++-
 data/grid5000/sites/grenoble/clusters/drac/nodes/drac-5.json   | 3 ++-
 data/grid5000/sites/grenoble/clusters/drac/nodes/drac-6.json   | 3 ++-
 data/grid5000/sites/grenoble/clusters/drac/nodes/drac-7.json   | 3 ++-
 data/grid5000/sites/grenoble/clusters/drac/nodes/drac-8.json   | 3 ++-
 data/grid5000/sites/grenoble/clusters/drac/nodes/drac-9.json   | 3 ++-
 input/grid5000/sites/grenoble/clusters/drac/drac.yaml          | 2 +-
 input/grid5000/sites/grenoble/clusters/drac/nodes/drac-1.yaml  | 1 +
 input/grid5000/sites/grenoble/clusters/drac/nodes/drac-10.yaml | 1 +
 input/grid5000/sites/grenoble/clusters/drac/nodes/drac-11.yaml | 1 +
 input/grid5000/sites/grenoble/clusters/drac/nodes/drac-12.yaml | 1 +
 input/grid5000/sites/grenoble/clusters/drac/nodes/drac-2.yaml  | 1 +
 input/grid5000/sites/grenoble/clusters/drac/nodes/drac-3.yaml  | 1 +
 input/grid5000/sites/grenoble/clusters/drac/nodes/drac-4.yaml  | 1 +
 input/grid5000/sites/grenoble/clusters/drac/nodes/drac-5.yaml  | 1 +
 input/grid5000/sites/grenoble/clusters/drac/nodes/drac-6.yaml  | 1 +
 input/grid5000/sites/grenoble/clusters/drac/nodes/drac-7.yaml  | 1 +
 input/grid5000/sites/grenoble/clusters/drac/nodes/drac-8.yaml  | 1 +
 input/grid5000/sites/grenoble/clusters/drac/nodes/drac-9.yaml  | 1 +
 25 files changed, 37 insertions(+), 13 deletions(-)

diff --git a/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-1.json b/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-1.json
index b1ed7d8bcd..dc130989c1 100644
--- a/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-1.json
+++ b/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-1.json
@@ -87,6 +87,7 @@
       "mounted": true,
       "name": "enP1p1s0f3",
       "network_address": "drac-1.grenoble.grid5000.fr",
+      "rate": 1000000000,
       "switch": null,
       "switch_port": null,
       "vendor": "Broadcom"
@@ -94,7 +95,7 @@
     {
       "device": "eth4",
       "driver": "tg3",
-      "enabled": false,
+      "enabled": true,
       "firmware_version": "5719-v1.43 NCSI v1.3.12.0",
       "interface": "Ethernet",
       "kavlan": false,
diff --git a/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-10.json b/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-10.json
index 6e5cb51d91..d1611f3594 100644
--- a/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-10.json
+++ b/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-10.json
@@ -87,6 +87,7 @@
       "mounted": true,
       "name": "enP1p1s0f3",
       "network_address": "drac-10.grenoble.grid5000.fr",
+      "rate": 1000000000,
       "switch": null,
       "switch_port": null,
       "vendor": "Broadcom"
@@ -94,7 +95,7 @@
     {
       "device": "eth4",
       "driver": "tg3",
-      "enabled": false,
+      "enabled": true,
       "firmware_version": "5719-v1.43 NCSI v1.3.12.0",
       "interface": "Ethernet",
       "kavlan": false,
diff --git a/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-11.json b/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-11.json
index 95b94fc7a8..e70bc68928 100644
--- a/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-11.json
+++ b/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-11.json
@@ -87,6 +87,7 @@
       "mounted": true,
       "name": "enP1p1s0f3",
       "network_address": "drac-11.grenoble.grid5000.fr",
+      "rate": 1000000000,
       "switch": null,
       "switch_port": null,
       "vendor": "Broadcom"
@@ -94,7 +95,7 @@
     {
       "device": "eth4",
       "driver": "tg3",
-      "enabled": false,
+      "enabled": true,
       "firmware_version": "5719-v1.43 NCSI v1.3.12.0",
       "interface": "Ethernet",
       "kavlan": false,
diff --git a/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-12.json b/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-12.json
index 5e9cdb5ade..a3a384b7ce 100644
--- a/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-12.json
+++ b/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-12.json
@@ -87,6 +87,7 @@
       "mounted": true,
       "name": "enP1p1s0f3",
       "network_address": "drac-12.grenoble.grid5000.fr",
+      "rate": 1000000000,
       "switch": null,
       "switch_port": null,
       "vendor": "Broadcom"
@@ -94,7 +95,7 @@
     {
       "device": "eth4",
       "driver": "tg3",
-      "enabled": false,
+      "enabled": true,
       "firmware_version": "5719-v1.43 NCSI v1.3.12.0",
       "interface": "Ethernet",
       "kavlan": false,
diff --git a/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-2.json b/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-2.json
index 8cb66e565e..cbb7a92503 100644
--- a/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-2.json
+++ b/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-2.json
@@ -87,6 +87,7 @@
       "mounted": true,
       "name": "enP1p1s0f3",
       "network_address": "drac-2.grenoble.grid5000.fr",
+      "rate": 1000000000,
       "switch": null,
       "switch_port": null,
       "vendor": "Broadcom"
@@ -94,7 +95,7 @@
     {
       "device": "eth4",
       "driver": "tg3",
-      "enabled": false,
+      "enabled": true,
       "firmware_version": "5719-v1.43 NCSI v1.3.12.0",
       "interface": "Ethernet",
       "kavlan": false,
diff --git a/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-3.json b/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-3.json
index 583fe4a0a9..327aa96203 100644
--- a/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-3.json
+++ b/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-3.json
@@ -87,6 +87,7 @@
       "mounted": true,
       "name": "enP1p1s0f3",
       "network_address": "drac-3.grenoble.grid5000.fr",
+      "rate": 1000000000,
       "switch": null,
       "switch_port": null,
       "vendor": "Broadcom"
@@ -94,7 +95,7 @@
     {
       "device": "eth4",
       "driver": "tg3",
-      "enabled": false,
+      "enabled": true,
       "firmware_version": "5719-v1.43 NCSI v1.3.12.0",
       "interface": "Ethernet",
       "kavlan": false,
diff --git a/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-4.json b/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-4.json
index 60e0ea855a..d488cd7055 100644
--- a/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-4.json
+++ b/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-4.json
@@ -87,6 +87,7 @@
       "mounted": true,
       "name": "enP1p1s0f3",
       "network_address": "drac-4.grenoble.grid5000.fr",
+      "rate": 1000000000,
       "switch": null,
       "switch_port": null,
       "vendor": "Broadcom"
@@ -94,7 +95,7 @@
     {
       "device": "eth4",
       "driver": "tg3",
-      "enabled": false,
+      "enabled": true,
       "firmware_version": "5719-v1.43 NCSI v1.3.12.0",
       "interface": "Ethernet",
       "kavlan": false,
diff --git a/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-5.json b/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-5.json
index 433f9a62dc..22675bc987 100644
--- a/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-5.json
+++ b/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-5.json
@@ -87,6 +87,7 @@
       "mounted": true,
       "name": "enP1p1s0f3",
       "network_address": "drac-5.grenoble.grid5000.fr",
+      "rate": 1000000000,
       "switch": null,
       "switch_port": null,
       "vendor": "Broadcom"
@@ -94,7 +95,7 @@
     {
       "device": "eth4",
       "driver": "tg3",
-      "enabled": false,
+      "enabled": true,
       "firmware_version": "5719-v1.43 NCSI v1.3.12.0",
       "interface": "Ethernet",
       "kavlan": false,
diff --git a/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-6.json b/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-6.json
index 7e5101caf2..457fe0e1c8 100644
--- a/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-6.json
+++ b/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-6.json
@@ -87,6 +87,7 @@
       "mounted": true,
       "name": "enP1p1s0f3",
       "network_address": "drac-6.grenoble.grid5000.fr",
+      "rate": 1000000000,
       "switch": null,
       "switch_port": null,
       "vendor": "Broadcom"
@@ -94,7 +95,7 @@
     {
       "device": "eth4",
       "driver": "tg3",
-      "enabled": false,
+      "enabled": true,
       "firmware_version": "5719-v1.43 NCSI v1.3.12.0",
       "interface": "Ethernet",
       "kavlan": false,
diff --git a/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-7.json b/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-7.json
index 9f9dd5a13b..fc69cb5a2d 100644
--- a/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-7.json
+++ b/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-7.json
@@ -87,6 +87,7 @@
       "mounted": true,
       "name": "enP1p1s0f3",
       "network_address": "drac-7.grenoble.grid5000.fr",
+      "rate": 1000000000,
       "switch": null,
       "switch_port": null,
       "vendor": "Broadcom"
@@ -94,7 +95,7 @@
     {
       "device": "eth4",
       "driver": "tg3",
-      "enabled": false,
+      "enabled": true,
       "firmware_version": "5719-v1.43 NCSI v1.3.12.0",
       "interface": "Ethernet",
       "kavlan": false,
diff --git a/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-8.json b/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-8.json
index 2c7ca51785..aed115305a 100644
--- a/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-8.json
+++ b/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-8.json
@@ -87,6 +87,7 @@
       "mounted": true,
       "name": "enP1p1s0f3",
       "network_address": "drac-8.grenoble.grid5000.fr",
+      "rate": 1000000000,
       "switch": null,
       "switch_port": null,
       "vendor": "Broadcom"
@@ -94,7 +95,7 @@
     {
       "device": "eth4",
       "driver": "tg3",
-      "enabled": false,
+      "enabled": true,
       "firmware_version": "5719-v1.43 NCSI v1.3.12.0",
       "interface": "Ethernet",
       "kavlan": false,
diff --git a/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-9.json b/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-9.json
index 7ac96c090a..2c39fd075f 100644
--- a/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-9.json
+++ b/data/grid5000/sites/grenoble/clusters/drac/nodes/drac-9.json
@@ -87,6 +87,7 @@
       "mounted": true,
       "name": "enP1p1s0f3",
       "network_address": "drac-9.grenoble.grid5000.fr",
+      "rate": 1000000000,
       "switch": null,
       "switch_port": null,
       "vendor": "Broadcom"
@@ -94,7 +95,7 @@
     {
       "device": "eth4",
       "driver": "tg3",
-      "enabled": false,
+      "enabled": true,
       "firmware_version": "5719-v1.43 NCSI v1.3.12.0",
       "interface": "Ethernet",
       "kavlan": false,
diff --git a/input/grid5000/sites/grenoble/clusters/drac/drac.yaml b/input/grid5000/sites/grenoble/clusters/drac/drac.yaml
index cc4bed2071..3f1e610431 100644
--- a/input/grid5000/sites/grenoble/clusters/drac/drac.yaml
+++ b/input/grid5000/sites/grenoble/clusters/drac/drac.yaml
@@ -41,7 +41,7 @@ nodes:
         mountable: true
         mounted: true
       eth4:
-        enabled: false
+        enabled: true
         mountable: false
         mounted: false
       eth5:
diff --git a/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-1.yaml b/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-1.yaml
index c8fbe50bf4..51211bdd75 100644
--- a/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-1.yaml
+++ b/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-1.yaml
@@ -59,6 +59,7 @@ drac-1:
       management: false
       model: NetXtreme II BCM57800 1/10 Gigabit Ethernet
       name: enP1p1s0f3
+      rate: 1000000000
       vendor: Broadcom
     eth4:
       driver: tg3
diff --git a/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-10.yaml b/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-10.yaml
index e8d9b6acec..cc9d9f48c1 100644
--- a/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-10.yaml
+++ b/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-10.yaml
@@ -59,6 +59,7 @@ drac-10:
       management: false
       model: NetXtreme II BCM57800 1/10 Gigabit Ethernet
       name: enP1p1s0f3
+      rate: 1000000000
       vendor: Broadcom
     eth4:
       driver: tg3
diff --git a/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-11.yaml b/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-11.yaml
index 27753f96b0..2392ee3942 100644
--- a/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-11.yaml
+++ b/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-11.yaml
@@ -59,6 +59,7 @@ drac-11:
       management: false
       model: NetXtreme II BCM57800 1/10 Gigabit Ethernet
       name: enP1p1s0f3
+      rate: 1000000000
       vendor: Broadcom
     eth4:
       driver: tg3
diff --git a/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-12.yaml b/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-12.yaml
index f25ce1c30e..24dcee32b4 100644
--- a/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-12.yaml
+++ b/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-12.yaml
@@ -59,6 +59,7 @@ drac-12:
       management: false
       model: NetXtreme II BCM57800 1/10 Gigabit Ethernet
       name: enP1p1s0f3
+      rate: 1000000000
       vendor: Broadcom
     eth4:
       driver: tg3
diff --git a/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-2.yaml b/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-2.yaml
index d9925e4004..93d18a1499 100644
--- a/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-2.yaml
+++ b/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-2.yaml
@@ -59,6 +59,7 @@ drac-2:
       management: false
       model: NetXtreme II BCM57800 1/10 Gigabit Ethernet
       name: enP1p1s0f3
+      rate: 1000000000
       vendor: Broadcom
     eth4:
       driver: tg3
diff --git a/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-3.yaml b/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-3.yaml
index 1993cf3cfe..4a198786ab 100644
--- a/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-3.yaml
+++ b/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-3.yaml
@@ -59,6 +59,7 @@ drac-3:
       management: false
       model: NetXtreme II BCM57800 1/10 Gigabit Ethernet
       name: enP1p1s0f3
+      rate: 1000000000
       vendor: Broadcom
     eth4:
       driver: tg3
diff --git a/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-4.yaml b/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-4.yaml
index c0fba45a5b..05e3514e39 100644
--- a/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-4.yaml
+++ b/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-4.yaml
@@ -59,6 +59,7 @@ drac-4:
       management: false
       model: NetXtreme II BCM57800 1/10 Gigabit Ethernet
       name: enP1p1s0f3
+      rate: 1000000000
       vendor: Broadcom
     eth4:
       driver: tg3
diff --git a/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-5.yaml b/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-5.yaml
index 1a807ffd58..6b9e12145b 100644
--- a/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-5.yaml
+++ b/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-5.yaml
@@ -59,6 +59,7 @@ drac-5:
       management: false
       model: NetXtreme II BCM57800 1/10 Gigabit Ethernet
       name: enP1p1s0f3
+      rate: 1000000000
       vendor: Broadcom
     eth4:
       driver: tg3
diff --git a/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-6.yaml b/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-6.yaml
index 3900315334..d829934bae 100644
--- a/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-6.yaml
+++ b/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-6.yaml
@@ -59,6 +59,7 @@ drac-6:
       management: false
       model: NetXtreme II BCM57800 1/10 Gigabit Ethernet
       name: enP1p1s0f3
+      rate: 1000000000
       vendor: Broadcom
     eth4:
       driver: tg3
diff --git a/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-7.yaml b/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-7.yaml
index acfce42905..9076de1f23 100644
--- a/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-7.yaml
+++ b/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-7.yaml
@@ -59,6 +59,7 @@ drac-7:
       management: false
       model: NetXtreme II BCM57800 1/10 Gigabit Ethernet
       name: enP1p1s0f3
+      rate: 1000000000
       vendor: Broadcom
     eth4:
       driver: tg3
diff --git a/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-8.yaml b/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-8.yaml
index 2b058cdc7a..edb6a836ef 100644
--- a/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-8.yaml
+++ b/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-8.yaml
@@ -59,6 +59,7 @@ drac-8:
       management: false
       model: NetXtreme II BCM57800 1/10 Gigabit Ethernet
       name: enP1p1s0f3
+      rate: 1000000000
       vendor: Broadcom
     eth4:
       driver: tg3
diff --git a/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-9.yaml b/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-9.yaml
index 63f059cba9..c744744ae8 100644
--- a/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-9.yaml
+++ b/input/grid5000/sites/grenoble/clusters/drac/nodes/drac-9.yaml
@@ -59,6 +59,7 @@ drac-9:
       management: false
       model: NetXtreme II BCM57800 1/10 Gigabit Ethernet
       name: enP1p1s0f3
+      rate: 1000000000
       vendor: Broadcom
     eth4:
       driver: tg3
-- 
GitLab