blob: 44b0103b50de353a1204516cc60dd0672c5b4f35 [file] [log] [blame]
Gopinath Taget5e49fe32018-06-25 17:02:05 -07001{{- /*
2Copyright 2017-present Open Networking Foundation
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/ -}}
16
Gopinath Taget5e49fe32018-06-25 17:02:05 -070017{{- define "voltha-vcore.cmd" }}
18- "voltha/voltha/main.py"
Matt Jeanneret7aeb86e2018-11-10 14:12:50 -050019- "--etcd={{ .Values.etcdReleaseName }}.default.svc.cluster.local:2379"
Luca Prete78f8b082018-06-26 10:49:34 +020020- "--kafka={{ .Values.kafkaReleaseName }}.default.svc.cluster.local"
Gopinath Taget5e49fe32018-06-25 17:02:05 -070021- "--rest-port=8880"
22- "--grpc-port=50556"
23- "--interface=eth1"
24- "--backend=etcd"
25- "--pon-subnet=10.38.0.0/12"
26- "--ponsim-comm=grpc"
Gopinath Taget7f357cf2018-07-03 12:34:38 -070027- "--core-number-extractor=^.*-([0-9]+)_.*$"
Gopinath Taget5e49fe32018-06-25 17:02:05 -070028{{- end }}
Zack Williamsc8c32e02018-11-04 14:43:21 -070029
30{{- define "logconfig.yml" }}
31version: 1
32
33formatters:
34 default:
35 format: '%(asctime)s.%(msecs)03d %(levelname)-8s %(threadName)s %(module)s.%(funcName)s %(message)s'
36 datefmt: '%Y%m%dT%H%M%S'
37
38handlers:
39 console:
40 class : logging.StreamHandler
41 formatter: default
42 stream: ext://sys.stdout
43 localRotatingFile:
44 class: logging.handlers.RotatingFileHandler
45 filename: voltha.log
46 formatter: default
47 maxBytes: 2097152
48 backupCount: 10
49 kafka:
50 class: kafkaloghandler.KafkaLogHandler
51 bootstrap_servers:
52 - "cord-kafka.default:9092"
53 topic: "voltha.log.{{ .KafkaTopic }}"
54
55loggers:
56 '':
57 handlers: [console, localRotatingFile, kafka]
58 level: DEBUG
59 propagate: False
60{{- end }}