Run a config with two Qemu emulated nodes
[tests.git] / system / config_wifilab.py
index def6f56..7e9da6b 100644 (file)
@@ -12,22 +12,51 @@ def nodes():
     return [ {'node_fields': {'hostname': 'wlab02.inria.fr',
                               'model':'Dell Latitude 830'},
               'owner' : 'pi',
-              'nodegroups' : 'wireless',
+              'nodegroups' : 'wifi',
               'network_fields': { 'method':'dhcp',
                                   'type' : 'ipv4',
                                   'ip':'138.96.250.162',
                                   },
               'extra_interfaces' : [ { 'network_fields' : 
-                                       { 'method' : 'dhcp',
+                                       { 'method' : 'static',
                                          'type' : 'ipv4',
-                                         'ip' : '138.96.250.212' },
+                                         'mac' : '00:1B:77:70:F4:C6',
+                                         'ip' : '138.96.250.212',
+                                         'network' : '138.96.0.0',
+                                         'dns1': '138.96.0.10',
+                                         'dns2': '138.96.0.11',
+                                         'broadcast' : '138.96.255.255',
+                                         'netmask' : '255.255.0.0',
+                                         'gateway' : '138.96.248.250',
+                                         },
                                        'attributes' : 
-                                       { 'hwaddr' : '00:1c:bf:51:2b:fd',
-                                         'essid' : 'guest-inria-sophia',
+                                       { 'essid' : 'guest-inria-sophia',
+                                         'ifname' : 'wlan0',
                                          },
                                        },
                                      ],
               },
+             {'node_fields': {'hostname': 'wlab17.inria.fr',
+                              'model':'Dell Latitude 830'},
+              'owner' : 'pi',
+              'nodegroups' : 'wifi',
+              'network_fields': { 'method':'dhcp',
+                                  'type' : 'ipv4',
+                                  'ip':'138.96.250.177',
+                                  },
+              'extra_interfaces' : [ { 'network_fields' : 
+                                       { 'method' : 'dhcp',
+                                         'type' : 'ipv4',
+                                         'mac' : '00:1c:bf:51:3c:19',
+                                         'ip' : '138.96.250.207',
+                                         },
+                                       'attributes' : 
+                                       { 'essid' : 'guest-inria-sophia',
+                                         'ifname' : 'wlan0',
+                                         },
+                                       },
+                                     ],
+              }
              ]
 
 def all_nodenames ():
@@ -154,22 +183,22 @@ def slices ():
 
 def plc () :
     return { 
-        'name' : 'onelab',
+        'name' : 'wifilab',
         # as of yet, not sure we can handle foreign hosts, but this is required though
-        'hostname' : 'localhost',
+        'hostname' : 'wlab24.inria.fr',
         # set these two items to run within a vserver
         # 'vservername': '138.96.250.131'
         # 'vserverip': '138.96.250.131'
         'role' : 'root',
-        'PLC_ROOT_USER' : 'root@test.one-lab.org',
+        'PLC_ROOT_USER' : 'root@wlab24.inria.fr',
         'PLC_ROOT_PASSWORD' : 'test++',
-        'PLC_NAME' : 'TestLab',
+        'PLC_NAME' : 'WifiLab',
         'PLC_MAIL_ENABLED':'true',
-        'PLC_MAIL_SUPPORT_ADDRESS' : 'mohamed-amine.chaoui@sophia.inria.fr',
-        'PLC_DB_HOST' : 'test.one-lab.org',
-        'PLC_API_HOST' : 'test.one-lab.org',
-        'PLC_WWW_HOST' : 'test.one-lab.org',
-        'PLC_BOOT_HOST' : 'test.one-lab.org',
+        'PLC_MAIL_SUPPORT_ADDRESS' : 'thierry.parmentelat@sophia.inria.fr',
+        'PLC_DB_HOST' : 'wlab24.inria.fr',
+        'PLC_API_HOST' : 'wlab24.inria.fr',
+        'PLC_WWW_HOST' : 'wlab24.inria.fr',
+        'PLC_BOOT_HOST' : 'wlab24.inria.fr',
         'PLC_NET_DNS1' : '138.96.0.10',
         'PLC_NET_DNS2' : '138.96.0.11',
         'sites' : sites(),