Commit dbb260a5 authored by Emile Morel's avatar Emile Morel

[nancy] add switch for graphite on graphite.rb

parent 0101facd
...@@ -71,6 +71,8 @@ ...@@ -71,6 +71,8 @@
"mountable": true, "mountable": true,
"mounted": false, "mounted": false,
"rate": null, "rate": null,
"switch": "sgraphene4",
"switch_port": 47,
"vendor": "intel", "vendor": "intel",
"version": "I350" "version": "I350"
}, },
...@@ -85,6 +87,8 @@ ...@@ -85,6 +87,8 @@
"mountable": true, "mountable": true,
"mounted": false, "mounted": false,
"rate": null, "rate": null,
"switch": "sgraphene4",
"switch_port": 48,
"vendor": "intel", "vendor": "intel",
"version": "I350" "version": "I350"
}, },
......
...@@ -71,6 +71,8 @@ ...@@ -71,6 +71,8 @@
"mountable": true, "mountable": true,
"mounted": false, "mounted": false,
"rate": null, "rate": null,
"switch": "sgraphene4",
"switch_port": 45,
"vendor": "intel", "vendor": "intel",
"version": "I350" "version": "I350"
}, },
...@@ -85,6 +87,8 @@ ...@@ -85,6 +87,8 @@
"mountable": true, "mountable": true,
"mounted": false, "mounted": false,
"rate": null, "rate": null,
"switch": "sgraphene4",
"switch_port": 46,
"vendor": "intel", "vendor": "intel",
"version": "I350" "version": "I350"
}, },
......
...@@ -71,6 +71,8 @@ ...@@ -71,6 +71,8 @@
"mountable": true, "mountable": true,
"mounted": false, "mounted": false,
"rate": null, "rate": null,
"switch": "sgraphene4",
"switch_port": 43,
"vendor": "intel", "vendor": "intel",
"version": "I350" "version": "I350"
}, },
...@@ -85,6 +87,8 @@ ...@@ -85,6 +87,8 @@
"mountable": true, "mountable": true,
"mounted": false, "mounted": false,
"rate": null, "rate": null,
"switch": "sgraphene4",
"switch_port": 44,
"vendor": "intel", "vendor": "intel",
"version": "I350" "version": "I350"
}, },
......
...@@ -71,6 +71,8 @@ ...@@ -71,6 +71,8 @@
"mountable": true, "mountable": true,
"mounted": false, "mounted": false,
"rate": null, "rate": null,
"switch": "sgraphene4",
"switch_port": 41,
"vendor": "intel", "vendor": "intel",
"version": "I350" "version": "I350"
}, },
...@@ -85,6 +87,8 @@ ...@@ -85,6 +87,8 @@
"mountable": true, "mountable": true,
"mounted": false, "mounted": false,
"rate": null, "rate": null,
"switch": "sgraphene4",
"switch_port": 42,
"vendor": "intel", "vendor": "intel",
"version": "I350" "version": "I350"
}, },
......
...@@ -114,6 +114,8 @@ site :nancy do |site_uid| ...@@ -114,6 +114,8 @@ site :nancy do |site_uid|
:device => "eth2", :device => "eth2",
:vendor => "intel", :vendor => "intel",
:version => "I350", :version => "I350",
:switch => lookup('graphite_manual', node_uid, 'network_interfaces', 'eth2', 'switch_name'),
:switch_port => lookup('graphite_manual', node_uid, 'network_interfaces', 'eth2', 'switch_port'),
:driver => lookup('graphite_generated', node_uid, 'network_interfaces', 'eth2', 'driver'), :driver => lookup('graphite_generated', node_uid, 'network_interfaces', 'eth2', 'driver'),
:mac => lookup('graphite_generated', node_uid, 'network_interfaces', 'eth2', 'mac') :mac => lookup('graphite_generated', node_uid, 'network_interfaces', 'eth2', 'mac')
}, },
...@@ -128,6 +130,8 @@ site :nancy do |site_uid| ...@@ -128,6 +130,8 @@ site :nancy do |site_uid|
:device => "eth3", :device => "eth3",
:vendor => "intel", :vendor => "intel",
:version => "I350", :version => "I350",
:switch => lookup('graphite_manual', node_uid, 'network_interfaces', 'eth3', 'switch_name'),
:switch_port => lookup('graphite_manual', node_uid, 'network_interfaces', 'eth3', 'switch_port'),
:driver => lookup('graphite_generated', node_uid, 'network_interfaces', 'eth3', 'driver'), :driver => lookup('graphite_generated', node_uid, 'network_interfaces', 'eth3', 'driver'),
:mac => lookup('graphite_generated', node_uid, 'network_interfaces', 'eth3', 'mac') :mac => lookup('graphite_generated', node_uid, 'network_interfaces', 'eth3', 'mac')
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment