blob: 699adbcd9b9c621e19d852f7bd9b5f52399df618 [file] [log] [blame] [edit]
#!/bin/sh
source lib/generic.sh
ts_log "[Testing add/del virtual links]"
NEW_DEV="$(rand_dev)"
ts_ip "$0" "Add $NEW_DEV dummy interface" link add dev $NEW_DEV type dummy
ts_ip "$0" "Show $NEW_DEV dummy interface" link show dev $NEW_DEV
test_on "$NEW_DEV"
test_lines_count 2
ts_ip "$0" "Del $NEW_DEV dummy interface" link del dev $NEW_DEV