selftests: net: forwarding: lib: Drop lldpad_app_wait_set(), _del()
The existing users of these helpers have been converted to iproute2 dcb. Drop the helpers. Signed-off-by: Petr Machata <petrm@nvidia.com> Reviewed-by: Danielle Ratson <danieller@nvidia.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
5b3ef0452c
commit
bd32ff6872
|
@ -524,27 +524,6 @@ cmd_jq()
|
|||
[ ! -z "$output" ]
|
||||
}
|
||||
|
||||
lldpad_app_wait_set()
|
||||
{
|
||||
local dev=$1; shift
|
||||
|
||||
while lldptool -t -i $dev -V APP -c app | grep -Eq "pending|unknown"; do
|
||||
echo "$dev: waiting for lldpad to push pending APP updates"
|
||||
sleep 5
|
||||
done
|
||||
}
|
||||
|
||||
lldpad_app_wait_del()
|
||||
{
|
||||
# Give lldpad a chance to push down the changes. If the device is downed
|
||||
# too soon, the updates will be left pending. However, they will have
|
||||
# been struck off the lldpad's DB already, so we won't be able to tell
|
||||
# they are pending. Then on next test iteration this would cause
|
||||
# weirdness as newly-added APP rules conflict with the old ones,
|
||||
# sometimes getting stuck in an "unknown" state.
|
||||
sleep 5
|
||||
}
|
||||
|
||||
pre_cleanup()
|
||||
{
|
||||
if [ "${PAUSE_ON_CLEANUP}" = "yes" ]; then
|
||||
|
|
Loading…
Reference in New Issue