Re: [ovs-discuss] Test OVS kernel module using only one machine

2012-12-23 Thread Ahmed Talha Khan
Hey Markus, After clearing some things out i was able to get the traffic into ovs with the approach that you mentioned. Thanks @Kyle, When I add an internal interface using ovs-vsctl add-port br0 port0 -- set Interface port0 type=internal and then try to bring up this interface, ifconfig po

[ovs-discuss] Test OVS kernel module using only one machine

2012-12-23 Thread Ahmed Talha Khan
> Hi, > You could also try using virtual eth pairs, like this: > > ip link add type veth > > That will give you veth0 and veth1 which are tied together. Connect > one of > them to your OVS bridge. Then give the other veth an IP > address, and pump traffic into that, OVS should receive it > via it

[ovs-discuss] Test OVS kernel module using only one machine

2012-12-19 Thread Markus.Linnakangas
Hi, You could also try using virtual eth pairs, like this: ip link add type veth That will give you veth0 and veth1 which are tied together. Connect one of them to your OVS bridge. Then give the other veth an IP address, and pump traffic into that, OVS should receive it via its pair. Best reg

Re: [ovs-discuss] Test OVS kernel module using only one machine

2012-12-18 Thread Ahmed Talha Khan
Good. I will give it a try next morning and give the results here. Thanks for the guidelines though. I am also curious how does the entire dev team does its testing, because you said you adopted this approach. Is this approach common to all or there are other methods. What about the method that I

Re: [ovs-discuss] Test OVS kernel module using only one machine

2012-12-18 Thread Kyle Mestery (kmestery)
On Dec 18, 2012, at 8:40 AM, Ahmed Talha Khan wrote: > > Ok cool. So then if i do : > > tcpreplay -i port0 pcap > > this traffic will be accepted by ovs as "ingrees" traffic on port0 even when > tcpreplay is out-bound replay on an interface? > I think that should work yes. Give it a shot and

Re: [ovs-discuss] Test OVS kernel module using only one machine

2012-12-18 Thread Ahmed Talha Khan
Ok cool. So then if i do : tcpreplay -i port0 pcap this traffic will be accepted by ovs as "ingrees" traffic on port0 even when tcpreplay is out-bound replay on an interface? On Tue, Dec 18, 2012 at 7:34 PM, Kyle Mestery (kmestery) wrote: > On Dec 18, 2012, at 8:30 AM, Ahmed Talha Khan wrote

Re: [ovs-discuss] Test OVS kernel module using only one machine

2012-12-18 Thread Kyle Mestery (kmestery)
On Dec 18, 2012, at 8:30 AM, Ahmed Talha Khan wrote: > > How do i use them if they are not on the host? I mean these are not eth0/eth1 > type actual interfaces, so how will they be visible on the host until i make > some device myself? How do you propose that I add the port. > The easiest way

Re: [ovs-discuss] Test OVS kernel module using only one machine

2012-12-18 Thread Ahmed Talha Khan
How do i use them if they are not on the host? I mean these are not eth0/eth1 type actual interfaces, so how will they be visible on the host until i make some device myself? How do you propose that I add the port. On Tue, Dec 18, 2012 at 7:22 PM, Kyle Mestery (kmestery) wrote: > On Dec 18, 201

Re: [ovs-discuss] Test OVS kernel module using only one machine

2012-12-18 Thread Kyle Mestery (kmestery)
On Dec 18, 2012, at 8:19 AM, Ahmed Talha Khan wrote: > > I am not aware of the internal port functionality. Can you kindly elaborate > your answer a bit more. Also what do you mean by "add IP configuration on > your bridge port"? How will that help in sending traffic in? > Internal ports are i

Re: [ovs-discuss] Test OVS kernel module using only one machine

2012-12-18 Thread Ahmed Talha Khan
I am not aware of the internal port functionality. Can you kindly elaborate your answer a bit more. Also what do you mean by "add IP configuration on your bridge port"? How will that help in sending traffic in? On Tue, Dec 18, 2012 at 7:14 PM, Kyle Mestery (kmestery) wrote: > On Dec 18, 2012, a

Re: [ovs-discuss] Test OVS kernel module using only one machine

2012-12-18 Thread Kyle Mestery (kmestery)
On Dec 18, 2012, at 7:58 AM, Ahmed Talha Khan wrote: > Hey Ben,Jesse,Kyle,ALL, > > I made some changes in the kernel module and would like to test them. Ideally > I would want to test it on a single machine that i am on without firing up > other vms(eg kvm/qemu integration). I would like to kno

[ovs-discuss] Test OVS kernel module using only one machine

2012-12-18 Thread Ahmed Talha Khan
Hey Ben,Jesse,Kyle,ALL, I made some changes in the kernel module and would like to test them. Ideally I would want to test it on a single machine that i am on without firing up other vms(eg kvm/qemu integration). I would like to know what is the preferred method used by the community for this. I