X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=db-config;h=a7733203a4d74d7bc8c4b1d134dc8cfa0c48bc12;hb=56fd0f1379b31ac8d8c87b5f8460bc5ce6f1d799;hp=b98fcd464c5cce691352444535afab8234c0b785;hpb=90065d595bdfe836d3b585805bb2c950f6cee9b5;p=myplc.git diff --git a/db-config b/db-config index b98fcd4..a773320 100755 --- a/db-config +++ b/db-config @@ -7,7 +7,7 @@ # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # -# $Id: db-config,v 1.19 2007/02/01 21:09:22 faiyaza Exp $ +# $Id: db-config,v 1.22 2007/02/02 23:40:22 mlhuang Exp $ # from plc_config import PLCConfiguration @@ -54,7 +54,7 @@ def main(): 'name': plc['name'] + " Central", 'abbreviated_name': plc['name'], 'login_base': plc['slice_prefix'], - 'is_public': False, + 'is_public': True, 'url': url, 'max_slices': 100 } @@ -522,10 +522,10 @@ def main(): {'name': "net_max_rate", 'description': "Maximum bandwidth (kbps)", 'min_role_id': 10}, - {'name': "net_i2min_rate", + {'name': "net_i2_min_rate", 'description': "Minimum bandwidth over I2 routes (kbps)", 'min_role_id': 10}, - {'name': "net_i2max_rate", + {'name': "net_i2_max_rate", 'description': "Maximum bandwidth over I2 routes (kbps)", 'min_role_id': 10}, {'name': "net_max_kbyte", @@ -534,20 +534,19 @@ def main(): {'name': "net_thresh_kbyte", 'description': "KByte limit before warning and throttling.", 'min_role_id': 10}, - {'name': "net_i2max_kbyte", + {'name': "net_i2_max_kbyte", 'description': "Maximum daily network Tx KByte limit to I2 hosts.", 'min_role_id': 10}, - {'name': "net_i2thresh_kbyte", + {'name': "net_i2_thresh_kbyte", 'description': "KByte limit to I2 hosts before warning and throttling.", 'min_role_id': 10}, {'name': "net_share", 'description': "Number of bandwidth shares", 'min_role_id': 10}, - {'name': "net_i2share", + {'name': "net_i2_share", 'description': "Number of bandwidth shares over I2 routes", 'min_role_id': 10}, - # Disk quota {'name': "disk_max", 'description': "Disk quota (1k disk blocks)", @@ -582,17 +581,6 @@ def main(): else: UpdateSliceAttributeType(default_attribute_type['name'], default_attribute_type) - # Get contents of SSL public certificate used for signing slice tickets - try: - plc_ticket_pubkey = "" - for line in file(plc_ma_sa['ca_ssl_key_pub']): - # Skip comments - if line[0:5] != "-----": - # XXX The embedded newlines matter, do not strip()! - plc_ticket_pubkey += line - except: - plc_ticket_pubkey = '%KEY%' - # Create/update system slices legacy_slices = [ # XXX Required for old Node Manager @@ -604,7 +592,7 @@ def main(): 'expires': sys.maxint, 'attributes': [('plc_slice_type', "VServerSlice"), ('plc_agent_version', "1.0"), - ('plc_ticket_pubkey', plc_ticket_pubkey)]}, + ('plc_ticket_pubkey', "")]}, # XXX Required for old Node Manager {'name': "pl_conf_vserverslice",