tests: properly test ND snooping
authorThadeu Lima de Souza Cascardo <cascardo@redhat.com>
Thu, 18 Feb 2016 13:59:10 +0000 (11:59 -0200)
committerThadeu Lima de Souza Cascardo <cascardo@redhat.com>
Thu, 10 Mar 2016 17:03:57 +0000 (14:03 -0300)
When testing IPv6 tunnels, the neighbor cache was set instead of testing the ND
snooping was working. Push Neighbor Advertisements to the datapath in order to
test snooping is working.

tests/tunnel-push-pop-ipv6.at

index 316eaf0..b691164 100644 (file)
@@ -36,13 +36,11 @@ AT_CHECK([ovs-appctl ovs/route/add 2001:cafe::92/24 br0], [0], [OK
 
 AT_CHECK([ovs-ofctl add-flow br0 action=normal])
 
-dnl Check ARP Snoop
-AT_CHECK([ovs-appctl tnl/arp/set br0 2001:cafe::92 f8:bc:12:44:34:b6], [0], [OK
-])
-AT_CHECK([ovs-appctl tnl/arp/set br0 2001:cafe::93 f8:bc:12:44:34:b7], [0], [OK
-])
+dnl Check ND Snoop
+AT_CHECK([ovs-appctl netdev-dummy/receive br0 'recirc_id(0),in_port(100),eth(src=f8:bc:12:44:34:b6,dst=ff:ff:ff:ff:ff:ff),eth_type(0x86dd),ipv6(src=2001:cafe::92,dst=2001:cafe::93,label=0,proto=58,tclass=0x0,hlimit=64),icmpv6(type=136),nd(target=2001:cafe::92,tll=f8:bc:12:44:34:b6)'])
+AT_CHECK([ovs-appctl netdev-dummy/receive br0 'recirc_id(0),in_port(100),eth(src=f8:bc:12:44:34:b7,dst=ff:ff:ff:ff:ff:ff),eth_type(0x86dd),ipv6(src=2001:cafe::93,dst=2001:cafe::92,label=0,proto=58,tclass=0x0,hlimit=64),icmpv6(type=136),nd(target=2001:cafe::93,tll=f8:bc:12:44:34:b7)'])
 
-AT_CHECK([ovs-appctl tnl/arp/show], [0], [dnl
+AT_CHECK([ovs-appctl tnl/neigh/show], [0], [dnl
 IP                                            MAC                 Bridge
 ==========================================================================
 2001:cafe::92                                 f8:bc:12:44:34:b6   br0