From 4f84d42b511a4c9a79bd835eeca0a80082e76227 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Wed, 8 Jul 2015 21:39:51 +1000 Subject: [PATCH] ctdb-tests: Interface number in "ip link show" stub defaults to 42 It needs to have a default for the standalone case, when it is not run in a loop inside "ip addr show". Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- ctdb/tests/eventscripts/stubs/ip | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctdb/tests/eventscripts/stubs/ip b/ctdb/tests/eventscripts/stubs/ip index 696758b407e..34063d17197 100755 --- a/ctdb/tests/eventscripts/stubs/ip +++ b/ctdb/tests/eventscripts/stubs/ip @@ -66,7 +66,7 @@ ip_link_show () _state="DOWN" _flags="" fi - echo "${n}: ${dev}: mtu 1500 qdisc pfifo_fast state ${_state} qlen 1000" + echo "${n:-42}: ${dev}: mtu 1500 qdisc pfifo_fast state ${_state} qlen 1000" echo " link/ether ${mac} brd ff:ff:ff:ff:ff:ff" } -- 2.11.4.GIT