equal
deleted
inserted
replaced
10 from pvl.invoke import merge |
10 from pvl.invoke import merge |
11 |
11 |
12 import collections |
12 import collections |
13 import logging; log = logging.getLogger('pvl.hosts-graph') |
13 import logging; log = logging.getLogger('pvl.hosts-graph') |
14 import optparse |
14 import optparse |
15 |
|
16 COLOR_VLANS = { |
|
17 1: 'grey', # pvl-lan |
|
18 2: 'blue', # pvl-lan2 |
|
19 3: 'red', # pvl-san |
|
20 4: 'green', # pvl-veturi |
|
21 7: 'orange', # pvl-ranssi |
|
22 8: 'yellow', # pvl-mgmt |
|
23 10: 'brown', # pvl-public |
|
24 100: 'navyblue', # pvl-test |
|
25 103: 'red4', # pvl-test-san |
|
26 104: 'red2', # pvl-ganeti |
|
27 192: 'purple', # paivola-services |
|
28 255: 'magenta', # pvl-sonera |
|
29 } |
|
30 |
15 |
31 class ParseError (Exception) : |
16 class ParseError (Exception) : |
32 def __init__ (self, file, line, msg) : |
17 def __init__ (self, file, line, msg) : |
33 self.file = file |
18 self.file = file |
34 self.line = line |
19 self.line = line |