Advertisement
Guest User

Untitled

a guest
Apr 17th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Erlang 4.93 KB | None | 0 0
  1. [
  2. {setup, [{data_dir, "/var/lib/capwap"},
  3.       {log_dir,  "/var/log/capwap-node"}                %% NOTE: lager is not using this
  4.      ]},
  5.  
  6.  {capwap, [
  7.        {dhcp_relay, [
  8.             {external_ip, {192,168,86,10}},
  9.             {servers, [{192,168,81,1}]},
  10.             {remote_id, [<<"User">>, 'Username', <<"END">>]},
  11.             {circuit_id, [<<"BSSID">>, 'BSSID', <<"END">>]},
  12.             {agent_id, [<<"AgentID">>]}
  13.        ]},
  14.        {http_api, [
  15.             {ip, {192, 168, 86, 10}},
  16.             {port, 8000}
  17.        ]},
  18.  
  19.        %% {'trace-file', "/var/log/scg-capwap-node/trace.pcap"},
  20.        {server_ip, {192, 168, 86, 10}},
  21.        {server_socket_opts, [%% {netns, "/var/run/netns/upstream"},
  22.                  {recbuf, 1048576},
  23.                  {sndbuf, 1048576}]},
  24.        {control_ips, [{192, 168, 86, 10}]},
  25.        {limit, 200},
  26.        {max_wtp, 100},
  27.        {security, ['x509']},
  28.        {versions, [{hardware,<<"CAPWAP AC">>},
  29.                {software,<<"CAPWAP AC">>}]},
  30.        {ac_name, <<"capwap-test">>},
  31.  
  32.        {idle_timeout, 30},
  33.        {certs, "/etc/ergw-capwap-node/unicode_test"},
  34.  
  35.        {config_providers, [
  36.             {capwap_config_http, [{url, "http://127.0.0.1:9999"}]},
  37.             capwap_config_env
  38.         ]},
  39.  
  40.        %% enter SSIDs for WTPs
  41.        %% format:
  42.        %% [{{<<"MAC">>, 1}, <<"SSID">>}]
  43.        {default_ssid, <<"CAPWAP AC">>},
  44.        {wtps, [
  45.            %% default for ALL WTP's
  46.            {defaults,
  47.             [
  48.              {psm_idle_timeout,           30},
  49.              {psm_busy_timeout,           300},
  50.              {max_stations,               100},
  51.              {echo_request_interval,      30},
  52.              {discovery_interval,         20},
  53.              {idle_timeout,               300},
  54.              {data_channel_dead_interval, 70},
  55.              {ac_join_timeout,            70},
  56.              {admin_pw,                   undefined},
  57.              {wlan_hold_time,             15},
  58.              {radio_settings,
  59.               [{defaults,  [{beacon_interval, 100}, {wlans, [[{ssid, default}]]}]},
  60.                {'802.11a', [{operation_mode, '802.11a'}, {channel, 155}]},
  61.                {'802.11b', [{operation_mode, '802.11b'}, {channel,  11}]},
  62.                {'802.11g', [{operation_mode, '802.11g'}, {channel,  11}]}
  63.               ]
  64.              }
  65.             ]},
  66.             {<<"wtp-lede">>, [
  67.                  {discovery_interval, 40},
  68.                  {radio, [
  69.  
  70.                      {1, [{channel, 36},{wlans, [
  71.                              [{wlan_id, 1}, {ssid, <<"☣(╯°□°)╯☎"/utf8>>}, {suppress_ssid, 0}],
  72.                              [{wlan_id, 2}, {ssid, <<"test ate2 русский"/utf8>>}, {suppress_ssid, 0}]
  73.                      ]}]}
  74.  
  75.                      ,{2, [{channel, 6},{wlans, [
  76.                              [{wlan_id, 1}, {ssid, <<\\_(ツ)_/¯☀☂"/utf8>>}, {suppress_ssid, 0}]
  77.                      ]}]}
  78.  
  79.                  ]}]},
  80.             {<<"mgumz">>, [
  81.                  {discovery_interval, 40},
  82.                  {radio, [
  83.  
  84.                      {1, [{channel, 36},{wlans, [
  85.                              [{wlan_id, 1}, {ssid, <<"☣(╯°□°)╯☎"/utf8>>}, {suppress_ssid, 0}],
  86.                              [{wlan_id, 2}, {ssid, <<"test ate2 русский"/utf8>>}, {suppress_ssid, 0}]
  87.                      ]}]}
  88.  
  89.                      ,{2, [{channel, 6},{wlans, [
  90.                              [{wlan_id, 1}, {ssid, <<\\_(ツ)_/¯☀☂"/utf8>>}, {suppress_ssid, 0}]
  91.                      ]}]}
  92.  
  93.                  ]}]},
  94.             {<<"travelping">>, [
  95.                  {discovery_interval, 40},
  96.                  {radio, [
  97.  
  98.                      {1, [{channel, 36},{wlans, [
  99.                              [{wlan_id, 1}, {ssid, <<"☣(╯°□°)╯☎"/utf8>>}, {suppress_ssid, 0}],
  100.                              [{wlan_id, 2}, {ssid, <<"test ate2 русский"/utf8>>}, {suppress_ssid, 0}]
  101.                      ]}]}
  102.  
  103.                      ,{2, [{channel, 6},{wlans, [
  104.                              [{wlan_id, 1}, {ssid, <<\\_(ツ)_/¯☀☂"/utf8>>}, {suppress_ssid, 0}]
  105.                      ]}]}
  106.                  ]}]}
  107.               ]}
  108.       ]},
  109.  
  110.  {ergw_aaa, [
  111.     {applications, [
  112.         {default,
  113.             {provider, ergw_aaa_mock,
  114.                 [{shared_secret, <<"MySecret">>}]
  115.             },
  116.             {attribute_map, [
  117.                 {'Calling-Station-Id', ['Idd1']},
  118.                 {'Location-Id', [<<"id22">>]}
  119.             ]}
  120.         },
  121.         {capwap_wtp,
  122.             {provider, ergw_aaa_mock,
  123.                 [{shared_secret, <<"MySecret">>}]
  124.             },
  125.             {attribute_map, [
  126.                 {'Calling-Station-Id', ['Idd2']},
  127.                 {'AuthType', [<<"Local">>]}
  128.             ]}
  129.         }
  130.     ]}
  131.  ]},
  132.  
  133.  {lager, [
  134.      {colored, true},
  135.      {log_root, "/var/log/capwap-node"},
  136.      {error_logger_redirect, true},
  137.      {crash_log, "crash.log"},
  138.      {handlers, [
  139.              {lager_console_backend, debug},
  140.              {lager_file_backend, [{file, "error.log"}, {level, error}]},
  141.              {lager_file_backend, [{file, "console.log"}, {level, debug}]}
  142.             ]}
  143.     ]}
  144. ].
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement