blob: 3bce228f7fcf980e91a172349ad1b9e4429b76bb [file] [log] [blame]
Tony Mackf593dba2013-03-24 13:17:43 -04001from PLC.Nodes import Nodes
2
3class SliverImporter:
4
5 def __init__(self, importer):
6 self.importer = importer
7 self.slivers = {}
8
9 def run(self):
10 nodes = Nodes(self.importer.api)
11 for node in nodes:
12 slice_id in node['slice_ids']:
13 self.slivers[(slice['slice_id'], node['node_id'])] = slice
14