diff options
author | Pravin B Shelar <pshelar@ovn.org> | 2016-03-24 09:30:57 -0700 |
---|---|---|
committer | Pravin B Shelar <pshelar@ovn.org> | 2016-03-24 09:30:57 -0700 |
commit | a8704b502785a9661721f041b2ee168d7a4eb460 (patch) | |
tree | d19c31b4832e002e21ea02adfc700f33a4e58f97 /tests | |
parent | c4bee4cbdbb93588c2a94ba7cb848b5608d8773a (diff) | |
download | openvswitch-a8704b502785a9661721f041b2ee168d7a4eb460.tar.gz |
tunneling: Handle multiple ip address for given device.
Device can have multiple IP address but netdev_get_in4/6()
returns only one configured IPv6 address. Following
patch fixes it.
OVS router is also updated to return source ip address for
given destination, This is required when interface has multiple
IP address configured.
Signed-off-by: Pravin B Shelar <pshelar@ovn.org>
Acked-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ofproto-dpif.at | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/ofproto-dpif.at b/tests/ofproto-dpif.at index 6590fc2f4..09914447b 100644 --- a/tests/ofproto-dpif.at +++ b/tests/ofproto-dpif.at @@ -5476,12 +5476,10 @@ dummy@ovs-dummy: hit:0 missed:0 ]) dnl set up route to 1.1.2.92 via br0 and action=normal -AT_CHECK([ovs-appctl ovs/route/add 1.1.2.92/24 br0], [0], [OK -]) -AT_CHECK([ovs-appctl ovs/route/add 192.168.0.0/16 br0], [0], [OK -]) AT_CHECK([ovs-appctl netdev-dummy/ip4addr br0 1.1.2.88/24], [0], [OK ]) +AT_CHECK([ovs-appctl ovs/route/add 1.1.2.92/24 br0], [0], [OK +]) AT_CHECK([ovs-ofctl add-flow br0 action=normal]) dnl Prime ARP Cache for 1.1.2.92 @@ -5493,6 +5491,12 @@ ovs-vsctl \ --id=@sf create sflow targets=\"127.0.0.1:$SFLOW_PORT\" \ header=128 sampling=1 polling=0 +dnl set up route to 192.168.1.2 via br0 +AT_CHECK([ovs-appctl netdev-dummy/ip4addr br0 192.168.1.1/16], [0], [OK +]) +AT_CHECK([ovs-appctl ovs/route/add 192.168.0.0/16 br0], [0], [OK +]) + dnl add rule for int-br to force packet onto tunnel. There is no ifindex dnl for this port so the sFlow output will just report that it went to dnl 1 output (out_format=2, out_ifindex=1) |