From fc8650f6898dd30f6bc797dd682a834b0019fedd Mon Sep 17 00:00:00 2001
From: Tony Mack <tmack@cs.princeton.edu>
Date: Fri, 16 Oct 2009 21:27:47 +0000
Subject: [PATCH] dont delete vini's interent2 placeholder record

---
 sfa/plc/sfa-import-plc.py | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

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':    
-- 
2.47.0