blob: 96536740f41a92e86f4a32f4ef823b51ae9c59f7 [file] [log] [blame]
Zsolt Harasztib71c2a02016-09-12 13:12:07 -07001#!/usr/bin/env python
2#
Zsolt Haraszti3eb27a52017-01-03 21:56:48 -08003# Copyright 2017 the original author or authors.
Zsolt Harasztib71c2a02016-09-12 13:12:07 -07004#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16#
17
Zsolt Harasztiadbb88d2016-09-12 21:24:57 -070018"""Virtual OLT Hardware Abstraction main entry point"""
Zsolt Harasztib71c2a02016-09-12 13:12:07 -070019
20import argparse
Zsolt Harasztib5d72f12017-01-15 20:44:02 -080021import arrow
Zsolt Harasztid7c7c482016-09-13 00:45:38 -070022import os
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070023import time
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -070024
Zsolt Harasztid7c7c482016-09-13 00:45:38 -070025import yaml
Zsolt Haraszti89a27302016-12-08 16:53:06 -080026from simplejson import dumps
Zsolt Harasztie060a7d2016-09-16 11:08:24 -070027from twisted.internet.defer import inlineCallbacks
Zsolt Harasztib5d72f12017-01-15 20:44:02 -080028from twisted.internet.task import LoopingCall
Zsolt Harasztia17f3ec2016-12-08 14:55:49 -080029from zope.interface import implementer
Zsolt Harasztiadbb88d2016-09-12 21:24:57 -070030
Zsolt Haraszti3bfff662016-12-14 23:41:49 -080031from common.event_bus import EventBusClient
32from common.manhole import Manhole
Zsolt Harasztid70cd4d2016-11-03 23:23:36 -070033from common.structlog_setup import setup_logging
Zsolt Haraszti023ea7c2016-10-16 19:30:34 -070034from common.utils.dockerhelpers import get_my_containers_name
35from common.utils.nethelpers import get_my_primary_interface, \
Khen Nursimulu441dedd2016-10-05 14:44:26 -070036 get_my_primary_local_ipv4
Zsolt Haraszti7eeb2b32016-11-06 14:04:55 -080037from voltha.adapters.loader import AdapterLoader
Zsolt Harasztid70cd4d2016-11-03 23:23:36 -070038from voltha.coordinator import Coordinator
Zsolt Harasztidafefe12016-11-14 21:29:58 -080039from voltha.core.core import VolthaCore
Zsolt Haraszti99509d32016-12-10 16:41:45 -080040from voltha.northbound.diagnostics import Diagnostics
Zsolt Harasztieb435072016-09-23 17:10:49 -070041from voltha.northbound.grpc.grpc_server import VolthaGrpcServer
khenb95fe9a2016-10-05 11:15:25 -070042from voltha.northbound.kafka.kafka_proxy import KafkaProxy, get_kafka_proxy
Zsolt Harasztid70cd4d2016-11-03 23:23:36 -070043from voltha.northbound.rest.health_check import init_rest_service
Zsolt Haraszti66862032016-11-28 14:28:39 -080044from voltha.protos.common_pb2 import LogLevel
Zsolt Harasztia17f3ec2016-12-08 14:55:49 -080045from voltha.registry import registry, IComponent
Zsolt Haraszti89a27302016-12-08 16:53:06 -080046from common.frameio.frameio import FrameIOManager
47
Zsolt Harasztidafefe12016-11-14 21:29:58 -080048
49VERSION = '0.9.0'
khenb95fe9a2016-10-05 11:15:25 -070050
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070051defs = dict(
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070052 config=os.environ.get('CONFIG', './voltha.yml'),
Zsolt Haraszti553826c2016-09-27 10:24:27 -070053 consul=os.environ.get('CONSUL', 'localhost:8500'),
Zsolt Haraszti109db832016-09-16 16:32:36 -070054 external_host_address=os.environ.get('EXTERNAL_HOST_ADDRESS',
55 get_my_primary_local_ipv4()),
Zsolt Harasztide22bbc2016-09-14 15:27:33 -070056 fluentd=os.environ.get('FLUENTD', None),
Zsolt Haraszti553826c2016-09-27 10:24:27 -070057 grpc_port=os.environ.get('GRPC_PORT', 50055),
58 instance_id=os.environ.get('INSTANCE_ID', os.environ.get('HOSTNAME', '1')),
59 internal_host_address=os.environ.get('INTERNAL_HOST_ADDRESS',
60 get_my_primary_local_ipv4()),
61 interface=os.environ.get('INTERFACE', get_my_primary_interface()),
Zsolt Harasztide22bbc2016-09-14 15:27:33 -070062 rest_port=os.environ.get('REST_PORT', 8880),
khenb95fe9a2016-10-05 11:15:25 -070063 kafka=os.environ.get('KAFKA', 'localhost:9092'),
Zsolt Haraszti3bfff662016-12-14 23:41:49 -080064 manhole_port=os.environ.get('MANHOLE_PORT', 12222),
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070065)
Zsolt Harasztib71c2a02016-09-12 13:12:07 -070066
67
68def parse_args():
Zsolt Harasztib71c2a02016-09-12 13:12:07 -070069 parser = argparse.ArgumentParser()
70
Zsolt Haraszti109db832016-09-16 16:32:36 -070071 _help = ('Path to voltha.yml config file (default: %s). '
72 'If relative, it is relative to main.py of voltha.'
73 % defs['config'])
74 parser.add_argument('-c', '--config',
75 dest='config',
76 action='store',
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070077 default=defs['config'],
Zsolt Haraszti109db832016-09-16 16:32:36 -070078 help=_help)
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070079
Zsolt Haraszti109db832016-09-16 16:32:36 -070080 _help = '<hostname>:<port> to consul agent (default: %s)' % defs['consul']
81 parser.add_argument(
82 '-C', '--consul', dest='consul', action='store',
83 default=defs['consul'],
84 help=_help)
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070085
Zsolt Haraszti109db832016-09-16 16:32:36 -070086 _help = ('<hostname> or <ip> at which Voltha is reachable from outside '
87 'the cluster (default: %s)' % defs['external_host_address'])
88 parser.add_argument('-E', '--external-host-address',
89 dest='external_host_address',
90 action='store',
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070091 default=defs['external_host_address'],
Zsolt Haraszti109db832016-09-16 16:32:36 -070092 help=_help)
Zsolt Harasztif2da1d02016-09-13 23:21:35 -070093
Zsolt Haraszti553826c2016-09-27 10:24:27 -070094 _help = ('port number of the GRPC service exposed by voltha (default: %s)'
95 % defs['grpc_port'])
96 parser.add_argument('-g', '--grpc-port',
97 dest='grpc_port',
98 action='store',
99 default=defs['grpc_port'],
100 help=_help)
Khen Nursimulu441dedd2016-10-05 14:44:26 -0700101
Zsolt Haraszti109db832016-09-16 16:32:36 -0700102 _help = ('<hostname>:<port> to fluentd server (default: %s). (If not '
103 'specified (None), the address from the config file is used'
104 % defs['fluentd'])
105 parser.add_argument('-F', '--fluentd',
106 dest='fluentd',
107 action='store',
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700108 default=defs['fluentd'],
Zsolt Haraszti109db832016-09-16 16:32:36 -0700109 help=_help)
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700110
Zsolt Haraszti109db832016-09-16 16:32:36 -0700111 _help = ('<hostname> or <ip> at which Voltha is reachable from inside the'
112 'cluster (default: %s)' % defs['internal_host_address'])
113 parser.add_argument('-H', '--internal-host-address',
114 dest='internal_host_address',
115 action='store',
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700116 default=defs['internal_host_address'],
Zsolt Haraszti109db832016-09-16 16:32:36 -0700117 help=_help)
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700118
Zsolt Haraszti109db832016-09-16 16:32:36 -0700119 _help = ('unique string id of this voltha instance (default: %s)'
Zsolt Haraszti86be6f12016-09-27 09:56:49 -0700120 % defs['instance_id'])
Zsolt Haraszti109db832016-09-16 16:32:36 -0700121 parser.add_argument('-i', '--instance-id',
122 dest='instance_id',
123 action='store',
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700124 default=defs['instance_id'],
Zsolt Haraszti109db832016-09-16 16:32:36 -0700125 help=_help)
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700126
127 # TODO placeholder, not used yet
Zsolt Haraszti109db832016-09-16 16:32:36 -0700128 _help = 'ETH interface to send (default: %s)' % defs['interface']
129 parser.add_argument('-I', '--interface',
130 dest='interface',
131 action='store',
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700132 default=defs['interface'],
Zsolt Haraszti109db832016-09-16 16:32:36 -0700133 help=_help)
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700134
Zsolt Haraszti3bfff662016-12-14 23:41:49 -0800135 _help = 'open ssh manhole at given port'
136 parser.add_argument('-m', '--manhole-port',
137 dest='manhole_port',
138 action='store',
139 type=int,
140 default=None,
141 help=_help)
142
Zsolt Haraszti109db832016-09-16 16:32:36 -0700143 _help = 'omit startup banner log lines'
144 parser.add_argument('-n', '--no-banner',
145 dest='no_banner',
146 action='store_true',
147 default=False,
148 help=_help)
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700149
Zsolt Haraszti109db832016-09-16 16:32:36 -0700150 _help = 'do not emit periodic heartbeat log messages'
151 parser.add_argument('-N', '--no-heartbeat',
152 dest='no_heartbeat',
153 action='store_true',
154 default=False,
155 help=_help)
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700156
Zsolt Haraszti109db832016-09-16 16:32:36 -0700157 _help = ('port number for the rest service (default: %d)'
158 % defs['rest_port'])
159 parser.add_argument('-R', '--rest-port',
160 dest='rest_port',
161 action='store',
162 type=int,
Zsolt Harasztide22bbc2016-09-14 15:27:33 -0700163 default=defs['rest_port'],
Zsolt Haraszti109db832016-09-16 16:32:36 -0700164 help=_help)
Zsolt Harasztide22bbc2016-09-14 15:27:33 -0700165
Zsolt Haraszti109db832016-09-16 16:32:36 -0700166 _help = "suppress debug and info logs"
167 parser.add_argument('-q', '--quiet',
168 dest='quiet',
Zsolt Haraszti1420def2016-09-18 00:07:31 -0700169 action='count',
Zsolt Haraszti109db832016-09-16 16:32:36 -0700170 help=_help)
Zsolt Harasztiadbb88d2016-09-12 21:24:57 -0700171
Zsolt Haraszti109db832016-09-16 16:32:36 -0700172 _help = 'enable verbose logging'
173 parser.add_argument('-v', '--verbose',
174 dest='verbose',
Zsolt Haraszti1420def2016-09-18 00:07:31 -0700175 action='count',
Zsolt Haraszti109db832016-09-16 16:32:36 -0700176 help=_help)
Zsolt Harasztiadbb88d2016-09-12 21:24:57 -0700177
Zsolt Haraszti109db832016-09-16 16:32:36 -0700178 _help = ('use docker container name as voltha instance id'
179 ' (overrides -i/--instance-id option)')
180 parser.add_argument('--instance-id-is-container-name',
181 dest='instance_id_is_container_name',
182 action='store_true',
183 default=False,
184 help=_help)
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700185
khenb95fe9a2016-10-05 11:15:25 -0700186 _help = ('<hostname>:<port> of the kafka broker (default: %s). (If not '
187 'specified (None), the address from the config file is used'
188 % defs['kafka'])
189 parser.add_argument('-K', '--kafka',
190 dest='kafka',
191 action='store',
192 default=defs['kafka'],
193 help=_help)
194
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700195 args = parser.parse_args()
196
197 # post-processing
198
199 if args.instance_id_is_container_name:
200 args.instance_id = get_my_containers_name()
201
202 return args
Zsolt Harasztib71c2a02016-09-12 13:12:07 -0700203
204
Zsolt Harasztid7c7c482016-09-13 00:45:38 -0700205def load_config(args):
206 path = args.config
207 if path.startswith('.'):
208 dir = os.path.dirname(os.path.abspath(__file__))
209 path = os.path.join(dir, path)
210 path = os.path.abspath(path)
211 with open(path) as fd:
212 config = yaml.load(fd)
213 return config
214
215
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700216def print_banner(log):
Zsolt Harasztib71c2a02016-09-12 13:12:07 -0700217 log.info(' _ ______ __ ________ _____ ')
218 log.info('| | / / __ \/ / /_ __/ / / / |')
219 log.info('| | / / / / / / / / / /_/ / /| |')
220 log.info('| |/ / /_/ / /___/ / / __ / ___ |')
221 log.info('|___/\____/_____/_/ /_/ /_/_/ |_|')
Zsolt Haraszti59b7a882016-09-12 14:42:59 -0700222 log.info('(to stop: press Ctrl-C)')
Zsolt Harasztib71c2a02016-09-12 13:12:07 -0700223
224
Zsolt Harasztia17f3ec2016-12-08 14:55:49 -0800225@implementer(IComponent)
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700226class Main(object):
Zsolt Harasztia17f3ec2016-12-08 14:55:49 -0800227
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700228 def __init__(self):
Zsolt Haraszti1420def2016-09-18 00:07:31 -0700229
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700230 self.args = args = parse_args()
231 self.config = load_config(args)
Zsolt Haraszti1420def2016-09-18 00:07:31 -0700232
233 verbosity_adjust = (args.verbose or 0) - (args.quiet or 0)
Zsolt Haraszti109db832016-09-16 16:32:36 -0700234 self.log = setup_logging(self.config.get('logging', {}),
235 args.instance_id,
Zsolt Haraszti1420def2016-09-18 00:07:31 -0700236 verbosity_adjust=verbosity_adjust,
Zsolt Haraszti109db832016-09-16 16:32:36 -0700237 fluentd=args.fluentd)
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700238
Rouzbahan Rashidi-Tabrizi1c3eba82016-10-27 21:47:18 -0400239 # configurable variables from voltha.yml file
240 #self.configurable_vars = self.config.get('Constants', {})
241
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700242 if not args.no_banner:
243 print_banner(self.log)
Zsolt Harasztib71c2a02016-09-12 13:12:07 -0700244
khenb95fe9a2016-10-05 11:15:25 -0700245 self.startup_components()
246
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700247 if not args.no_heartbeat:
248 self.start_heartbeat()
Zsolt Haraszti89a27302016-12-08 16:53:06 -0800249 self.start_kafka_heartbeat(args.instance_id)
Zsolt Harasztib71c2a02016-09-12 13:12:07 -0700250
Zsolt Haraszti3bfff662016-12-14 23:41:49 -0800251 self.manhole = None
252
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700253 def start(self):
254 self.start_reactor() # will not return except Keyboard interrupt
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700255
Zsolt Harasztia17f3ec2016-12-08 14:55:49 -0800256 def stop(self):
257 pass
258
259 def get_args(self):
260 """Allow access to command line args"""
261 return self.args
262
263 def get_config(self):
264 """Allow access to content of config file"""
265 return self.config
266
Zsolt Haraszti7eeb2b32016-11-06 14:04:55 -0800267 @inlineCallbacks
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700268 def startup_components(self):
Khen Nursimulu3c74d3b2016-11-08 15:14:01 -0800269 try:
270 self.log.info('starting-internal-components')
Zsolt Harasztidafefe12016-11-14 21:29:58 -0800271
Zsolt Harasztia17f3ec2016-12-08 14:55:49 -0800272 registry.register('main', self)
273
Zsolt Haraszti66862032016-11-28 14:28:39 -0800274 yield registry.register(
275 'coordinator',
276 Coordinator(
277 internal_host_address=self.args.internal_host_address,
278 external_host_address=self.args.external_host_address,
279 rest_port=self.args.rest_port,
280 instance_id=self.args.instance_id,
281 config=self.config,
282 consul=self.args.consul)
283 ).start()
Zsolt Harasztidafefe12016-11-14 21:29:58 -0800284
Khen Nursimulu3c74d3b2016-11-08 15:14:01 -0800285 init_rest_service(self.args.rest_port)
Zsolt Harasztieb435072016-09-23 17:10:49 -0700286
Zsolt Haraszti66862032016-11-28 14:28:39 -0800287 yield registry.register(
288 'grpc_server',
289 VolthaGrpcServer(self.args.grpc_port)
290 ).start()
Zsolt Harasztieb435072016-09-23 17:10:49 -0700291
Zsolt Haraszti66862032016-11-28 14:28:39 -0800292 yield registry.register(
293 'kafka_proxy',
Zsolt Haraszti99509d32016-12-10 16:41:45 -0800294 KafkaProxy(
295 self.args.consul,
296 self.args.kafka,
297 config=self.config.get('kafka-proxy', {})
298 )
Zsolt Haraszti66862032016-11-28 14:28:39 -0800299 ).start()
300
301 yield registry.register(
302 'core',
303 VolthaCore(
Zsolt Harasztidafefe12016-11-14 21:29:58 -0800304 instance_id=self.args.instance_id,
305 version=VERSION,
Zsolt Haraszti66862032016-11-28 14:28:39 -0800306 log_level=LogLevel.INFO
307 )
308 ).start()
Zsolt Haraszti7eeb2b32016-11-06 14:04:55 -0800309
Zsolt Haraszti66862032016-11-28 14:28:39 -0800310 yield registry.register(
Zsolt Haraszti89a27302016-12-08 16:53:06 -0800311 'frameio',
312 FrameIOManager()
313 ).start()
314
315 yield registry.register(
Zsolt Haraszti66862032016-11-28 14:28:39 -0800316 'adapter_loader',
317 AdapterLoader(config=self.config.get('adapter_loader', {}))
318 ).start()
khenb95fe9a2016-10-05 11:15:25 -0700319
Zsolt Haraszti99509d32016-12-10 16:41:45 -0800320 yield registry.register(
321 'diag',
322 Diagnostics(config=self.config.get('diagnostics', {}))
323 ).start()
324
Zsolt Haraszti3bfff662016-12-14 23:41:49 -0800325 if self.args.manhole_port is not None:
326 self.start_manhole(self.args.manhole_port)
327
Khen Nursimulu3c74d3b2016-11-08 15:14:01 -0800328 self.log.info('started-internal-services')
329
330 except Exception as e:
331 self.log.exception('Failure to start all components {}'.format(e))
332
Zsolt Haraszti3bfff662016-12-14 23:41:49 -0800333 def start_manhole(self, port):
334 self.manhole = Manhole(
335 port,
336 pws=dict(admin='adminpw'),
337 eventbus = EventBusClient(),
338 **registry.components
339 )
340
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700341 @inlineCallbacks
342 def shutdown_components(self):
343 """Execute before the reactor is shut down"""
344 self.log.info('exiting-on-keyboard-interrupt')
Zsolt Harasztidafefe12016-11-14 21:29:58 -0800345 for component in reversed(registry.iterate()):
346 yield component.stop()
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700347
Zsolt Haraszti3300f742017-01-09 01:14:20 -0800348 import threading
349 self.log.info('THREADS:')
350 main_thread = threading.current_thread()
351 for t in threading.enumerate():
352 if t is main_thread:
353 continue
354 if not t.isDaemon():
355 continue
356 self.log.info('joining thread {} {}'.format(
357 t.getName(), "daemon" if t.isDaemon() else "not-daemon"))
358 t.join()
359
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700360 def start_reactor(self):
361 from twisted.internet import reactor
Zsolt Haraszti109db832016-09-16 16:32:36 -0700362 reactor.callWhenRunning(
363 lambda: self.log.info('twisted-reactor-started'))
364 reactor.addSystemEventTrigger('before', 'shutdown',
365 self.shutdown_components)
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700366 reactor.run()
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700367
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700368 def start_heartbeat(self):
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700369
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700370 t0 = time.time()
371 t0s = time.ctime(t0)
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700372
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700373 def heartbeat():
374 self.log.debug(status='up', since=t0s, uptime=time.time() - t0)
Zsolt Harasztif2da1d02016-09-13 23:21:35 -0700375
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700376 lc = LoopingCall(heartbeat)
377 lc.start(10)
Zsolt Harasztib71c2a02016-09-12 13:12:07 -0700378
khenb95fe9a2016-10-05 11:15:25 -0700379 # Temporary function to send a heartbeat message to the external kafka
380 # broker
Zsolt Haraszti89a27302016-12-08 16:53:06 -0800381 def start_kafka_heartbeat(self, instance_id):
khenb95fe9a2016-10-05 11:15:25 -0700382 # For heartbeat we will send a message to a specific "voltha-heartbeat"
383 # topic. The message is a protocol buf
384 # message
Zsolt Harasztib5d72f12017-01-15 20:44:02 -0800385 message = dict(
Zsolt Haraszti89a27302016-12-08 16:53:06 -0800386 type='heartbeat',
387 voltha_instance=instance_id,
388 ip=get_my_primary_local_ipv4()
Zsolt Harasztib5d72f12017-01-15 20:44:02 -0800389 )
390 topic = "voltha.heartbeat"
khenb95fe9a2016-10-05 11:15:25 -0700391
Zsolt Harasztib5d72f12017-01-15 20:44:02 -0800392 def send_msg():
393 message['ts'] = arrow.utcnow().timestamp
394 kafka_proxy.send_message(topic, dumps(message))
395
Khen Nursimulu3c74d3b2016-11-08 15:14:01 -0800396 kafka_proxy = get_kafka_proxy()
397 if kafka_proxy:
Zsolt Harasztib5d72f12017-01-15 20:44:02 -0800398 lc = LoopingCall(send_msg)
Khen Nursimulu3c74d3b2016-11-08 15:14:01 -0800399 lc.start(10)
400 else:
401 self.log.error('Kafka proxy has not been created!')
Khen Nursimulu441dedd2016-10-05 14:44:26 -0700402
Zsolt Haraszti89a27302016-12-08 16:53:06 -0800403
Zsolt Harasztib71c2a02016-09-12 13:12:07 -0700404if __name__ == '__main__':
Zsolt Harasztie060a7d2016-09-16 11:08:24 -0700405 Main().start()