make showdpids printout can be pasted into a python program
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Mon, 8 Oct 2012 07:09:06 +0000 (09:09 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Mon, 8 Oct 2012 07:09:06 +0000 (09:09 +0200)
planetlab/exp-tool/Makefile

index b797f9f..c2b0d77 100644 (file)
@@ -145,7 +145,7 @@ ssh-%: FORCE
        @$(SSH) $(HOST_$*) $(SUDO) $(SSH-COMMAND)
 
 showdpid-%: FORCE
-       @echo $(call display,$*) uses dpid=$$( $(SSH) $(HOST_$*) $(SUDO) ovs-vsctl get bridge $(BRIDGE) datapath_id)
+       @echo $*_DPID=0x$$( $(SSH) $(HOST_$*) $(SUDO) ovs-vsctl get bridge $(BRIDGE) datapath_id | sed -e 's,",,g')
 
 # should probably replace sshcheck
 cache/status.%: FORCE