From: Mark Huang Date: Wed, 11 Oct 2006 19:52:19 +0000 (+0000) Subject: - add pcu_ids X-Git-Tag: pycurl-7_13_1~603 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=dd368128bb582042c294f045dcdfa36703ac78cf;p=plcapi.git - add pcu_ids --- diff --git a/PLC/Sites.py b/PLC/Sites.py index b961ba7c..cb9c54a0 100644 --- a/PLC/Sites.py +++ b/PLC/Sites.py @@ -37,7 +37,7 @@ class Site(Row): 'person_ids': Parameter([int], "List of account identifiers", ro = True), 'slice_ids': Parameter([int], "List of slice identifiers", ro = True), 'address_ids': Parameter([int], "List of address identifiers", ro = True), - # 'pcu_ids': Parameter([int], "List of PCU identifiers", ro = True), + 'pcu_ids': Parameter([int], "List of PCU identifiers", ro = True), 'node_ids': Parameter([int], "List of site node identifiers", ro = True), } @@ -168,9 +168,9 @@ class Site(Row): slice.delete(commit = False) # Delete all site PCUs - # pcus = PCUs(self.api, self['pcu_ids']) - # for pcu in pcus.values(): - # pcu.delete(commit = False) + pcus = PCUs(self.api, self['pcu_ids']) + for pcu in pcus.values(): + pcu.delete(commit = False) # Delete all site nodes nodes = Nodes(self.api, self['node_ids'])