X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fplc%2Fsfa-import-plc.py;h=0350bbb02291552be301d115cd15b4812db8cd2e;hb=f3d825457ff4881b8c9658967f8ed159a01dfcaa;hp=603f2960b57537b9b6379e60d7c0a87cca9417ad;hpb=b55a7407c2efd19af26c8165a56435ad5fc50389;p=sfa.git diff --git a/sfa/plc/sfa-import-plc.py b/sfa/plc/sfa-import-plc.py index 603f2960..0350bbb0 100755 --- a/sfa/plc/sfa-import-plc.py +++ b/sfa/plc/sfa-import-plc.py @@ -87,7 +87,7 @@ def main(): # create root authority sfaImporter.create_top_level_auth_records(root_auth) - if not root_auth == interface_hrn + if not root_auth == interface_hrn: sfaImporter.create_top_level_auth_records(interface_hrn) trace("Import: adding " + interface_hrn + " to trusted list", logger) @@ -203,7 +203,9 @@ def main(): for (record_hrn, type) in existing_records.keys(): record = existing_records[(record_hrn, type)] # if this is the interface name dont do anything - if record_hrn == interface_hrn or record['peer_authority']: + if record_hrn == interface_hrn or \ + record_hrn == root_auth or \ + record['peer_authority']: continue # dont delete vini's internet2 placeholdder record # normally this would be deleted becuase it does not have a plc record