Code Review
/
one.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add L2 ARP test
[one.git]
/
tests
/
data_plane
/
vpp_lite_topo
/
topologies
/
3_node_star.sh
diff --git
a/tests/data_plane/vpp_lite_topo/topologies/3_node_star.sh
b/tests/data_plane/vpp_lite_topo/topologies/3_node_star.sh
index
82dc734
..
d21732e
100644
(file)
--- a/
tests/data_plane/vpp_lite_topo/topologies/3_node_star.sh
+++ b/
tests/data_plane/vpp_lite_topo/topologies/3_node_star.sh
@@
-60,7
+60,9
@@
function 3_node_star_topo_clean
ip netns del vpp-ns8 &> /dev/null
ip netns del xtr-ns &> /dev/null
ip netns del vpp-ns8 &> /dev/null
ip netns del xtr-ns &> /dev/null
- odl_clear_all
+ if [ "$1" != "no_odl" ] ; then
+ odl_clear_all
+ fi
}
function set_arp
}
function set_arp
@@
-238,8
+240,12
@@
maybe_pause
echo "==="
fi
echo "==="
fi
- post_curl "add-mapping" ${ODL_CONFIG_FILE1}
- post_curl "add-mapping" ${ODL_CONFIG_FILE2}
+ if [ "$1" != "no_odl" ] ; then
+ post_curl "add-mapping" ${ODL_CONFIG_FILE1}
+ post_curl "add-mapping" ${ODL_CONFIG_FILE2}
+ fi
- set_arp
+ if [ "$2" != "no_arp" ] ; then
+ set_arp
+ fi
}
}