From 021807748a54f50e52982782fe170192a6bd50a2 Mon Sep 17 00:00:00 2001
From: Pierre JACQUOT <pierre.jacquot@inria.fr>
Date: Wed, 26 Jul 2023 20:37:16 +0200
Subject: [PATCH] [toulouse][network] Describe link aggregation for
 nfs.toulouse

---
 .../toulouse/network_equipments/gw-toulouse.json   | 14 ++++++++++----
 .../sites/toulouse/networks/gw-toulouse.yaml       | 13 +++++++++----
 2 files changed, 19 insertions(+), 8 deletions(-)

diff --git a/data/grid5000/sites/toulouse/network_equipments/gw-toulouse.json b/data/grid5000/sites/toulouse/network_equipments/gw-toulouse.json
index 04cfa91dec1..bf65a25cab6 100644
--- a/data/grid5000/sites/toulouse/network_equipments/gw-toulouse.json
+++ b/data/grid5000/sites/toulouse/network_equipments/gw-toulouse.json
@@ -3,6 +3,12 @@
     "gw"
   ],
   "channels": {
+    "port-channel1": {
+      "kind": "server",
+      "port": "port-channel1",
+      "rate": 20000000000,
+      "uid": "nfs"
+    },
     "port-channel2": {
       "kind": "switch",
       "port": "port-channel1",
@@ -110,14 +116,14 @@
           "uid": "pve-2"
         },
         {
-          "kind": "server",
+          "kind": "channel",
           "snmp_name": "1/1/19",
-          "uid": "nfs"
+          "uid": "port-channel1"
         },
         {
-          "kind": "server",
+          "kind": "channel",
           "snmp_name": "1/1/20",
-          "uid": "nfs"
+          "uid": "port-channel1"
         }
       ],
       "rate": 10000000000,
diff --git a/input/grid5000/sites/toulouse/networks/gw-toulouse.yaml b/input/grid5000/sites/toulouse/networks/gw-toulouse.yaml
index 85920e2b41b..09ad4c52285 100644
--- a/input/grid5000/sites/toulouse/networks/gw-toulouse.yaml
+++ b/input/grid5000/sites/toulouse/networks/gw-toulouse.yaml
@@ -92,12 +92,17 @@ gw-toulouse:
           uid: pve-2
           kind: server
         19:
-          uid: nfs
-          kind: server
+          uid: port-channel1
+          kind: channel
         20:
-          uid: nfs
-          kind: server
+          uid: port-channel1
+          kind: channel
   channels:
+    port-channel1:
+      uid: nfs
+      kind: server
+      rate: 20000000000
+      port: port-channel1
     port-channel2:
       uid: sw-estats
       kind: switch
-- 
GitLab