import script will create top level auth keys if they dont exist
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Sun, 20 Nov 2011 22:23:05 +0000 (17:23 -0500)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Sun, 20 Nov 2011 22:23:05 +0000 (17:23 -0500)
sfa/importer/sfa-import-plc.py
sfa/importer/sfaImport.py

index 6873f48..15a5bc6 100755 (executable)
@@ -80,9 +80,7 @@ def main():
        table.create()
 
     # create root authority 
-    sfaImporter.create_top_level_auth_records(root_auth)
-    if not root_auth == interface_hrn:
-        sfaImporter.create_top_level_auth_records(interface_hrn)
+    sfaImporter.create_top_level_auth_records(interface_hrn)
 
     # create s user record for the slice manager
     sfaImporter.create_sm_client_record()
index 4c5b5c7..568fce8 100644 (file)
@@ -75,6 +75,8 @@ class sfaImport:
         if not parent_hrn == hrn:
             self.create_top_level_auth_records(parent_hrn)
 
+        # enxure key and cert exists:
+        self.AuthHierarchy.create_top_level_auth(hrn)    
         # create the db record if it doesnt already exist    
         auth_info = self.AuthHierarchy.get_auth_info(hrn)
         table = SfaTable()