X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fplc%2Fsfa-import-plc.py;h=cf2fa4ab71f960106804eb9e3c2c04ab77304451;hb=3d7237fa0b5f2b4a60cb97c7fb3b6aecfd94558a;hp=11a259f819b728d81cabbe2427feffa5ed1467cb;hpb=5ac003be7734b5d9a7e8076cf59452da35ca5078;p=sfa.git diff --git a/sfa/plc/sfa-import-plc.py b/sfa/plc/sfa-import-plc.py index 11a259f8..cf2fa4ab 100755 --- a/sfa/plc/sfa-import-plc.py +++ b/sfa/plc/sfa-import-plc.py @@ -4,8 +4,8 @@ ### $URL$ # ## -# Import PLC records into the Geni database. It is indended that this tool be -# run once to create Geni records that reflect the current state of the +# Import PLC records into the SFA database. It is indended that this tool be +# run once to create SFA records that reflect the current state of the # planetlab database. # # The import tool assumes that the existing PLC hierarchy should all be part @@ -23,14 +23,13 @@ import tempfile import logging.handlers import logging from sfa.util.record import * -from sfa.util.genitable import GeniTable -from sfa.util.misc import * +from sfa.util.table import SfaTable +from sfa.util.namespace import * from sfa.util.config import Config from sfa.trust.certificate import convert_public_key, Keypair from sfa.trust.trustedroot import * from sfa.trust.hierarchy import * from sfa.plc.api import * -from sfa.util.geniclient import * from sfa.trust.gid import create_uuid from sfa.plc.sfaImport import * from sfa.util.report import trace, error @@ -82,7 +81,7 @@ def main(): plc_auth = sfaImporter.plc_auth AuthHierarchy = sfaImporter.AuthHierarchy TrustedRoots = sfaImporter.TrustedRoots - table = GeniTable() + table = SfaTable() if not table.exists(): table.create()