xref: /aosp_15_r20/external/ltp/testcases/network/virt/vlan01.sh (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0-or-later
3# Copyright (c) 2018 Petr Vorel <[email protected]>
4# Copyright (c) 2015 Oracle and/or its affiliates. All Rights Reserved.
5# Author: Alexey Kodanev <[email protected]>
6#
7# Local test, check if we can create multiple VLAN interfaces.
8
9p0="protocol 802.1Q"
10p1="protocol 802.1ad"
11lb0="loose_binding off"
12lb1="loose_binding on"
13rh0="reorder_hdr off"
14rh1="reorder_hdr on"
15
16virt_type="vlan"
17
18TST_TEST_DATA=",$p0 $lb0 $rh0,$p0 $lb0 $rh1,$p0 $lb1 $rh0,$p0 $lb1 $rh1,\
19$p1 $lb0 $rh0,$p1 $lb0 $rh1,$p1 $lb1 $rh0,$p1 $lb1 $rh1"
20TST_TEST_DATA_IFS=","
21TST_TESTFUNC=virt_test_01
22
23. virt_lib.sh
24tst_run
25