Lines Matching refs:state
25 local state=$1; shift
29 [ "$current" == "$state" ]
47 local state=$2
50 busywait "$timeout" until_lc_state_is_not "$state" lc_state_get "$lc"
56 local state=$2
59 busywait "$timeout" until_lc_state_is "$state" lc_state_get "$lc"
101 local state
103 state=$(lc_state_get $lc)
105 if [[ "$state" == "unprovisioned" ]]; then
114 state=$(lc_wait_until_state_changes $lc "unprovisioning" \
118 [ "$state" == "unprovisioned" ]
119 check_err $? "Failed to unprovision linecard $lc (state=$state)"
126 local state
133 state=$(lc_wait_until_state_changes $lc "provisioning" \
137 [ "$state" == "provisioned" ] || [ "$state" == "active" ]
138 check_err $? "Failed to provision linecard $lc (state=$state)"
146 state=$(lc_wait_until_state_becomes $lc "active" \
223 local state
228 state=$(lc_state_get $lc)
230 if [[ "$state" != "unprovisioned" ]]; then
277 local state
285 state=$(lc_wait_until_state_becomes $lc "active" \