xref: /aosp_15_r20/external/ltp/testcases/network/virt/vlan02.sh (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1*49cdfc7eSAndroid Build Coastguard Worker#!/bin/sh
2*49cdfc7eSAndroid Build Coastguard Worker# SPDX-License-Identifier: GPL-2.0-or-later
3*49cdfc7eSAndroid Build Coastguard Worker# Copyright (c) 2018 Petr Vorel <[email protected]>
4*49cdfc7eSAndroid Build Coastguard Worker# Copyright (c) 2015 Oracle and/or its affiliates. All Rights Reserved.
5*49cdfc7eSAndroid Build Coastguard Worker# Author: Alexey Kodanev <[email protected]>
6*49cdfc7eSAndroid Build Coastguard Worker#
7*49cdfc7eSAndroid Build Coastguard Worker# Local test, check if we can create and then delete VLAN
8*49cdfc7eSAndroid Build Coastguard Worker# interface 4095 times.
9*49cdfc7eSAndroid Build Coastguard Worker
10*49cdfc7eSAndroid Build Coastguard Workervirt_type="vlan"
11*49cdfc7eSAndroid Build Coastguard Worker
12*49cdfc7eSAndroid Build Coastguard WorkerTST_TESTFUNC=do_test
13*49cdfc7eSAndroid Build Coastguard Worker
14*49cdfc7eSAndroid Build Coastguard Workerdo_test()
15*49cdfc7eSAndroid Build Coastguard Worker{
16*49cdfc7eSAndroid Build Coastguard Worker	virt_add_delete_test "id 4094"
17*49cdfc7eSAndroid Build Coastguard Worker}
18*49cdfc7eSAndroid Build Coastguard Worker
19*49cdfc7eSAndroid Build Coastguard Worker. virt_lib.sh
20*49cdfc7eSAndroid Build Coastguard Workertst_run
21