Hello,YAMAMOTO


yes,I know the reason yesterday, I changed the orginal sys.config file in LINC 
SWITCH.
please refer to my sys.config,and you can remove the annotation lines.
[
 {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, "linc-port"}]},
     %% - regular hardware interface and port rate when queues enabled
      {port, 2, [{interface, "linc-port2"}]}
     %% - 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,
    [
     {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},


       %% 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, []}}
               ]}
      ]}


     %% 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]}
  ]}
 
].






At 2013-08-09 07:18:44,"YAMAMOTO Takashi" <[email protected]> wrote:
>hi,
>
>LINC changed their config format around 2013-05.
>
>https://github.com/FlowForwarding/LINC-Switch/commit/23130acf0ba261dff46fce7de40effb9f3a66da7
>
>the sample sys.config on the wiki seems older and not compatible with
>the latest version of LINC.
>
>you can use older LINC.  or even better, update the samples to the
>new format and post them here so that i can paste them to the wiki. :-)
>
>YAMAMOTO Takashi
>
>> Hello,all
>> 
>> 
>> I used the same sys.config as the wiki said.I think the error happend about 
>> the port.
>> {ports,
>>         [
>>          {port, 1, [{interface, "linc-port"}]},
>>          {port, 2, [{interface, "linc-port2"}]}
>>         ]},
>> and I haved creat the port using :
>> # ip link add linc-port type veth peer name linc-port-peer
>> # ip link set linc-port up
>> # ip link add linc-port2 type veth peer name linc-port-peer2
>> # ip link set linc-port2 up
>> 
>> 
>> any one could help me ?
>> 
>> 
>> Thanks!
>> 
>> 
>> 
>> 
>> 
>> 
>> At 2013-08-08 11:54:14,xiaohang <[email protected]> wrote:
>> 
>> Hello,all
>> 
>> 
>> When I used the Testing OF-config support with LINC,when I ran 
>> rel/linc/bin/linc console,I
>> get the crash dump:
>> 
>> 
>> Crash dump was written to: erl_crash.dump Kernel pid terminated 
>> (application_controller) 
>> ({application_start_failure,linc,{bad_return,{{linc,start,[normal,[]]},{'EXIT',{{badmatch,undefined},[{linc_ofconfig,get_linc_logical_switches,0,[{file
>> 
>> 
>> Does anyone get this dump before?
>> 
>> 
>> Thanks!
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to