From 180e2b5721094a2fcd17e87ee22bc728ebaffa94 Mon Sep 17 00:00:00 2001
From: Ludovic Schoepps <ludovic.schoepps@uni.lu>
Date: Mon, 3 Feb 2025 14:21:35 +0100
Subject: [PATCH] [sophia] Fix adm and bmc ip of pve-1 and pve-2

---
 data/grid5000/sites/sophia/servers/pve-1.json     | 5 ++++-
 data/grid5000/sites/sophia/servers/pve-2.json     | 5 ++++-
 input/grid5000/sites/sophia/servers/physical.yaml | 8 ++++++--
 3 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/data/grid5000/sites/sophia/servers/pve-1.json b/data/grid5000/sites/sophia/servers/pve-1.json
index d6685b595ef..619cc61b76a 100644
--- a/data/grid5000/sites/sophia/servers/pve-1.json
+++ b/data/grid5000/sites/sophia/servers/pve-1.json
@@ -1,8 +1,11 @@
 {
   "kind": "physical",
   "network_adapters": {
+    "adm": {
+      "ip": "172.17.143.1"
+    },
     "bmc": {
-      "ip": "172.17.143.1",
+      "ip": "172.17.142.1",
       "mac": "5C:ED:8C:F6:ED:E0"
     },
     "default": {
diff --git a/data/grid5000/sites/sophia/servers/pve-2.json b/data/grid5000/sites/sophia/servers/pve-2.json
index 03b302954dc..31468d19d07 100644
--- a/data/grid5000/sites/sophia/servers/pve-2.json
+++ b/data/grid5000/sites/sophia/servers/pve-2.json
@@ -1,8 +1,11 @@
 {
   "kind": "physical",
   "network_adapters": {
+    "adm": {
+      "ip": "172.17.143.2"
+    },
     "bmc": {
-      "ip": "172.17.143.2",
+      "ip": "172.17.142.2",
       "mac": "5C:ED:8C:F6:ED:94"
     },
     "default": {
diff --git a/input/grid5000/sites/sophia/servers/physical.yaml b/input/grid5000/sites/sophia/servers/physical.yaml
index acd676e0d69..48e77aff201 100644
--- a/input/grid5000/sites/sophia/servers/physical.yaml
+++ b/input/grid5000/sites/sophia/servers/physical.yaml
@@ -123,8 +123,10 @@ pve-1:
     default:
       mac: d4:04:e6:af:8c:68
       ip: 172.16.143.1
-    bmc:
+    adm:
       ip: 172.17.143.1
+    bmc:
+      ip: 172.17.142.1
       mac: 5C:ED:8C:F6:ED:E0
 
 pve-2:
@@ -135,6 +137,8 @@ pve-2:
     default:
       mac: d4:04:e6:af:32:0e
       ip: 172.16.143.2
-    bmc:
+    adm:
       ip: 172.17.143.2
+    bmc:
+      ip: 172.17.142.2
       mac: 5C:ED:8C:F6:ED:94
-- 
GitLab