diff --git a/data/grid5000/sites/lyon/pdus/wattmetrev3-1.json b/data/grid5000/sites/lyon/pdus/wattmetrev3-1.json index 31326337595a27f53dcf47d5291102d22b8ca755..958c59454eac6d1528d171e0c9375359d888fac8 100644 --- a/data/grid5000/sites/lyon/pdus/wattmetrev3-1.json +++ b/data/grid5000/sites/lyon/pdus/wattmetrev3-1.json @@ -33,7 +33,7 @@ "25": "sagittaire-3", "26": "sagittaire-4", "27": "sagittaire-5", - "28": "sagittaire-7", + "29": "sagittaire-7", "3": "gemini-1", "30": "gemini-2", "31": "gemini-2", diff --git a/data/grid5000/sites/rennes/clusters/paradoxe/nodes/paradoxe-31.json b/data/grid5000/sites/rennes/clusters/paradoxe/nodes/paradoxe-31.json index 9e243f1e598493b5fab1f684fc558a0b43eaa097..8a988fd336a962523a2841bdbac0842966e7d648 100644 --- a/data/grid5000/sites/rennes/clusters/paradoxe/nodes/paradoxe-31.json +++ b/data/grid5000/sites/rennes/clusters/paradoxe/nodes/paradoxe-31.json @@ -205,7 +205,7 @@ }, { "kind": "wattmetre-only", - "port": 0, + "port": 4, "uid": "wattmetrev3-1" } ], diff --git a/data/grid5000/sites/rennes/clusters/paradoxe/nodes/paradoxe-32.json b/data/grid5000/sites/rennes/clusters/paradoxe/nodes/paradoxe-32.json index fc8ace67b9684fbbb375976cbaf831b3bb4d0e41..41f09988b5f6ece8ee4c576bed5d911986d28071 100644 --- a/data/grid5000/sites/rennes/clusters/paradoxe/nodes/paradoxe-32.json +++ b/data/grid5000/sites/rennes/clusters/paradoxe/nodes/paradoxe-32.json @@ -205,7 +205,7 @@ }, { "kind": "wattmetre-only", - "port": 1, + "port": 5, "uid": "wattmetrev3-1" } ], diff --git a/data/grid5000/sites/rennes/pdus/wattmetrev3-1.json b/data/grid5000/sites/rennes/pdus/wattmetrev3-1.json index 2688f8b743a893b4ea777db419ad886148c0669d..e4692980e7d3440a7fef3463767eb07183cbfd79 100644 --- a/data/grid5000/sites/rennes/pdus/wattmetrev3-1.json +++ b/data/grid5000/sites/rennes/pdus/wattmetrev3-1.json @@ -14,8 +14,6 @@ ], "model": "v3", "ports": { - "0": "paradoxe-31", - "1": "paradoxe-32", "10": "paradoxe-5", "11": "paradoxe-6", "12": "paradoxe-25", @@ -42,6 +40,8 @@ "33": "paradoxe-16", "34": "paradoxe-17", "35": "paradoxe-18", + "4": "paradoxe-31", + "5": "paradoxe-32", "6": "paradoxe-1", "7": "paradoxe-2", "8": "paradoxe-3", diff --git a/lib/refrepo/input_loader.rb b/lib/refrepo/input_loader.rb index 59017b0419a4f6e6a578860c65b2fa39a46c1427..e5725d736aa4a7f6c5c919e108859338043886ab 100644 --- a/lib/refrepo/input_loader.rb +++ b/lib/refrepo/input_loader.rb @@ -168,10 +168,10 @@ def add_wattmetre_mapping(h) # Wattmetre ports are numbered by modules serial, then by channels inside module wattmetre_modules.sort.each_with_index do |m, module_idx| channels = m[1] - channels.sort.sort.each_with_index do |c, chan_idx| + channels.sort.sort.each_with_index do |c, _chan_idx| node_uid = c[1] # Each module has 6 channels - port_num = module_idx*6 + chan_idx + port_num = module_idx*6 + c[0]-1 pdu["ports"] ||= {} if pdu['ports'].key?(port_num)