> the topology is like this,
> h1 - S1 - S2 - h2

>   mininet> net
>   s2 <->h1-eth0 s3-eth1
>   s3 <->s2-eth2 h4-eth0


topology is
h1 - S2 - S3 - h4 ?
please tell me the mininet commands used for topology building.


and the sw connected to the controller is s3 ?


>         [STP][INFO] dpid=0000000000000003: Join as stp bridge.
>         hub: uncaught exception: Traceback (most recent call last):
>             File 
> "/usr/local/lib/python2.7/__dist-packages/ryu/lib/stplib.__py", line 365, in 
> __init__
>               system_id = dp.ports.values()[0].hw_addr

this message says
dpid=0000000000000003 has no port.


if you use openvswitch, please check ports
by the following command.


this is sample in my environment.

$ ovs-ofctl show s3
OFPT_FEATURES_REPLY (xid=0x2): dpid:0000000000000003
n_tables:254, n_buffers:256
capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP
actions: OUTPUT SET_VLAN_VID SET_VLAN_PCP STRIP_VLAN SET_DL_SRC SET_DL_DST 
SET_NW_SRC SET_NW_DST SET_NW_TOS SET_TP_SRC SET_TP_DST ENQUEUE
 1(s1-eth1): addr:82:54:b9:b0:3b:a2
     config:     0
     state:      0
     current:    10GB-FD COPPER
     speed: 10000 Mbps now, 0 Mbps max
 2(s1-eth2): addr:66:74:76:c5:e7:0e
     config:     0
     state:      0
     current:    10GB-FD COPPER
     speed: 10000 Mbps now, 0 Mbps max
 LOCAL(s1): addr:d6:53:c4:b9:01:49
     config:     0
     state:      0
     speed: 0 Mbps now, 0 Mbps max
OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0






On Tue, 12 Nov 2013 13:45:02 +0800
許珈榮 <[email protected]> wrote:
> hi~
>   mininet> net
>   s2 <->h1-eth0 s3-eth1
>   s3 <->s2-eth2 h4-eth0
> 
> 
> 2013/11/12 watanabe.fumitaka <[email protected] 
> <mailto:[email protected]>>
> 
>     Hi,
> 
>     please tell me the mininet commands used for topology building.
>     and result of "net" mininet command.
> 
>       mininet> net
> 
> 
>     thanks.
> 
> 
>     On Tue, 12 Nov 2013 12:45:24 +0800
>     許珈榮 <[email protected] <mailto:[email protected]>> wrote:
>      > yes, i used mininet to emulate.
>      > the topology is like this,
>      > h1 - S1 - S2 - h2
>      >
>      >
>      >
>      > 2013/11/12 watanabe.fumitaka <[email protected] 
> <mailto:[email protected]> <mailto:[email protected] 
> <mailto:[email protected]>>>
>      >
>      >     Hi,
>      >
>      >     STP bridge needs one port at least.
>      >     Does your sw have a port?
>      >
>      >
>      >     thanks.
>      >
>      >
>      >
>      >
>      >     On Mon, 11 Nov 2013 18:50:27 +0800
>      >     許珈榮 <[email protected] <mailto:[email protected]> 
> <mailto:[email protected] <mailto:[email protected]>>> wrote:
>      >
>      >         hi guys,
>      >             another question.
>      >             Now i downloaded the simple_switch_stp.py
>      >             i type the command "ryu-manager 
> ryu/app/simple_switch_stp.py"
>      >              below is error message
>      >         -- error msg---
>      >
>      >         loading app simple_switch_stp.py
>      >         loading app ryu.controller.ofp_handler
>      >         creating context stplib
>      >         instantiating app ryu.controller.ofp_handler
>      >         instantiating app simple_switch_stp.py
>      >         [STP][INFO] dpid=0000000000000003: Join as stp bridge.
>      >         hub: uncaught exception: Traceback (most recent call last):
>      >             File 
> "/usr/local/lib/python2.7/__dist-packages/ryu/lib/hub.py", line 48, in _launch
>      >               func(*args, **kwargs)
>      >             File 
> "/usr/local/lib/python2.7/__dist-packages/ryu/base/app___manager.py", line 
> 110, in _event_loop
>      >               handler(ev)
>      >             File 
> "/usr/local/lib/python2.7/__dist-packages/ryu/lib/stplib.__py", line 215, in 
> dispacher_change
>      >               self._register_bridge(ev.__datapath)
>      >             File 
> "/usr/local/lib/python2.7/__dist-packages/ryu/lib/stplib.__py", line 227, in 
> _register_bridge
>      >               self.send_event_to_observers)
>      >             File 
> "/usr/local/lib/python2.7/__dist-packages/ryu/lib/stplib.__py", line 365, in 
> __init__
>      >               system_id = dp.ports.values()[0].hw_addr
>      >         IndexError: list index out of range
>      >
>      >         -----
>      >         how do i fix it
>      >
>      >         thx~
>      >
>      >
>      >
>      >
>      >         2013/11/11 FUJITA Tomonori <[email protected] 
> <mailto:[email protected]> <mailto:[email protected] 
> <mailto:[email protected]>> <mailto:fujita.tomonori@lab. 
> <mailto:fujita.tomonori@lab.>__ntt.co.jp <http://ntt.co.jp> 
> <mailto:[email protected] 
> <mailto:[email protected]>>>>
>      >
>      >
>      >              Hi,
>      >
>      >              On Mon, 11 Nov 2013 16:42:25 +0800
>      >              Wei-li Tang <[email protected] <mailto:[email protected]> 
> <mailto:[email protected] <mailto:[email protected]>> <mailto:[email protected] 
> <mailto:[email protected]> <mailto:[email protected] <mailto:[email protected]>>>> wrote:
>      >
>      >               > 2013/11/11 許珈榮 <[email protected] 
> <mailto:[email protected]> <mailto:[email protected] 
> <mailto:[email protected]>> <mailto:crazygod1100908@gmail. 
> <mailto:crazygod1100908@gmail.>__com <mailto:[email protected] 
> <mailto:[email protected]>>>>:
>      >
>      >               >> hi guys,
>      >               >>   these days, i searches about some routing 
> information about Ryu.
>      >               >> 
> http://sourceforge.net/__mailarchive/message.php?msg___id=31438818 
> <http://sourceforge.net/mailarchive/message.php?msg_id=31438818>
>      >               >>   this website mentioned about spanning tree
>      >               >>   does someone know where to download the STP source 
> code?
>      >               >>   or Ryu would update these codes?
>      >               >>
>      >               >
>      >               > The code is shown on the webpage. Copy the patch and 
> apply it to your
>      >               > ryu repository by "patch" or "git apply" command.
>      >
>      >              I've just applied the above patch. You can use the latest 
> code.
>      >
>      >              Thanks,
>      >
>      >
>      >
>      >
>      >         
> ------------------------------__------------------------------__------------------
>      >         November Webinars for C, C++, Fortran Developers
>      >         Accelerate application performance with scalable programming 
> models. Explore
>      >         techniques for threading, error checking, porting, and tuning. 
> Get the most
>      >         from the latest Intel processors and coprocessors. See 
> abstracts and register
>      > 
> http://pubads.g.doubleclick.__net/gampad/clk?id=60136231&iu=__/4140/ostg.clktrk
>  <http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk>
>      >
>      >
>      >
>      >         _________________________________________________
>      >         Ryu-devel mailing list
>      >         [email protected].__net 
> <mailto:[email protected] 
> <mailto:[email protected]>>
>      > https://lists.sourceforge.net/__lists/listinfo/ryu-devel 
> <https://lists.sourceforge.net/lists/listinfo/ryu-devel>
>      >
>      >
>      >
>      >
>      >
> 
> 
> 
> 


 

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to