X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FPCUs.py;h=81c01c4180d92f845feaeba14c3db07ffb6c65e0;hb=ed7fa1ebf97ec2f88f18f8fa538e46c6ae9525c4;hp=f591ab1864d75d0c319a4c84db0759ad385755d3;hpb=7e36d319170a9ec7c4f1f31c76087c2b671dd7a7;p=plcapi.git diff --git a/PLC/PCUs.py b/PLC/PCUs.py index f591ab1..81c01c4 100644 --- a/PLC/PCUs.py +++ b/PLC/PCUs.py @@ -4,7 +4,7 @@ # Mark Huang # 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),