Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 8bf36f26 authored by BERARD Benjamin's avatar BERARD Benjamin
Browse files

[servan/fpga] add rate to fix mkmotd on grenoble and fix dhcp bind filed

parent 0e399cec
No related branches found
No related tags found
1 merge request!368[servan/fpga] add rate to fix mkmotd on grenoble and fix dhcp bind filed
Pipeline #501041 passed
...@@ -286,6 +286,7 @@ ...@@ -286,6 +286,7 @@
"mountable": true, "mountable": true,
"mounted": false, "mounted": false,
"network_address": "servan-1-fpga0.grenoble.grid5000.fr", "network_address": "servan-1-fpga0.grenoble.grid5000.fr",
"rate": 25000000000,
"switch": "gw", "switch": "gw",
"switch_port": "ethernet1/1/97" "switch_port": "ethernet1/1/97"
}, },
...@@ -301,6 +302,7 @@ ...@@ -301,6 +302,7 @@
"mountable": true, "mountable": true,
"mounted": false, "mounted": false,
"network_address": "servan-1-fpga1.grenoble.grid5000.fr", "network_address": "servan-1-fpga1.grenoble.grid5000.fr",
"rate": 25000000000,
"switch": "gw", "switch": "gw",
"switch_port": "ethernet1/1/98" "switch_port": "ethernet1/1/98"
} }
......
...@@ -286,6 +286,7 @@ ...@@ -286,6 +286,7 @@
"mountable": true, "mountable": true,
"mounted": false, "mounted": false,
"network_address": "servan-2-fpga0.grenoble.grid5000.fr", "network_address": "servan-2-fpga0.grenoble.grid5000.fr",
"rate": 25000000000,
"switch": "gw", "switch": "gw",
"switch_port": "ethernet1/1/99" "switch_port": "ethernet1/1/99"
}, },
...@@ -301,6 +302,7 @@ ...@@ -301,6 +302,7 @@
"mountable": true, "mountable": true,
"mounted": false, "mounted": false,
"network_address": "servan-2-fpga1.grenoble.grid5000.fr", "network_address": "servan-2-fpga1.grenoble.grid5000.fr",
"rate": 25000000000,
"switch": "gw", "switch": "gw",
"switch_port": "ethernet1/1/100" "switch_port": "ethernet1/1/100"
} }
......
...@@ -46,6 +46,7 @@ nodes: ...@@ -46,6 +46,7 @@ nodes:
mountable: true mountable: true
mounted: false mounted: false
kavlan: true kavlan: true
rate: 25000000000
fpga1: fpga1:
interface: Ethernet interface: Ethernet
management: false management: false
...@@ -53,6 +54,7 @@ nodes: ...@@ -53,6 +54,7 @@ nodes:
mountable: true mountable: true
mounted: false mounted: false
kavlan: true kavlan: true
rate: 25000000000
storage_devices: storage_devices:
pci-0000:c3:00.0-nvme-1: pci-0000:c3:00.0-nvme-1:
interface: NVME interface: NVME
......
...@@ -4,7 +4,7 @@ def get_network_info(node_hash, network_interface) ...@@ -4,7 +4,7 @@ def get_network_info(node_hash, network_interface)
network_infos = [] network_infos = []
if network_interface == "eth" then if network_interface == "eth" then
adapters = node_network_adapters.select { |i| i['device'] =~ /(eth|fpga)/ and (i['mountable'] or i['mounted'])} adapters = node_network_adapters.select { |i| i['device'] =~ /eth/ and (i['mountable'] or i['mounted'])}
if adapters.length > 0 if adapters.length > 0
if not adapters[0]['mounted'] if not adapters[0]['mounted']
raise "#{node_hash['uid']}: inconsistency: this code assumes first mountable ethernet adapter should be mounted: #{node_network_adapters}" raise "#{node_hash['uid']}: inconsistency: this code assumes first mountable ethernet adapter should be mounted: #{node_network_adapters}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment