blob: ec0eca5f0f2d18c436d899d89697fc6405e6d6d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
### Autogenerated by service_serial-proxy.py ###
# See https://www.conserver.com/docs/conserver.cf.man.html for additional options
config * {
}
default * {
motd "VyOS Console Server"
# The character '&' in logfile names are substituted with the console name.
logfile /var/log/conserver/&.log;
timestamp "30m";
rw *;
}
##
## list of consoles we serve
##
{% for key, value in device.items() %}
{# Depending on our USB serial console we could require a path adjustment #}
{% set path = '/dev' if key.startswith('ttyS') else '/dev/serial/by-bus' %}
console {{ key }} {
master localhost;
type device;
device {{ path }}/{{ key }};
baud {{ value.speed }};
parity {{ value.parity }};
options {{ "!" if value.stop_bits == "1" }}cstopb;
}
{% endfor %}
##
## list of clients we allow
##
access * {
trusted 127.0.0.1;
allowed 127.0.0.1;
}
|