1#!/bin/sh 2 3. lib/generic.sh 4 5ts_log "[Testing add/del virtual links]" 6 7NEW_DEV="$(rand_dev)" 8 9ts_ip "$0" "Add $NEW_DEV dummy interface" link add dev $NEW_DEV type dummy 10 11ts_ip "$0" "Show $NEW_DEV dummy interface" link show dev $NEW_DEV 12test_on "$NEW_DEV" 13test_lines_count 2 14 15ts_ip "$0" "Del $NEW_DEV dummy interface" link del dev $NEW_DEV 16