changed 'plc' attribute to plural 'plcs'. Some object may belong to more than 1 plc
authorTony Mack <tmack@cs.princeton.edu>
Tue, 8 Apr 2008 18:13:32 +0000 (18:13 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Tue, 8 Apr 2008 18:13:32 +0000 (18:13 +0000)
qaapi/qa/Nodes.py
qaapi/qa/Persons.py
qaapi/qa/Sites.py
qaapi/qa/Slices.py

index 8817d4a..379f14a 100644 (file)
@@ -7,12 +7,13 @@ from Table import Table
 class Node(dict, Remote):
 
     fields = {
-       'plc': None,
+       'plcs': ['TestPLC'],
        'hostname': None,               # Node Hostname
        'host': 'localhost',            # host where node lives
        'redir_port': None,             # Port on host where ssh is redirected to virtual node
        'vserver': None,                # vserver where this node lives
        'type': 'vm',                   # type of node
+       'model': '/minhw',
        'nodenetworks': [],             # node networks
        'homedir': '/var/VirtualMachines/',
        'rootkey': None                  # path to root ssh key
index 8012a1e..2fe2592 100644 (file)
@@ -4,7 +4,7 @@ from Table import Table
 class Person(dict):
 
      fields = {
-       'plc': None,
+       'plcs': ['TestPLC'],
        'first_name': None,
        'last_name': None,
        'password': None,
index 406895b..0f441c7 100644 (file)
@@ -4,7 +4,7 @@ from Table import Table
 class Site(dict):
 
      fields = {
-       'plc': 'TestPLC',
+       'plcs': ['TestPLC'],
        'name': None,
        'login_base': None,
        'enabled': True,
index 60b78ec..182fdca 100644 (file)
@@ -1,10 +1,11 @@
 import os
+from Remote import Remote
 from Table import Table
 
-class Slice(dict):
+class Slice(dict, Remote):
 
      fields = {
-       'plc': None,
+       'plcs': ['TestPLC'],
        'name': None,
        'instantiation': 'plc-instantiated',
        'max_nodes': 1000,