Ah, I was initially wrong in saying it should work. Note the conspicuous warning: WARNING:core:Still waiting on 1 component(s)
And the informative message above it: DEBUG:core:startup() in pox.forwarding.l2_multi still waiting for: openflow_discovery And the line in the l2_multi docstring: Depends on openflow.discovery You need to run something like: ./pox.py forwarding.l2_learning openflow.discovery -- Murphy On Sep 2, 2013, at 2:46 AM, "Guangvy" <[email protected]> wrote: > 1) modified l2_multi.py and added log.debug in _handle_PacketIn() , like the > following: > def _handle_PacketIn (self, event): > log.debug("Installing 11111111111") > def flood (): > """ Floods the packet """ > if self.is_holding_down: > log.warning("Not flooding -- holddown active") > msg = of.ofp_packet_out() > # OFPP_FLOOD is optional; some switches may need OFPP_ALL > msg.actions.append(of.ofp_action_output(port = of.OFPP_FLOOD)) > msg.buffer_id = event.ofp.buffer_id > msg.in_port = event.port > self.connection.send(msg) > > 2)This is print info: > root@ubuntu:~/pox# ./pox.py forwarding.l2_multi log.level --DEBUG > --openflow=DEBUG > POX 0.2.0 (carp) / Copyright 2011-2013 James McCauley, et al. > DEBUG:core:POX 0.2.0 (carp) going up... > DEBUG:core:Running on CPython (2.7.3/Aug 1 2012 05:14:39) > DEBUG:core:Platform is Linux-3.2.0-43-generic-x86_64-with-Ubuntu-12.04-precise > DEBUG:core:startup() in pox.forwarding.l2_multi still waiting for: > openflow_discovery > WARNING:core:Still waiting on 1 component(s) > INFO:core:POX 0.2.0 (carp) is up. > DEBUG:openflow.of_01:Listening on 0.0.0.0:6633 > INFO:openflow.of_01:[00-00-00-fe-33-89 1] connected > INFO:openflow.of_01:[00-00-00-11-13-14 2] connected > INFO:openflow.of_01:[00-00-00-24-52-03 3] connected > > There no flows on SWs. > 3) SW's user can't communicate each other, but l2_learning or l2_paris work > smoothly. > > > > > > > ------------------ Original ------------------ > From: "Murphy McCauley"<[email protected]>; > Date: Mon, Sep 2, 2013 05:35 PM > To: "Guangvy"<[email protected]>; > Cc: "pox-dev"<[email protected]>; > Subject: Re: [pox-dev] how to use l2_multi ? > > That commandline should work. > > Can you post more info? For example, run with logging at DEBUG level and > post the log. Also... why do you think it isn't working? Why do you think > POX isn't handling it? In general, please see the last section of the FAQ in > the manual, and post as much information as you can. > > Also, have you tried other forwarding components (e.g., l2_learning or > l2_pairs)? > > POX manual: > https://openflow.stanford.edu/display/ONL/POX+Wiki > > -- Murphy > > On Sep 2, 2013, at 2:16 AM, "Guangvy" <[email protected]> wrote: > >> Hi all, >> Run " ./pox.py forwarding.l2_multi " on my machine, and OVS connected >> POX correctly. >> I found Packet_IN have send to POX, but POX l2_multi not handle it . >> Does run " ./pox.py forwarding.l2_multi " is correct? or how to use l2_multi? >
