Tony Mack | f593dba | 2013-03-24 13:17:43 -0400 | [diff] [blame] | 1 | from PLC.Nodes import Nodes |
2 | |||||
3 | class 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 |