- make Add() calling convention consistent among all functions that
[plcapi.git] / PLC / PCUs.py
index f591ab1..81c01c4 100644 (file)
@@ -4,7 +4,7 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: PCUs.py,v 1.3 2006/10/11 20:48:58 mlhuang Exp $
+# $Id: PCUs.py,v 1.4 2006/10/20 17:56:36 mlhuang Exp $
 #
 
 from PLC.Faults import *
@@ -25,9 +25,9 @@ class PCU(Row):
     join_tables = ['pcu_node']
     fields = {
         'pcu_id': Parameter(int, "PCU identifier"),
-        'site_id': Parameter(int, "Identifier of site where PCU is located"),
+        'site_id': Parameter(int, "Identifier of site where PCU is located", optional = False),
         'hostname': Parameter(str, "PCU hostname", max = 254),
-        'ip': Parameter(str, "PCU IP address", max = 254),
+        'ip': Parameter(str, "PCU IP address", max = 254, optional = False),
         'protocol': Parameter(str, "PCU protocol, e.g. ssh, https, telnet", max = 16),
         'username': Parameter(str, "PCU username", max = 254),
         'password': Parameter(str, "PCU username", max = 254),