showdpid-%: FORCE
@echo $*_DPID=0x$$( $(SSH) $(HOST_$*) $(SUDO) ovs-vsctl get bridge $(BRIDGE) datapath_id | sed -e 's,",,g')
showdpid-%: FORCE
@echo $*_DPID=0x$$( $(SSH) $(HOST_$*) $(SUDO) ovs-vsctl get bridge $(BRIDGE) datapath_id | sed -e 's,",,g')
showports-%: FORCE
@$(SSH) $(HOST_$*) $(SUDO) ovs-ofctl show $(BRIDGE) \
| perl -nle '/(\d+)\(L(.*?)\Q$(SEP)\E(.*?)\):/ && \
print "PORT_".("$$2" eq "$*" ? "$$2_$$3" : "$$3_$$2")."=$$1"'
showports-%: FORCE
@$(SSH) $(HOST_$*) $(SUDO) ovs-ofctl show $(BRIDGE) \
| perl -nle '/(\d+)\(L(.*?)\Q$(SEP)\E(.*?)\):/ && \
print "PORT_".("$$2" eq "$*" ? "$$2_$$3" : "$$3_$$2")."=$$1"'
# should probably replace sshcheck
cache/status.%: FORCE
@echo "=== DB and SWITCH processes on $(call display,$*)"
# should probably replace sshcheck
cache/status.%: FORCE
@echo "=== DB and SWITCH processes on $(call display,$*)"