-
Notifications
You must be signed in to change notification settings - Fork 77
Expand file tree
/
Copy pathsys.config
More file actions
159 lines (145 loc) · 5.5 KB
/
sys.config
File metadata and controls
159 lines (145 loc) · 5.5 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
[
{linc,
[
%% Following setting enables or disables OF-Config subsystem which consists
%% of three applications: ssh, enetconf and of_config.
%% Allowed values: 'enabled' | 'disabled'
{of_config, enabled},
%% Configure ports available to the switch when using the
%% userspace backend according to your system setup.
%% * Under Linux all TAP interfaces must be set up beforehand
%% as persistent.
%% * Under MacOSX TAP interfaces are created during node
%% startup (which requires setting an ip parameter).
%% Remember to set 'rate' option when you plan to assign queues
%% to the given port.
{capable_switch_ports,
[
%% Examples:
%% - regular hardware interface with queues disabled
%% {port, 1, [{interface, "eth0"}]},
%% - regular hardware interface and port rate when queues enabled
%% {port, 2, [{interface, "eth0"}, {port_rate, {100, kbps}}]},
%% - hardware interface with explicit type and queues disabled
%% {port, 3, [{interface, "net0"}, {type, eth}]},
%% - regular tap interface with queues disabled
%% {port, 4, [{interface, "tap0"}]},
%% - tap interface under MacOSX with dynamically assigned IP
%% {port, 5, [{interface, "tap1"}, {ip, "10.0.0.1"}]},
%% - tap interface with explicit type and queues disabled
%% {port, 6, [{interface, "net1"}, {type, tap}]}
]},
{capable_switch_queues,
[
%% Examples:
%% {queue, 1, [{min_rate, 100}, {max_rate, 100}]},
%% {queue, 2, [{min_rate, 100}, {max_rate, 100}]}
]},
%% Configuration of the logical switches.
{logical_switches,
[
%% To add a new logical switch add a new entry to this list similar to
%% the one below. Keep in mind that:
%% a. logical switches need uniquie interger id (second element
%% of the tuple),
%% b. you have to assign ports to the logical switch manually.
{switch, 0,
[
%% Configuration of switch backend implementation used by ofs_logic
%% process.
%% By default an Erlang userspace 1.3.1 implementation is selected.
%% Allowed values: 'linc_us3' | 'linc_us4'
{backend, linc_us4},
%% Configuration of the controllers switch will connect to. Ideally
%% this list should be empty and assignement should be handled by an
%% OF-Config client.
%% Default OFP controller port is 6633.
{controllers,
[
%% {"Switch0-DefaultController", "localhost", 6633, tcp}
%% To establish auxiliary connections to the controller specify them
%% in the list of additional options. For example to start 2 tcp and one
%% tls auxiliary connections provide config as follows:
%% {"Switch0-DefaultController", "localhost", 6633, tcp,
%% [{auxiliary_connections, [{tcp, 2}, {tls, 1}]}]
%% }
]},
%% Enable or disable queues subsystem. Queue configuration is not part
%% of the OpenFlow specification and as such should be considered
%% EXPERIMENTAL. This feature is disabled by default.
%% Allowed values: 'enabled' | 'disabled'
{queues_status, disabled},
%% To assign a port to a logical switch two requirements has to be met:
%% a. the port has to be defined in the `capable_switch_ports`,
%% b. the port has to be listed in the `ports` for the logical switch.
%%
%% If queues are enabled, assign them to ports.
%% Remember to set appropriate port rates in `capable_switch_ports`.
%% Queue configuration is not part of the OpenFlow specification
%% and as such should be considered EXPERIMENTAL.
{ports, [
%% Examples:
%% - port without queues:
%% {port, 1, {queues, []}},
%% - port with two queues:
%% {port, 2, {queues, [1, 2]}}
]}
]}
%% Capable Switch context allows you to start multiple Logical Switches
%% inside one instance of LINC.
%% , {switch, 1,
%% [
%% {backend, linc_us3},
%% {controllers, []},
%% {ports, []},
%% {queues_status, disabled},
%% ]}
]}
%% TLS configuration. Put your switch certificate and private RSA key here.
%% Values should be base64 encoded, DER encoded strings.
%% , {certificate, ""},
%% {rsa_private_key, ""}
]},
{enetconf,
[
{capabilities, [{base, {1, 1}},
{startup, {1, 0}},
{'writable-running', {1, 0}}]},
{callback_module, linc_ofconfig},
{sshd_ip, any},
{sshd_port, 1830},
{sshd_user_passwords,
[
{"linc", "linc"}
]}
]},
{lager,
[
{handlers,
[
{lager_console_backend, info},
{lager_file_backend,
[
{"log/error.log", error, 10485760, "$D0", 5},
{"log/console.log", info, 10485760, "$D0", 5}
]}
]}
]},
{sasl,
[
{sasl_error_logger, {file, "log/sasl-error.log"}},
{errlog_type, error},
{error_logger_mf_dir, "log/sasl"}, % Log directory
{error_logger_mf_maxbytes, 10485760}, % 10 MB max file size
{error_logger_mf_maxfiles, 5} % 5 files max
]},
{sync,
%% Sync is a developer utility that reloads changed beam files into the VM
%% without the need to restart it. It is started when the Makefile's dev
%% target is invoked to start the development environment.
[
%% By default only the procket module is excluded from the scan process
%% as it does not support reloading.
{excluded_modules, [procket]}
]}
].