From: Tony Mack Date: Fri, 16 Oct 2009 21:27:47 +0000 (+0000) Subject: dont delete vini's interent2 placeholder record X-Git-Tag: sfa-0.9-6~159 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=fc8650f6898dd30f6bc797dd682a834b0019fedd;p=sfa.git dont delete vini's interent2 placeholder record --- diff --git a/sfa/plc/sfa-import-plc.py b/sfa/plc/sfa-import-plc.py index 8e0b3086..e0de5f4b 100755 --- a/sfa/plc/sfa-import-plc.py +++ b/sfa/plc/sfa-import-plc.py @@ -205,8 +205,13 @@ def main(): record = existing_records[(record_hrn, type)] # if this is the interface name dont do anything if record_hrn == import_auth or record['peer_authority']: - continue - + continue + # dont delete vini's internet2 placeholdder record + # normally this would be deleted becuase it does not have a plc record + if ".vini" in import_auth and import_auth.endswith('vini') and \ + record_hrn.endswith("internet2"): + continue + found = False if type == 'authority':