example: Add example for NXAST_LEARN
This commit is contained in:
parent
04fb4ffa52
commit
270d01b626
9 changed files with 180 additions and 0 deletions
17
examples/nx_learning_switch/config/config.exs
Normal file
17
examples/nx_learning_switch/config/config.exs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# This file is responsible for configuring your application
|
||||
# and its dependencies with the aid of the Mix.Config module.
|
||||
use Mix.Config
|
||||
|
||||
config :tres,
|
||||
protocol: :tcp,
|
||||
port: 6653,
|
||||
max_connections: 10,
|
||||
num_acceptors: 10,
|
||||
callback_module: NxLearningSwitch,
|
||||
callback_args: []
|
||||
|
||||
config :logger,
|
||||
level: :debug,
|
||||
format: "$date $time [$level] $metadata$message\n",
|
||||
metadata: [:application],
|
||||
handle_otp_reports: true
|
||||
Loading…
Add table
Add a link
Reference in a new issue