git://git.onelab.eu
/
planetlab-umts-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reinstate an initscript for the backend so that /etc/iproute2/rt_tables gets cleaned...
[planetlab-umts-tools.git]
/
umtsd
diff --git
a/umtsd
b/umtsd
index
780fb56
..
4fbf773
100755
(executable)
--- a/
umtsd
+++ b/
umtsd
@@
-21,17
+21,9
@@
command=`echo ${line%% *}`
rest=`echo ${line#* }`
case "$command" in
rest=`echo ${line#* }`
case "$command" in
- #init)
- #logger "Initialitation of the UMTS inteface requested by $sliver"
- #init_umts $sliver;
- #
- #if [[ $? != 0 ]] ; then
- # echo "Failed"
- #fi
- #;;
-
start)
logger "Starting the umts connection for $sliver"
start)
logger "Starting the umts connection for $sliver"
+
start_umts $sliver;
if [[ $? != 0 ]] ; then
start_umts $sliver;
if [[ $? != 0 ]] ; then
@@
-52,6
+44,10
@@
case "$command" in
add)
logger "Request to add a destination by $sliver for the UMTS connection";
add)
logger "Request to add a destination by $sliver for the UMTS connection";
+ if ! check_sliceip; then
+ exit 1
+ fi
+
if ! valid_dotted_quad "$rest"; then
echo "Failed"
else
if ! valid_dotted_quad "$rest"; then
echo "Failed"
else
@@
-68,6
+64,10
@@
case "$command" in
del)
logger "Request to del a destination by $sliver for the UMTS connection";
del)
logger "Request to del a destination by $sliver for the UMTS connection";
+ if ! check_sliceip; then
+ exit 1
+ fi
+
if ! valid_dotted_quad "$rest"; then
echo "Failed"
else
if ! valid_dotted_quad "$rest"; then
echo "Failed"
else
@@
-97,7
+97,7
@@
case "$command" in
esac
esac
-
#
sleep 1
+sleep 1
echo "EOF"
echo "EOF"