From 7feed9c18a3d778947b088c0b40e5ce3e7b29bd5 Mon Sep 17 00:00:00 2001
From: Gaetan SIMO <gaetan.simo@inria.fr>
Date: Sun, 27 May 2012 00:10:27 +0200
Subject: [PATCH] [network-api] Nancy - Updating configuration.

---
 Rakefile                                      |   6 +-
 .../sites/nancy/network_equipments/gw.json    |  88 --------
 .../nancy/network_equipments/sgraphene1.json  |   6 +-
 .../nancy/network_equipments/sgraphene2.json  |   6 +-
 .../nancy/network_equipments/sgraphene3.json  |   6 +-
 .../nancy/network_equipments/sgraphene4.json  |   6 +-
 .../nancy/network_equipments/sgravillon1.json | 204 ++++++++++++++++++
 .../nancy/network_equipments/sgriffon1.json   |   6 +-
 .../nancy/network_equipments/sgriffon2.json   |   6 +-
 .../nancy/network_equipments/sgriffon3.json   |   6 +-
 .../nancy/network_equipments/stalc1.json      |  38 +++-
 .../nancy/network_equipments/stalc2.json      |  36 +++-
 .../nancy/network_equipments/stalc3.json      |  20 +-
 .../nancy/network_equipments/stalc4.json      |  38 ++++
 generators/input/net-links.rb                 |   2 +-
 .../sites/nancy/net-links/sgraphene1.yaml     |   2 +-
 .../sites/nancy/net-links/sgraphene2.yaml     |   2 +-
 .../sites/nancy/net-links/sgraphene3.yaml     |   2 +-
 .../sites/nancy/net-links/sgraphene4.yaml     |   2 +-
 .../sites/nancy/net-links/sgravillon1.yaml    |  17 +-
 .../sites/nancy/net-links/sgriffon1.yaml      |   2 +-
 .../sites/nancy/net-links/sgriffon2.yaml      |   2 +-
 .../sites/nancy/net-links/sgriffon3.yaml      |   4 +-
 .../input/sites/nancy/net-links/stalc1.yaml   |  24 ++-
 .../input/sites/nancy/net-links/stalc2.yaml   |  17 +-
 .../input/sites/nancy/net-links/stalc3.yaml   |  11 +-
 .../input/sites/nancy/net-links/stalc4.yaml   |  13 +-
 27 files changed, 423 insertions(+), 149 deletions(-)
 delete mode 100644 data/grid5000/sites/nancy/network_equipments/gw.json
 create mode 100644 data/grid5000/sites/nancy/network_equipments/sgravillon1.json
 create mode 100644 data/grid5000/sites/nancy/network_equipments/stalc4.json

diff --git a/Rakefile b/Rakefile
index 22d9278c9fc..f72de9e1a3f 100644
--- a/Rakefile
+++ b/Rakefile
@@ -200,11 +200,11 @@ namespace :netlinks do
   desc "Generates network API JSON files based on net-links yaml files.\nUse DRY=yes to simulate the execution. "
   task :generate => [:environment,:hosts] do
     host,site = @host.scan(/(\S+)\.(\S+)/).flatten
-    root_dir_input = "#{ROOT_DIR}/generators/input/sites"
+    root_dir_input = File.join(ROOT_DIR, "generators","input")
     command = File.join(ROOT_DIR, "generators", "grid5000")
     command += " " + File.join(root_dir_input, "net-links.rb")
-    command += " " + File.join(root_dir_input, site,"#{site}.rb")
-    command += " " + File.join(root_dir_input, site,"net-links","#{host}.yaml")
+    command += " " + File.join(root_dir_input,"sites", site,"#{site}.rb")
+    command += " " + File.join(root_dir_input,"sites", site,"net-links","#{host}.yaml")
 
     command << " -s" if ENV['DRY'] == "yes"
 #    puts command
diff --git a/data/grid5000/sites/nancy/network_equipments/gw.json b/data/grid5000/sites/nancy/network_equipments/gw.json
deleted file mode 100644
index 76a6f361068..00000000000
--- a/data/grid5000/sites/nancy/network_equipments/gw.json
+++ /dev/null
@@ -1,88 +0,0 @@
-{
-  "channels": {
-    "naming_pattern": "Po%CHANNELID%"
-  },
-  "kind": "router",
-  "linecards": [
-    {
-
-    },
-    {
-      "kind": "switch",
-      "naming_pattern": "%LINECARD:A%%PORT%",
-      "ports": [
-        {
-
-        },
-        {
-
-        },
-        {
-
-        },
-        {
-          "uid": "sgraphene3"
-        },
-        {
-          "uid": "sgriffon2"
-        }
-      ],
-      "rate": 10000
-    },
-    {
-      "kind": "switch",
-      "naming_pattern": "%LINECARD:A%%PORT%",
-      "ports": [
-        {
-
-        },
-        {
-          "uid": "sgraphene1"
-        },
-        {
-          "uid": "sgraphene2"
-        },
-        {
-
-        },
-        {
-          "uid": "sgraphene4"
-        }
-      ],
-      "rate": 10000
-    },
-    {
-      "kind": "switch",
-      "naming_pattern": "%LINECARD:A%%PORT%",
-      "ports": [
-        {
-
-        },
-        {
-
-        },
-        {
-
-        },
-        {
-          "uid": "sgriffon3"
-        },
-        {
-          "uid": "sgriffon1"
-        }
-      ],
-      "rate": 10000
-    }
-  ],
-  "model": "HP Procurve 5406zl",
-  "routes": {
-
-  },
-  "site": "nancy",
-  "snmp_community": "public",
-  "type": "network_equipment",
-  "uid": "gw",
-  "vlans": {
-    "naming_pattern": "Vlan%VLANID%"
-  }
-}
\ No newline at end of file
diff --git a/data/grid5000/sites/nancy/network_equipments/sgraphene1.json b/data/grid5000/sites/nancy/network_equipments/sgraphene1.json
index 6db899106a8..c2a06b5c434 100644
--- a/data/grid5000/sites/nancy/network_equipments/sgraphene1.json
+++ b/data/grid5000/sites/nancy/network_equipments/sgraphene1.json
@@ -132,7 +132,7 @@
           "uid": "graphene-39"
         }
       ],
-      "rate": 1000
+      "rate": 10000000000
     },
     {
       "kind": "router",
@@ -145,10 +145,10 @@
 
         },
         {
-          "uid": "gw"
+          "uid": "sgravillon1"
         }
       ],
-      "rate": 10000
+      "rate": 100000000
     }
   ],
   "model": "3com 4500g",
diff --git a/data/grid5000/sites/nancy/network_equipments/sgraphene2.json b/data/grid5000/sites/nancy/network_equipments/sgraphene2.json
index 7e8f4be18a8..f37b7fcd400 100644
--- a/data/grid5000/sites/nancy/network_equipments/sgraphene2.json
+++ b/data/grid5000/sites/nancy/network_equipments/sgraphene2.json
@@ -117,7 +117,7 @@
           "uid": "graphene-74"
         }
       ],
-      "rate": 1000
+      "rate": 10000000000
     },
     {
       "kind": "router",
@@ -130,10 +130,10 @@
 
         },
         {
-          "uid": "gw"
+          "uid": "sgravillon1"
         }
       ],
-      "rate": 10000
+      "rate": 100000000
     }
   ],
   "model": "3com 4500g",
diff --git a/data/grid5000/sites/nancy/network_equipments/sgraphene3.json b/data/grid5000/sites/nancy/network_equipments/sgraphene3.json
index 971affa6112..315c3160a11 100644
--- a/data/grid5000/sites/nancy/network_equipments/sgraphene3.json
+++ b/data/grid5000/sites/nancy/network_equipments/sgraphene3.json
@@ -102,7 +102,7 @@
           "uid": "graphene-103"
         }
       ],
-      "rate": 1000
+      "rate": 10000000000
     },
     {
       "kind": "router",
@@ -115,10 +115,10 @@
 
         },
         {
-          "uid": "gw"
+          "uid": "sgravillon1"
         }
       ],
-      "rate": 10000
+      "rate": 100000000
     }
   ],
   "model": "3com 4500g",
diff --git a/data/grid5000/sites/nancy/network_equipments/sgraphene4.json b/data/grid5000/sites/nancy/network_equipments/sgraphene4.json
index 631d35d4242..980cee49eac 100644
--- a/data/grid5000/sites/nancy/network_equipments/sgraphene4.json
+++ b/data/grid5000/sites/nancy/network_equipments/sgraphene4.json
@@ -132,7 +132,7 @@
           "uid": "graphene-144"
         }
       ],
-      "rate": 1000
+      "rate": 10000000000
     },
     {
       "kind": "router",
@@ -142,10 +142,10 @@
 
         },
         {
-          "uid": "gw"
+          "uid": "sgravillon1"
         }
       ],
-      "rate": 10000
+      "rate": 100000000
     }
   ],
   "model": "3com 4500g",
diff --git a/data/grid5000/sites/nancy/network_equipments/sgravillon1.json b/data/grid5000/sites/nancy/network_equipments/sgravillon1.json
new file mode 100644
index 00000000000..36469e4c1c9
--- /dev/null
+++ b/data/grid5000/sites/nancy/network_equipments/sgravillon1.json
@@ -0,0 +1,204 @@
+{
+  "channels": {
+    "naming_pattern": "Po%CHANNELID%"
+  },
+  "kind": "router",
+  "linecards": [
+    {
+
+    },
+    {
+      "kind": "other",
+      "naming_pattern": "%LINECARD:A%%PORT%",
+      "ports": [
+        {
+
+        },
+        {
+          "kind": "other",
+          "uid": "sgrapheneib"
+        },
+        {
+          "port": "bmc",
+          "uid": "fgriffon2"
+        },
+        {
+          "uid": "TALC-adm"
+        },
+        {
+          "kind": "switch",
+          "uid": "stalc1"
+        },
+        {
+
+        },
+        {
+          "uid": "sgriffonib"
+        },
+        {
+          "uid": "grimoire"
+        },
+        {
+          "port": "eth0",
+          "uid": "grog"
+        },
+        {
+          "port": "eth1",
+          "uid": "grog"
+        },
+        {
+          "port": "bmc",
+          "uid": "fgriffon1"
+        },
+        {
+          "port": "eth0",
+          "uid": "fgriffon1"
+        },
+        {
+
+        },
+        {
+          "uid": "sgraphene1-ipmi"
+        },
+        {
+          "uid": "sgraphene2-ipmi"
+        },
+        {
+          "uid": "sgraphene3-ipmi"
+        },
+        {
+          "uid": "sgraphene4-ipmi"
+        },
+        {
+
+        },
+        {
+          "uid": "loria"
+        },
+        {
+          "uid": "sgriffon2-ipmi"
+        },
+        {
+          "uid": "sgriffon1-ipmi"
+        },
+        {
+          "uid": "sgriffon3-ipmi"
+        },
+        {
+          "port": "eth0",
+          "uid": "fgrelon1"
+        },
+        {
+          "port": "eth1",
+          "uid": "fgriffon1"
+        },
+        {
+          "port": "eth1",
+          "uid": "fgrelon1"
+        }
+      ],
+      "rate": 1000000000
+    },
+    {
+      "kind": "switch",
+      "naming_pattern": "%LINECARD:A%%PORT%",
+      "ports": [
+        {
+
+        },
+        {
+
+        },
+        {
+
+        },
+        {
+          "uid": "sgraphene3"
+        },
+        {
+          "uid": "sgriffon2"
+        }
+      ],
+      "rate": 1000000000
+    },
+    {
+      "kind": "switch",
+      "naming_pattern": "%LINECARD:A%%PORT%",
+      "ports": [
+        {
+
+        },
+        {
+          "uid": "sgraphene1"
+        },
+        {
+          "uid": "sgraphene2"
+        },
+        {
+
+        },
+        {
+          "uid": "sgraphene4"
+        }
+      ],
+      "rate": 1000000000
+    },
+    {
+      "kind": "switch",
+      "naming_pattern": "%LINECARD:A%%PORT%",
+      "ports": [
+        {
+
+        },
+        {
+          "kind": "other",
+          "uid": "fgriffon1"
+        },
+        {
+          "kind": "other",
+          "uid": "fgriffon2"
+        },
+        {
+          "uid": "sgriffon3"
+        },
+        {
+          "uid": "sgriffon1"
+        }
+      ],
+      "rate": 1000000000
+    },
+    {
+      "kind": "virtual",
+      "naming_pattern": "%LINECARD:A%%PORT%",
+      "ports": [
+        {
+
+        },
+        {
+
+        },
+        {
+
+        },
+        {
+
+        },
+        {
+          "uid": "renater-nancy"
+        }
+      ],
+      "rate": 10000000000
+    }
+  ],
+  "model": "HP Procurve 5406zl",
+  "routes": {
+
+  },
+  "site": "nancy",
+  "snmp_community": "public",
+  "type": "network_equipment",
+  "uid": "sgravillon1",
+  "vlans": {
+    "naming_pattern": "Vlan%VLANID%"
+  }
+}
\ No newline at end of file
diff --git a/data/grid5000/sites/nancy/network_equipments/sgriffon1.json b/data/grid5000/sites/nancy/network_equipments/sgriffon1.json
index 1419dbc5aaa..cabd0893c0b 100644
--- a/data/grid5000/sites/nancy/network_equipments/sgriffon1.json
+++ b/data/grid5000/sites/nancy/network_equipments/sgriffon1.json
@@ -141,7 +141,7 @@
           "uid": "griffon-29"
         }
       ],
-      "rate": 1000
+      "rate": 10000000000
     },
     {
       "kind": "router",
@@ -154,10 +154,10 @@
 
         },
         {
-          "uid": "gw"
+          "uid": "sgravillon1"
         }
       ],
-      "rate": 10000
+      "rate": 100000000
     }
   ],
   "model": "3com 4500g",
diff --git a/data/grid5000/sites/nancy/network_equipments/sgriffon2.json b/data/grid5000/sites/nancy/network_equipments/sgriffon2.json
index e3b80cffa7c..f7a89b3b1e7 100644
--- a/data/grid5000/sites/nancy/network_equipments/sgriffon2.json
+++ b/data/grid5000/sites/nancy/network_equipments/sgriffon2.json
@@ -141,7 +141,7 @@
           "uid": "griffon-57"
         }
       ],
-      "rate": 1000
+      "rate": 10000000000
     },
     {
       "kind": "router",
@@ -151,10 +151,10 @@
 
         },
         {
-          "uid": "gw"
+          "uid": "sgravillon1"
         }
       ],
-      "rate": 10000
+      "rate": 100000000
     }
   ],
   "model": "3com 4500g",
diff --git a/data/grid5000/sites/nancy/network_equipments/sgriffon3.json b/data/grid5000/sites/nancy/network_equipments/sgriffon3.json
index 54a8ee41a39..a4a5a2f944a 100644
--- a/data/grid5000/sites/nancy/network_equipments/sgriffon3.json
+++ b/data/grid5000/sites/nancy/network_equipments/sgriffon3.json
@@ -144,7 +144,7 @@
           "uid": "griffon-92"
         }
       ],
-      "rate": 1000
+      "rate": 10000000000
     },
     {
       "kind": "router",
@@ -154,10 +154,10 @@
 
         },
         {
-          "uid": "gw"
+          "uid": "sgravillon1"
         }
       ],
-      "rate": 10000
+      "rate": 10000000000
     }
   ],
   "model": "3com 4500g",
diff --git a/data/grid5000/sites/nancy/network_equipments/stalc1.json b/data/grid5000/sites/nancy/network_equipments/stalc1.json
index 479cbcb1df3..66897f72b52 100644
--- a/data/grid5000/sites/nancy/network_equipments/stalc1.json
+++ b/data/grid5000/sites/nancy/network_equipments/stalc1.json
@@ -6,7 +6,7 @@
   "linecards": [
     {
       "kind": "node",
-      "naming_pattern": "%PORT%",
+      "naming_pattern": "T%LINECARD%/%PORT%",
       "ports": [
         {
 
@@ -141,7 +141,41 @@
           "uid": "talc-37"
         }
       ],
-      "rate": 1000
+      "rate": 1000000000
+    },
+    {
+      "kind": "switch",
+      "naming_pattern": "T%LINECARD%/%PORT%",
+      "ports": [
+        {
+
+        },
+        {
+
+        },
+        {
+          "uid": "stalc3"
+        }
+      ],
+      "rate": 10000000000
+    },
+    {
+      "kind": "switch",
+      "naming_pattern": "T%LINECARD%/%PORT%",
+      "ports": [
+        {
+
+        },
+        {
+          "uid": "sgravillon1"
+        },
+        {
+          "kind": "other",
+          "rate": 10000000000,
+          "uid": "talc-srv"
+        }
+      ],
+      "rate": 10000000000
     }
   ],
   "model": "hp procurve",
diff --git a/data/grid5000/sites/nancy/network_equipments/stalc2.json b/data/grid5000/sites/nancy/network_equipments/stalc2.json
index 6c1c8849dc0..392806ee1d8 100644
--- a/data/grid5000/sites/nancy/network_equipments/stalc2.json
+++ b/data/grid5000/sites/nancy/network_equipments/stalc2.json
@@ -6,7 +6,7 @@
   "linecards": [
     {
       "kind": "node",
-      "naming_pattern": "%PORT%",
+      "naming_pattern": "G%LINECARD%/%PORT%",
       "ports": [
         {
 
@@ -138,7 +138,39 @@
           "uid": "talc-67"
         }
       ],
-      "rate": 1000
+      "rate": 10000000000
+    },
+    {
+      "kind": "switch",
+      "naming_pattern": "T%LINECARD%/%PORT%",
+      "ports": [
+        {
+
+        },
+        {
+
+        },
+        {
+          "uid": "stalc4"
+        }
+      ],
+      "rate": 10000000000
+    },
+    {
+      "kind": "other",
+      "naming_pattern": "T%LINECARD%/%PORT%",
+      "ports": [
+        {
+
+        },
+        {
+          "uid": "talc1"
+        },
+        {
+          "uid": "talc2"
+        }
+      ],
+      "rate": 10000000000
     }
   ],
   "model": "hp procurve",
diff --git a/data/grid5000/sites/nancy/network_equipments/stalc3.json b/data/grid5000/sites/nancy/network_equipments/stalc3.json
index 9fd590c9fb1..5c019aec6a3 100644
--- a/data/grid5000/sites/nancy/network_equipments/stalc3.json
+++ b/data/grid5000/sites/nancy/network_equipments/stalc3.json
@@ -6,7 +6,7 @@
   "linecards": [
     {
       "kind": "node",
-      "naming_pattern": "%PORT%",
+      "naming_pattern": "G%LINECARD%/%PORT%",
       "ports": [
         {
 
@@ -138,7 +138,23 @@
           "uid": "talc-133"
         }
       ],
-      "rate": 1000
+      "rate": 10000000000
+    },
+    {
+      "kind": "switch",
+      "naming_pattern": "T%LINECARD%/%PORT%",
+      "ports": [
+        {
+
+        },
+        {
+          "uid": "stalc1"
+        },
+        {
+          "uid": "stalc4"
+        }
+      ],
+      "rate": 10000000000
     }
   ],
   "model": "hp procurve",
diff --git a/data/grid5000/sites/nancy/network_equipments/stalc4.json b/data/grid5000/sites/nancy/network_equipments/stalc4.json
new file mode 100644
index 00000000000..61265315561
--- /dev/null
+++ b/data/grid5000/sites/nancy/network_equipments/stalc4.json
@@ -0,0 +1,38 @@
+{
+  "channels": {
+    "naming_pattern": "Po%CHANNELID%"
+  },
+  "kind": "switch",
+  "linecards": [
+    {
+
+    },
+    {
+      "kind": "switch",
+      "naming_pattern": "T%LINECARD%/%PORT%",
+      "ports": [
+        {
+
+        },
+        {
+          "uid": "stalc3"
+        },
+        {
+          "uid": "stalc2"
+        }
+      ],
+      "rate": 10000000000
+    }
+  ],
+  "model": "hp procurve",
+  "routes": {
+
+  },
+  "site": "nancy",
+  "snmp_community": "public",
+  "type": "network_equipment",
+  "uid": "stalc4",
+  "vlans": {
+    "naming_pattern": "Vlan%VLANID%"
+  }
+}
\ No newline at end of file
diff --git a/generators/input/net-links.rb b/generators/input/net-links.rb
index f76ba056763..599c86008c3 100644
--- a/generators/input/net-links.rb
+++ b/generators/input/net-links.rb
@@ -9,7 +9,7 @@
       # Most properties are directly written as they are from the net-links YAML file to the the JSON file
       model properties["model"]
       kind properties["kind"]
-#      @context.recursive_merge!(:site => site)
+      @context.recursive_merge!(:site => site)
       snmp_community properties["snmp_community"]
       vlans properties["vlans"]
       routes properties["routes"]
diff --git a/generators/input/sites/nancy/net-links/sgraphene1.yaml b/generators/input/sites/nancy/net-links/sgraphene1.yaml
index 87fbc0d4af6..e705554ba13 100644
--- a/generators/input/sites/nancy/net-links/sgraphene1.yaml
+++ b/generators/input/sites/nancy/net-links/sgraphene1.yaml
@@ -12,7 +12,7 @@ sgraphene1:
     0: 
       naming_pattern: "%PORT%"
       kind: node
-      rate: 10000000
+      rate: 10000000000
       ports: 
         2: graphene-1
         1: graphene-2
diff --git a/generators/input/sites/nancy/net-links/sgraphene2.yaml b/generators/input/sites/nancy/net-links/sgraphene2.yaml
index a094ee19ad8..49db597a4c8 100644
--- a/generators/input/sites/nancy/net-links/sgraphene2.yaml
+++ b/generators/input/sites/nancy/net-links/sgraphene2.yaml
@@ -12,7 +12,7 @@ sgraphene2:
     0: 
       naming_pattern: "%PORT%"
       kind: node
-      rate: 10000000
+      rate: 10000000000
       ports: 
         2: graphene-41
         1: graphene-40
diff --git a/generators/input/sites/nancy/net-links/sgraphene3.yaml b/generators/input/sites/nancy/net-links/sgraphene3.yaml
index 1ae3b1d3105..c3ed074fd3b 100644
--- a/generators/input/sites/nancy/net-links/sgraphene3.yaml
+++ b/generators/input/sites/nancy/net-links/sgraphene3.yaml
@@ -12,7 +12,7 @@ sgraphene3:
     0: 
       naming_pattern: "%PORT%"
       kind: node
-      rate: 10000000
+      rate: 10000000000
       ports: 
         2: graphene-75
         1: graphene-76
diff --git a/generators/input/sites/nancy/net-links/sgraphene4.yaml b/generators/input/sites/nancy/net-links/sgraphene4.yaml
index b5e1d89a76f..e5acfb85bb2 100644
--- a/generators/input/sites/nancy/net-links/sgraphene4.yaml
+++ b/generators/input/sites/nancy/net-links/sgraphene4.yaml
@@ -12,7 +12,7 @@ sgraphene4:
     0: 
       naming_pattern: "%PORT%"
       kind: node
-      rate: 10000000
+      rate: 10000000000
       ports: 
         2: graphene-106
         1: graphene-105
diff --git a/generators/input/sites/nancy/net-links/sgravillon1.yaml b/generators/input/sites/nancy/net-links/sgravillon1.yaml
index bd9204851eb..bbc8aadc059 100644
--- a/generators/input/sites/nancy/net-links/sgravillon1.yaml
+++ b/generators/input/sites/nancy/net-links/sgravillon1.yaml
@@ -12,7 +12,7 @@ sgravillon1:
     1: 
       naming_pattern: "%LINECARD:A%%PORT%"
       kind: other
-      rate: 100000000
+      rate: 1000000000
       ports: 
         1: 
           kind: other
@@ -23,7 +23,8 @@ sgravillon1:
         3: 
           uid: TALC-adm
         4: 
-          uid: TALC-prod
+          kind: switch
+          uid: stalc1
         6: 
           uid: sgriffonib
         7: grimoire
@@ -67,14 +68,14 @@ sgravillon1:
     2: 
       naming_pattern: "%LINECARD:A%%PORT%"
       kind: switch
-      rate: 100000000
+      rate: 1000000000
       ports: 
-        3: sgriffon3
-        4: sgriffon1
+        3: sgraphene3
+        4: sgriffon2
     3: 
       naming_pattern: "%LINECARD:A%%PORT%"
       kind: switch
-      rate: 100000000
+      rate: 1000000000
       ports: 
         1: sgraphene1
         2: sgraphene2
@@ -82,7 +83,7 @@ sgravillon1:
     4: 
       naming_pattern: "%LINECARD:A%%PORT%"
       kind: switch
-      rate: 100000000
+      rate: 1000000000
       ports: 
         1: 
           kind: other
@@ -97,7 +98,7 @@ sgravillon1:
     5: 
       naming_pattern: "%LINECARD:A%%PORT%"
       kind: virtual
-      rate: 100000000
+      rate: 10000000000
       ports: 
         4: renater-nancy
   channels: 
diff --git a/generators/input/sites/nancy/net-links/sgriffon1.yaml b/generators/input/sites/nancy/net-links/sgriffon1.yaml
index becefa7b0c2..4e0018e836d 100644
--- a/generators/input/sites/nancy/net-links/sgriffon1.yaml
+++ b/generators/input/sites/nancy/net-links/sgriffon1.yaml
@@ -12,7 +12,7 @@ sgriffon1:
     0: 
       naming_pattern: "%PORT%"
       kind: node
-      rate: 10000000
+      rate: 10000000000
       ports: 
         2: griffon-2
         1: griffon-1
diff --git a/generators/input/sites/nancy/net-links/sgriffon2.yaml b/generators/input/sites/nancy/net-links/sgriffon2.yaml
index 2f13d8982ce..26ab785f766 100644
--- a/generators/input/sites/nancy/net-links/sgriffon2.yaml
+++ b/generators/input/sites/nancy/net-links/sgriffon2.yaml
@@ -12,7 +12,7 @@ sgriffon2:
     0: 
       naming_pattern: "%PORT%"
       kind: node
-      rate: 10000000
+      rate: 10000000000
       ports: 
         2: griffon-31
         1: griffon-30
diff --git a/generators/input/sites/nancy/net-links/sgriffon3.yaml b/generators/input/sites/nancy/net-links/sgriffon3.yaml
index a7b69fd10a7..428583b4b40 100644
--- a/generators/input/sites/nancy/net-links/sgriffon3.yaml
+++ b/generators/input/sites/nancy/net-links/sgriffon3.yaml
@@ -12,7 +12,7 @@ sgriffon3:
     0: 
       naming_pattern: "%PORT%"
       kind: node
-      rate: 10000000
+      rate: 10000000000
       ports: 
         4: griffon-61
         5: griffon-62
@@ -49,7 +49,7 @@ sgriffon3:
     1: 
       naming_pattern: "%LINECARD:A%%PORT%"
       kind: router
-      rate: 100000000
+      rate: 10000000000
       ports: 
         1: sgravillon1
   channels: 
diff --git a/generators/input/sites/nancy/net-links/stalc1.yaml b/generators/input/sites/nancy/net-links/stalc1.yaml
index 30b3ec736b5..3583613b417 100644
--- a/generators/input/sites/nancy/net-links/stalc1.yaml
+++ b/generators/input/sites/nancy/net-links/stalc1.yaml
@@ -8,14 +8,14 @@ stalc1:
     naming_pattern: Vlan%VLANID%
   routes: {}
   linecards: 
-
     0: 
-      naming_pattern: "%PORT%"
+      naming_pattern: "T%LINECARD%/%PORT%"
       kind: node
-      rate: 10000000
+      rate: 1000000000
       ports: 
         1: talc-1
         3: talc-2
+        5: talc-134
         6: talc-3
         7: talc-4
         8: talc-5
@@ -51,6 +51,22 @@ stalc1:
         41: talc-35
         42: talc-36
         43: talc-37
-        5: talc-134
+    1: 
+      naming_pattern: "T%LINECARD%/%PORT%"
+      kind: switch
+      rate: 10000000000
+      ports: 
+        2: stalc3
+    2: 
+      naming_pattern: "T%LINECARD%/%PORT%"
+      kind: switch
+      rate: 10000000000
+      ports: 
+        1: sgravillon1
+        2: 
+          kind: other
+          rate: 10000000000
+          uid: talc-srv
   channels: 
     naming_pattern: Po%CHANNELID%
+
diff --git a/generators/input/sites/nancy/net-links/stalc2.yaml b/generators/input/sites/nancy/net-links/stalc2.yaml
index 21cd6db6c08..9659dd595d9 100644
--- a/generators/input/sites/nancy/net-links/stalc2.yaml
+++ b/generators/input/sites/nancy/net-links/stalc2.yaml
@@ -10,9 +10,9 @@ stalc2:
 
   linecards: 
     0: 
-      naming_pattern: "%PORT%"
+      naming_pattern: "G%LINECARD%/%PORT%"
       kind: node
-      rate: 10000000
+      rate: 10000000000
       ports: 
         3: talc-38
         4: talc-39
@@ -44,5 +44,18 @@ stalc2:
         40: talc-65
         41: talc-66
         42: talc-67
+    1: 
+      naming_pattern: "T%LINECARD%/%PORT%"
+      kind: switch
+      rate: 10000000000
+      ports: 
+        2: stalc4
+    2: 
+      naming_pattern: "T%LINECARD%/%PORT%"
+      kind: other
+      rate: 10000000000
+      ports: 
+        1: talc1
+        2: talc2
   channels: 
     naming_pattern: Po%CHANNELID%
diff --git a/generators/input/sites/nancy/net-links/stalc3.yaml b/generators/input/sites/nancy/net-links/stalc3.yaml
index 4f3bc09455a..06009e26259 100644
--- a/generators/input/sites/nancy/net-links/stalc3.yaml
+++ b/generators/input/sites/nancy/net-links/stalc3.yaml
@@ -10,9 +10,9 @@ stalc3:
 
   linecards: 
     0: 
-      naming_pattern: "%PORT%"
+      naming_pattern: "G%LINECARD%/%PORT%"
       kind: node
-      rate: 10000000
+      rate: 10000000000
       ports: 
         2: talc-69
         1: talc-68
@@ -52,5 +52,12 @@ stalc3:
         40: talc-103
         41: talc-104
         42: talc-133
+    1: 
+      naming_pattern: "T%LINECARD%/%PORT%"
+      kind: switch
+      rate: 10000000000
+      ports: 
+        1: stalc1
+        2: stalc4
   channels: 
     naming_pattern: Po%CHANNELID%
diff --git a/generators/input/sites/nancy/net-links/stalc4.yaml b/generators/input/sites/nancy/net-links/stalc4.yaml
index 743acf44cff..a9ebb3d6d12 100644
--- a/generators/input/sites/nancy/net-links/stalc4.yaml
+++ b/generators/input/sites/nancy/net-links/stalc4.yaml
@@ -9,11 +9,12 @@ stalc4:
   routes: {}
 
   linecards: 
-    0: 
-      naming_pattern: "%PORT%"
-      kind: node
-      rate: 10000000
-      ports: {} 
-
+    1: 
+      naming_pattern: "T%LINECARD%/%PORT%"
+      kind: switch
+      rate: 10000000000
+      ports: 
+        1: stalc3
+        2: stalc2
   channels: 
     naming_pattern: Po%CHANNELID%
-- 
GitLab