# 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 *
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),