X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=tests%2Fovn.at;h=0e717320f563833938b7fa873f12c1a5596ef15d;hb=7dc88496081cccc0b22e3e341d88d2e4867323df;hp=0917e8d0e653a3c7bf05404d6c31b6689603e408;hpb=5f8221294065b58f0c24b1535f099ffae337f74e;p=cascardo%2Fovs.git diff --git a/tests/ovn.at b/tests/ovn.at index 0917e8d0e..0e717320f 100644 --- a/tests/ovn.at +++ b/tests/ovn.at @@ -551,7 +551,12 @@ for i in 1 2 3; do if test $j = 1; then ovn-nbctl lport-set-addresses lp$i$j "f0:00:00:00:00:$i$j 192.168.0.$i$j" unknown else - ovn-nbctl lport-set-addresses lp$i$j "f0:00:00:00:00:$i$j 192.168.0.$i$j" + if test $j = 3; then + ip_addrs="192.168.0.$i$j fe80::ea2a:eaff:fe28:$i$j/64 192.169.0.$i$j" + else + ip_addrs="192.168.0.$i$j" + fi + ovn-nbctl lport-set-addresses lp$i$j "f0:00:00:00:00:$i$j $ip_addrs" ovn-nbctl lport-set-port-security lp$i$j f0:00:00:00:00:$i$j fi done @@ -570,6 +575,18 @@ ovn_populate_arp sleep 1 ovn-sbctl dump-flows -- list multicast_group +echo "------ hv1 dump ------" +as hv1 ovs-vsctl show +as hv1 ovs-ofctl -O OpenFlow13 dump-flows br-int + +echo "------ hv2 dump ------" +as hv2 ovs-vsctl show +as hv2 ovs-ofctl -O OpenFlow13 dump-flows br-int + +echo "------ hv3 dump ------" +as hv3 ovs-vsctl show +as hv3 ovs-ofctl -O OpenFlow13 dump-flows br-int + # Given the name of a logical port, prints the name of the hypervisor # on which it is located. vif_to_hv() { @@ -707,6 +724,12 @@ for is in 1 2 3; do tip_unknown=`ip_to_hex 11 11 11 11` test_arp $s f000000000$s $sip $tip f000000000$d #9 test_arp $s f000000000$s $sip $tip_unknown #10 + + if test $jd = 3; then + # lport[123]3 has an additional ip 192.169.0.[123]3. + tip=`ip_to_hex 192 169 0 $id$jd` + test_arp $s f000000000$s $sip $tip f000000000$d #9 + fi done done @@ -731,6 +754,17 @@ for is in 1 2 3; do done done +# set address for lp13 with invalid characters. +# lp13 should be configured with only 192.168.0.13. +ovn-nbctl lport-set-addresses lp13 "f0:00:00:00:00:13 192.168.0.13 invalid 192.169.0.13" +sip=`ip_to_hex 192 168 0 11` +tip=`ip_to_hex 192 168 0 13` +test_arp 11 f00000000011 $sip $tip f00000000013 + +tip=`ip_to_hex 192 169 0 13` +#arp request for 192.169.0.13 should be flooded +test_arp 11 f00000000011 $sip $tip + # Allow some time for packet forwarding. # XXX This can be improved. sleep 1 @@ -746,6 +780,11 @@ for i in 1 2 3; do echo done done + +# Gracefully terminate daemons +for daemon in ovn-controller ovn-northd ovsdb-server; do + ovs-appctl -t $daemon exit +done AT_CLEANUP # 2 hypervisors, 4 logical ports per HV @@ -894,6 +933,10 @@ for i in 1 2; do done done +# Gracefully terminate daemons +for daemon in ovn-controller ovn-northd ovsdb-server; do + ovs-appctl -t $daemon exit +done AT_CLEANUP AT_SETUP([ovn -- 3 HVs, 1 VIFs/HV, 1 GW, 1 LS]) @@ -1050,6 +1093,11 @@ for i in 1 2 3; do AT_CHECK([sort $i.packets], [0], [expout]) echo done + +# Gracefully terminate daemons +for daemon in ovs-vtep ovn-controller-vtep ovn-controller ovn-northd ovsdb-server; do + ovs-appctl -t $daemon exit +done AT_CLEANUP # 3 hypervisors, 3 logical switches with 3 logical ports each, 1 logical router @@ -1322,4 +1370,9 @@ for i in 1 2 3; do done done done + +# Gracefully terminate daemons +for daemon in ovn-controller ovn-northd ovsdb-server; do + ovs-appctl -t $daemon exit +done AT_CLEANUP