blob: dd68b82ecbee204006e4b4ca71bde603de20f1ce [file] [log] [blame]
Keita NISHIMOTO26dab092018-07-06 09:52:45 +09001/*
2 * Copyright 2018-present Open Networking Foundation
3
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7
8 * http://www.apache.org/licenses/LICENSE-2.0
9
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Keita NISHIMOTOd771cd12018-06-07 08:37:24 +090017package main
18
19import (
Keita NISHIMOTO9708e042018-10-27 09:24:44 +090020 "log"
Matteo Scandolo88e91892018-11-06 16:29:19 -080021
22 "gerrit.opencord.org/voltha-bbsim/common/logger"
23 "gerrit.opencord.org/voltha-bbsim/core"
Keita NISHIMOTOd771cd12018-06-07 08:37:24 +090024)
25
Keita NISHIMOTO3b8b9c02018-10-09 09:40:01 +090026func printBanner() {
Keita NISHIMOTOd771cd12018-06-07 08:37:24 +090027 log.Println(" ________ _______ ________ ")
28 log.Println(" / ____ | / ____ | / ______/ __ ")
29 log.Println(" / /____/ / / /____/ / / /_____ /_/ ")
30 log.Println(" / _____ | / _____ | /______ | __ __________ ")
31 log.Println(" / /____/ / / /____/ / _______/ / / / / __ __ / ")
32 log.Println("/________/ /________/ /________/ /_/ /_/ /_/ /_/ ")
33}
34
Keita NISHIMOTOd771cd12018-06-07 08:37:24 +090035func main() {
Matteo Scandolo88e91892018-11-06 16:29:19 -080036
Keita NISHIMOTO3b8b9c02018-10-09 09:40:01 +090037 // CLI Shows up
Keita NISHIMOTOd771cd12018-06-07 08:37:24 +090038 printBanner()
Keita NISHIMOTO9708e042018-10-27 09:24:44 +090039 opt := core.GetOptions()
Mahir Gunyel09183342019-01-29 14:26:50 -080040 logger.Setup(opt.KafkaBroker, opt.Debuglvl)
Keita NISHIMOTO3b8b9c02018-10-09 09:40:01 +090041
Keita NISHIMOTO9708e042018-10-27 09:24:44 +090042 mediator := core.NewMediator(opt)
Matteo Scandolo88e91892018-11-06 16:29:19 -080043
Keita NISHIMOTO9708e042018-10-27 09:24:44 +090044 mediator.Start()
Keita NISHIMOTOd771cd12018-06-07 08:37:24 +090045}