Try using --relax as an option to oft.

OVS like many switches send out LLDPs periodically.  --relax says "please 
ignore other packets than the one I'm looking for."

-Dan




On Thursday, May 3, 2012 at 2:43 AM, sonny sonny wrote:

> >  
> > Hi,
> >  
> >  
> >   
> >  
> >  
> > I am  running OFTest on software switch ( OVS) ( OFTest running on 
> > localhost)
> >  
> >  
> >   
> >  
> >  
> > I have downloaded OFtest from "git://openflow.org/oftest 
> > (http://openflow.org/oftest)"
> >  
> >  
> > br0 is created and linked with physical interface of switch, ip of br0 is 
> > 10.0.1.1 .OVS is in listening mode by using following command:- ovs-vsctl 
> > set-controller br0 tcp:127.0.0.1:6633 (http://127.0.0.1:6633/)
> >  
> >  
> >   
> >  
> >  
> > I have created 4 veth pairs on same machine by using following commands:-
> >  
> >  
> >   
> >  
> >  
> > ip link add type veth
> >  
> >  
> > ifconfig veth0 10.0.1.101/22 (http://10.0.1.101/22) up
> >  
> >  
> > route add -host 10.0.1.102 dev veth0
> >  
> >  
> > ifconfig veth1 10.0.1.102/22 (http://10.0.1.102/22) up
> >  
> >  
> > ifconfig lo up
> >  
> >  
> >   
> >  
> >  
> > now repeated above for next 3 veth pairs
> >  
> >  
> >   
> >  
> >  
> > I have added ports veth1,veth3,veth5,veth7 to br0 by using following 
> > command:-
> >  
> >  
> >  ovs-vsctl add-port br0 veth1  
> >  
> >  
> > ovs-vsctl add-port br0 veth3  
> >  
> >  
> > ovs-vsctl add-port br0 veth5
> >  
> >  
> >  ovs-vsctl add-port br0 veth7
> >  
> >  
> >   
> >  
> >  
> > [root@localhost openvswitch-1.2.2]# ovs-vsctl show
> >  
> >  
> > 88cb2707-16da-4c07-982b-f099a5624de6
> >  
> >  
> >     Bridge "br0"
> >  
> >  
> >         Controller "tcp:127.0.0.1"
> >  
> >  
> >         fail_mode: secure
> >  
> >  
> >         Port "em1"
> >  
> >  
> >             Interface "em1"
> >  
> >  
> >         Port "veth7"
> >  
> >  
> >             Interface "veth7"
> >  
> >  
> >         Port "veth5"
> >  
> >  
> >             Interface "veth5"
> >  
> >  
> >         Port "veth3"
> >  
> >  
> >             Interface "veth3"
> >  
> >  
> >         Port "veth1"
> >  
> >  
> >             Interface "veth1"
> >  
> >  
> >         Port "br0"
> >  
> >  
> >             Interface "br0"
> >  
> >  
> >                 type: internal
> >  
> >  
> >   
> >  
> >  
> >  [root@localhost openvswitch-1.2.2]# ovs-dpctl show
> >  
> >  
> > system@br0:
> >  
> >  
> >                 lookups: frags:0, hit:11, missed:154, lost:0
> >  
> >  
> >                 port 0: br0 (internal)
> >  
> >  
> >                 port 1: em1
> >  
> >  
> >                 port 2: veth1
> >  
> >  
> >                 port 3: veth3
> >  
> >  
> >                 port 4: veth5
> >  
> >  
> >                 port 5: veth7
> >  
> >  
> >   
> >  
> >  
> > After above all steps,when I am running OFT by following command, it is a 
> > failure
> >  
> >  
> >   
> >  
> >  
> > ./oft --host=127.0.0.1 --port=6633 --verbose --test-spec=PacketIn
> >  
> >  
> > WARNING: No route found for IPv6 destination :: (no default route?)
> >  
> >  
> > runTest (basic.PacketIn) ... FAIL
> >  
> >  
> >   
> >  
> >  
> > ======================================================================
> >  
> >  
> > FAIL: runTest (basic.PacketIn)
> >  
> >  
> > ----------------------------------------------------------------------
> >  
> >  
> > Traceback (most recent call last):
> >  
> >  
> >   File "/root/oftest/tests/basic.py", line 226, in runTest
> >  
> >  
> >     ' for port ' + str(of_port))
> >  
> >  
> > AssertionError: Response packet does not match send packet for port 1
> >  
> >  
> >   
> >  
> >  
> > ----------------------------------------------------------------------
> >  
> >  
> > Ran 1 test in 5.073s
> >  
> >  
> >   
> >  
> >  
> > FAILED (failures=1)
> >  
> >  
> >   
> >  
> >  
> >  [root@localhost tests]# ./oft --host=127.0.0.1 --port=6633 --verbose 
> > --test-spec=PacketIn --base-of-port=2
> >  
> >  
> > WARNING: No route found for IPv6 destination :: (no default route?)
> >  
> >  
> > runTest (basic.PacketIn) ... FAIL
> >  
> >  
> >   
> >  
> >  
> > ======================================================================
> >  
> >  
> > FAIL: runTest (basic.PacketIn)
> >  
> >  
> > ----------------------------------------------------------------------
> >  
> >  
> > Traceback (most recent call last):
> >  
> >  
> >   File "/root/oftest/tests/basic.py", line 226, in runTest
> >  
> >  
> >     ' for port ' + str(of_port))
> >  
> >  
> > AssertionError: Response packet does not match send packet for port 2
> >  
> >  
> >   
> >  
> >  
> > ----------------------------------------------------------------------
> >  
> >  
> > Ran 1 test in 7.480s
> >  
> >  
> >   
> >  
> >  
> > FAILED (failures=1)
> >  
> >  
> >   
> >  
> >  
> >   
> >  
> >  
> > Please suggest where I am wrong?
> >  
> >  
> > Along with that please confirm is remote.py used for “hardware” switches 
> > only? Please confirm the format for local.py configuration for port 
> > mapping, if need.
> >  
> >  
> >   
> >  
> >  
> >   
> >  
> >  
> >          - Sonny
> >  
> >  
>  
>  
>  
> _______________________________________________
> openflow-discuss mailing list
> openflow-discuss@lists.stanford.edu 
> (mailto:openflow-discuss@lists.stanford.edu)
> https://mailman.stanford.edu/mailman/listinfo/openflow-discuss
>  
>  


_______________________________________________
openflow-discuss mailing list
openflow-discuss@lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/openflow-discuss

Reply via email to