From: Giuseppe Lettieri Date: Wed, 5 Sep 2012 10:35:36 +0000 (+0200) Subject: Merge branch 'forward-port' X-Git-Tag: sliver-openvswitch-1.8.90-0~48 X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=commitdiff_plain;h=e368cad8ecf6dbf272b2a3775b2e3e5e2dc6a5cf Merge branch 'forward-port' Conflicts: planetlab/exp-tool/Makefile --- e368cad8ecf6dbf272b2a3775b2e3e5e2dc6a5cf diff --cc planetlab/exp-tool/Makefile index 54ef56fec,2f09a4127..719da0163 --- a/planetlab/exp-tool/Makefile +++ b/planetlab/exp-tool/Makefile @@@ -22,31 -22,6 +22,31 @@@ opp=$(call proj1,$(1))@$(call flip,$(ca # rget(x-y@2) = x rget=$(call get,$(call opp,$(1))) +solve=$(HOST_$(1)) +# can be redefined in conf.mk if that's not the expected behaviour +display?=host $(1) aka $(call solve,$(1)) + +#################### set variables after conf.mk +ifeq "$(SSH_KEY)" "" +SSH_KEY_OPTION ?= +else +SSH_KEY_OPTION ?= -i $(SSH_KEY) +endif + - SSH_OPTIONS ?= $(SSH_KEY_OPTION) -l $(SLICE) ++SSH_OPTIONS ?= $(SSH_KEY_OPTION) -l $(SLICE) -t +SSH = ssh $(SSH_OPTIONS) + +ALL_NODE_IDS=$(shell (cut -d- -f1 < links; cut -d- -f2 < links) | sort -u) + +#################### +all+init: init all +init: + @[ -d L ] || ( echo Creating tmp dir L; mkdir L) + @[ -d U ] || ( echo Creating tmp dir U; mkdir U) + @[ -d cache ] || ( echo Creating tmp dir cache; mkdir cache) +.PHONY: all+init init + +FORCE: .SECONDARY: @@@ -72,8 -33,9 +72,9 @@@ cache/host.% @host $(HOST_$*) | sed -n 's/^.*has address *//p' > $@ cache/db.%: - @echo "Starting db server on host $*" - @ssh -t -l $(SLICE) $(HOST_$*) \ - sudo start_ovsdb-server > $@ \ ++<<<<<<< HEAD + @echo "Starting db server on $(call display,$*)" + @$(SSH) $(HOST_$*) sudo start_ovsdb-server > $@ \ || { rm $@; exit 1; } cache/switchd.%: cache/db.%