xref: /third_party/ltp/testcases/network/mpls/mpls03.sh
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/ltp/testcases/network/mpls/
1f08c3bdfSopenharmony_ci#!/bin/sh
2f08c3bdfSopenharmony_ci# SPDX-License-Identifier: GPL-2.0-or-later
3f08c3bdfSopenharmony_ci# Copyright (c) 2018 Oracle and/or its affiliates. All Rights Reserved.
4f08c3bdfSopenharmony_ci
5f08c3bdfSopenharmony_ciTST_SETUP="setup"
6f08c3bdfSopenharmony_ciTST_TESTFUNC="mpls_virt_test"
7f08c3bdfSopenharmony_ciTST_CLEANUP="mpls_virt_cleanup"
8f08c3bdfSopenharmony_ci
9f08c3bdfSopenharmony_cisetup()
10f08c3bdfSopenharmony_ci{
11f08c3bdfSopenharmony_ci	virt_type="gre"
12f08c3bdfSopenharmony_ci	if [ -n "$TST_IPV6" ]; then
13f08c3bdfSopenharmony_ci		tst_kvcmp -lt "4.19" && \
14f08c3bdfSopenharmony_ci			tst_brk TCONF "mpls + ip6gre requires kernel 4.19+"
15f08c3bdfSopenharmony_ci		virt_type="ip6gre"
16f08c3bdfSopenharmony_ci	fi
17f08c3bdfSopenharmony_ci
18f08c3bdfSopenharmony_ci	mpls_virt_setup
19f08c3bdfSopenharmony_ci}
20f08c3bdfSopenharmony_ci
21f08c3bdfSopenharmony_ci. virt_lib.sh
22f08c3bdfSopenharmony_ci. mpls_lib.sh
23f08c3bdfSopenharmony_citst_run
24

Indexes created Thu Nov 07 10:32:03 CST 2024