X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tools%2Fslice_attributes.py;h=32fa63f5d05b96e3df91ddb7721c65d5a04bd5cc;hb=cdd5c46a279a0bb19e810d09c7061df27a75a564;hp=6c21bb3606624b57c6a0dc8a3f87e489b08ec009;hpb=125a8ef10c36b27e18ca8583a555b85332a9e23f;p=plcapi.git diff --git a/tools/slice_attributes.py b/tools/slice_attributes.py index 6c21bb3..32fa63f 100755 --- a/tools/slice_attributes.py +++ b/tools/slice_attributes.py @@ -6,7 +6,7 @@ # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # -# $Id: slice_attributes.py,v 1.2 2007/02/03 00:43:37 mlhuang Exp $ +# $Id: slice_attributes.py,v 1.3 2007/02/03 21:42:39 mlhuang Exp $ # import re @@ -98,6 +98,17 @@ for slice_attribute in GetSliceAttributes({'name': rename.keys()}): # Delete the old attribute DeleteSliceAttribute(id) +# Update plc_ticket_pubkey attribute +for slice_attribute in GetSliceAttributes({'name': "plc_ticket_pubkey"}): + id = slice_attribute['slice_attribute_id'] + + UpdateSliceAttribute(id, """ +MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDKXa72MEKDAnVyzEpKOB1ot2eW +xG/TG2aa7q/2oy1xf5XMmU9H9uKwO+GoUeinp1BSxgkVRF0VhEGGaqKR9kYQzX0k +ht4+P2hAr+UyU4cp0NxV4xfmyAbrNKuHVjawMUCu5BH0IkBUC/89ckxk71oROnak +FbI7ojUezSGr4aVabQIDAQAB +""".lstrip()) + # Delete _deleted and deprecated slice attributes and types for attribute_type in GetSliceAttributeTypes(): id = attribute_type['attribute_type_id']