From 18b56c0499771a2986dbaf1a1875b83eded61326 Mon Sep 17 00:00:00 2001
From: Ludovic Schoepps <ludovic.schoepps@uni.lu>
Date: Fri, 25 Oct 2024 15:30:08 +0200
Subject: [PATCH] [luxembourg] Add network description for sw-b04

---
 .../luxembourg/networks/gw-luxembourg.yaml    | 26 ++---
 .../sites/luxembourg/networks/sw-b04.yaml     | 96 +++++++++++++++++++
 2 files changed, 109 insertions(+), 13 deletions(-)
 create mode 100644 input/grid5000/sites/luxembourg/networks/sw-b04.yaml

diff --git a/input/grid5000/sites/luxembourg/networks/gw-luxembourg.yaml b/input/grid5000/sites/luxembourg/networks/gw-luxembourg.yaml
index 9b684a4e532..b6e81565cc6 100644
--- a/input/grid5000/sites/luxembourg/networks/gw-luxembourg.yaml
+++ b/input/grid5000/sites/luxembourg/networks/gw-luxembourg.yaml
@@ -9,7 +9,7 @@ gw:
   site: luxembourg
   snmp_community: public
   warranty: 2029-01-01 # Contrat site université renouvelé en continu
-  backplane_bps: 4800000000000
+  backplane_bps: 4_800_000_000_000
   ip: 172.16.191.254
   ip6: 2001:660:4406:300::ffff:ffff
   metrics:
@@ -122,8 +122,8 @@ gw:
     1:
       snmp_pattern: Ethernet%LINECARD%/%PORT%
       kavlan_pattern: Ethernet%LINECARD%/%PORT%
-      backplane_bps: 40000000000
-      rate: 1000000000
+      backplane_bps: 4_800_000_000_000
+      rate: 10_000_000_000
       kind: node
       ports:
         1:
@@ -194,49 +194,49 @@ gw:
       uid: pve-1
       port: port-channel1
       kind: server
-      rate: 20000000000
+      rate: 20_000_000_000
     port-channel3:
       uid: pve-2
       port: port-channel3
       kind: server
-      rate: 20000000000
+      rate: 20_000_000_000
     port-channel5:
       uid: pve-1-backup-link
       port: port-channel5
       kind: server
-      rate: 20000000000
+      rate: 20_000_000_000
     port-channel7:
       uid: pve-2-backup-link
       port: port-channel7
       kind: server
-      rate: 20000000000
+      rate: 20_000_000_000
     port-channel41:
       uid: backup-link-to-hpc-gw
       port: port-channel7
       kind: server
-      rate: 20000000000
+      rate: 20_000_000_000
     port-channel43:
       uid: sw-admin-b09
       port: port-channel43
       kind: switch
-      rate: 20000000000
+      rate: 20_000_000_000
     port-channel45:
       uid: sw-admin-b04
       port: port-channel45
       kind: switch
-      rate: 20000000000
+      rate: 20_000_000_000
     port-channel55:
       uid: srv-data
       port: port-channel55
       kind: server
-      rate: 20000000000
+      rate: 20_000_000_000
     port-channel57:
       uid: sw-b09
       port: port-channel57
       kind: switch
-      rate: 20000000000
+      rate: 20_000_000_000
     port-channel59:
       uid: sw-b04
       port: port-channel59
       kind: switch
-      rate: 20000000000
+      rate: 20_000_000_000
diff --git a/input/grid5000/sites/luxembourg/networks/sw-b04.yaml b/input/grid5000/sites/luxembourg/networks/sw-b04.yaml
new file mode 100644
index 00000000000..1f4782a51ef
--- /dev/null
+++ b/input/grid5000/sites/luxembourg/networks/sw-b04.yaml
@@ -0,0 +1,96 @@
+---
+sw-b04:
+  model: cisco Nexus9000 C93180YC-FX3
+  kind: switch
+  managed_by_us: true
+  site: luxembourg
+  snmp_community: public
+  warranty: 2029-01-01 # Contrat site université renouvelé en continu
+  backplane_bps: 3_600_000_000_000
+  ip: 172.17.191.249
+  metrics:
+    - name: network_ifacein_bytes_total
+      description: Input byte counter for the network device port
+      period: 15000
+      source:
+        protocol: snmp
+        id: 1.3.6.1.2.1.31.1.1.1.6.{{ 1.3.6.1.2.1.2.2.1.2 == %SNMP_IFACE% }}
+    - name: network_ifaceout_bytes_total
+      description: Output byte counter for the network device port
+      period: 15000
+      source:
+        protocol: snmp
+        id: 1.3.6.1.2.1.31.1.1.1.10.{{ 1.3.6.1.2.1.2.2.1.2 == %SNMP_IFACE% }}
+    - name: network_ifacein_packets_total
+      description: Input packet counter for the network device port
+      period: 15000
+      source:
+        protocol: snmp
+        id: 1.3.6.1.2.1.2.2.1.11.{{ 1.3.6.1.2.1.2.2.1.2 == %SNMP_IFACE% }}
+    - name: network_ifaceout_packets_total
+      description: Output packet counter for the network device port
+      period: 15000
+      source:
+        protocol: snmp
+        id: 1.3.6.1.2.1.2.2.1.17.{{ 1.3.6.1.2.1.2.2.1.2 == %SNMP_IFACE% }}
+    - name: network_ifacein_packets_discard_total
+      description: Input counter of discarded packets for the network device port
+      period: 15000
+      source:
+        protocol: snmp
+        id: 1.3.6.1.2.1.2.2.1.13.{{ 1.3.6.1.2.1.2.2.1.2 == %SNMP_IFACE% }}
+    - name: network_ifaceout_packets_discard_total
+      description: Output counter of discarded packets for the network device port
+      period: 15000
+      source:
+        protocol: snmp
+        id: 1.3.6.1.2.1.2.2.1.19.{{ 1.3.6.1.2.1.2.2.1.2 == %SNMP_IFACE% }}
+    - name: network_ifacein_packets_error_total
+      description: Input counter of packet errors for the network device port
+      period: 15000
+      source:
+        protocol: snmp
+        id: 1.3.6.1.2.1.2.2.1.14.{{ 1.3.6.1.2.1.2.2.1.2 == %SNMP_IFACE% }}
+    - name: network_ifaceout_packets_error_total
+      description: Output counter of packet errors for the network device port
+      period: 15000
+      source:
+        protocol: snmp
+        id: 1.3.6.1.2.1.2.2.1.20.{{ 1.3.6.1.2.1.2.2.1.2 == %SNMP_IFACE% }}
+  linecards:
+    1:
+      snmp_pattern: "Ethernet%LINECARD%/%PORT%"
+      kavlan_pattern: "%PORT%"
+      backplane_bps: 3_600_000_000_000
+      rate: 25_000_000_000
+      kind: node
+      ports:
+        1:
+          uid: mi210x-1
+        2:
+          uid: mi210x-2
+        3:
+          uid: mi210x-3
+        4:
+          uid: mi210x-4
+        5:
+          uid: mi210x-5
+        6:
+          uid: mi210x-6
+        7:
+          uid: mi210x-7
+        8:
+          uid: xe9680-10g-p1
+          rate: 10_000_000_000
+        9:
+          uid: xe9680-10g-p2
+          rate: 10_000_000_000
+        53:
+          uid: port-channel53
+          kind: channel
+  channels:
+    port-channel53:
+      uid: gw-belval
+      port: port-channel53
+      kind: router
+      rate: 200_000_000_000
-- 
GitLab