Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
}
-if [ $# -ne 2 ]; then
+if [ $# -ne 1 ]; then
echo "Usage: $0 <tap>"
exit 1
fi
source $STATE_DIR/infra
-if [ $# -ne 6 ]; then
+if [ $# -ne 5 ]; then
echo "Usage: $0 <routing table> <subnet> <gateway> <subnet6> <gateway6>"
exit 1
fi
source $STATE_DIR/infra
-if [ $# -ne 6 ]; then
+if [ $# -ne 5 ]; then
echo "Usage: $0 <routing table> <subnet> <gateway> <subnet6> <gateway6>"
exit 1
fi
source $STATE_DIR/infra
-if [ $# -ne 4 ]; then
+if [ $# -ne 3 ]; then
echo "Usage: $0 <masq bridge> <subnet> <gateway>"
exit 1
fi
source $STATE_DIR/infra
-if [ $# -ne 4 ]; then
+if [ $# -ne 3 ]; then
echo "Usage: $0 <masq bridge> <subnet> <gateway>"
exit 1
fi