Thankyou verymuch! On Thu, Jun 11, 2015 at 8:02 AM, Yusuke Iwase <[email protected]> wrote:
> Hi, > > On 2015年06月10日 18:03, Vinllen Chen wrote: > > Sorry for ambiguous question. The hardware switch have 8 ports, but only > 4 of them is up which means connect to other hosts or switches. The port > used in the hardware switch is 1, 2, 7, my question is which "port id" will > the ryu-controller get from the mapping from switch port, does it use the > following map: > > 1 -> 1 > > 2 -> 2 > > 7 -> 3 > > (left column is haredware switch port, right column is ryu-controller > mark each port) > > or > > 1 -> 1 > > 2 -> 2 > > 7 -> 7 > > It is the same for "port_no" (which you say "port id"). > Ryu uses port_no advertised from the switch by using Port Description' > messages. > > FYI, Datapath.ports is a dict of port_no to OFPPort class. > ( > https://github.com/osrg/ryu/blob/master/ryu/ofproto/ofproto_v1_3_parser.py#L2248-L2250 > ) > > So, if the switch advertises port_no like "g1->1, g2->2, g7->7", Ryu will > map them as follows. > > 1 -> 1 > > 2 -> 2 > > 7 -> 7 > > Thanks, > Iwase > > > > > or > > random > > > > On Wed, Jun 10, 2015 at 3:06 PM, Yusuke Iwase <[email protected] > <mailto:[email protected]>> wrote: > > > > Hi, > > > > On 2015年06月09日 21:57, Vinllen Chen wrote: > > > Hi, Dear all: > > > > > > I have a hardware switch which has eight ports name from g1 g2 > g3 ... g8, i use g1 g3 g7 to connect to other switch or host, and then > connect g8 to ryu controller. My question is which name will the ryu > controller mark the g1, g3, g7, does it use port1, port3, port7 or port1, > port2, port3 or random. > > > > Does 'ports name' mean the values of port.name <http://port.name> > (which are values of Datapath.ports or something)? > > If so, the ports naming depends on the switch configuration, > > because Ryu gets these value from switches by using 'Port > Description' messages. > > > > Thanks, > > Iwase > > > > > > > > Thankyou for anyone's reply. > > > > > > Best Regards, > > > Vinllen > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > > > > > > _______________________________________________ > > > Ryu-devel mailing list > > > [email protected] <mailto: > [email protected]> > > > https://lists.sourceforge.net/lists/listinfo/ryu-devel > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > > _______________________________________________ > > Ryu-devel mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/ryu-devel > > >
------------------------------------------------------------------------------
_______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
