-
-config = Config()
-api = config.api
-auth = api.auth
-
-try: boot_states = api.GetBootStates(auth)
-except: boot_states = [u'boot', u'dbg', u'inst', u'new', u'rcnf', u'rins']
-
-try: roles = [role['role_id'] for role in api.GetRoles(auth)]
-except: roles = [10,20,30,40]
-
-try: methods = api.GetNetworkMethods(auth)
-except: methods = [u'static', u'dhcp', u'proxy', u'tap', u'ipmi', u'unknown']
-
-try: key_types = api.GetKeyTypes(auth)
-except: key_types = [u'ssh']
-
-try:types = api.GetNetworkTypes(auth)
-except: types = [u'ipv4']
-
-try:
- attribute_types = [a['attribute_type_id'] for a in api.GetSliceAttributeTypes(auth)]
- attribute_types = filter(lambda x: x['name'] != 'initscript', attribute_types)
-
-except:
- attribute_types = range(6,20)
-
-try:
- sites = api.GetSites(auth, None, ['login_base'])
- login_bases = [site['login_base'] for site in sites]
-except:
- login_bases = ['pl']
+boot_states = [u'boot', u'dbg', u'inst', u'new', u'rcnf', u'rins']
+roles = [10,20,30,40]
+methods = [u'static', u'dhcp', u'proxy', u'tap', u'ipmi', u'unknown']
+key_types = [u'ssh']
+types = [u'ipv4']
+attribute_types = range(6,20)
+login_bases = ['pl']