backing up
[vsorcdistro/.git] / ryu / build / lib.linux-armv7l-2.7 / ryu / tests / integrated / test_vrrp_linux_multi.sh
1 #! /bin/sh
2
3 # Copyright (C) 2013 Nippon Telegraph and Telephone Corporation.
4 # Copyright (C) 2013 YAMAMOTO Takashi <yamamoto at valinux co jp>
5 #
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
9 #
10 #    http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
15 # implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
18
19 ip link add veth0 type veth peer name veth0-br
20 ip link add veth1 type veth peer name veth1-br
21 ip link add veth2 type veth peer name veth2-br
22
23 brctl addbr vrrpbr
24 brctl addif vrrpbr veth0-br
25 brctl addif vrrpbr veth1-br
26 brctl addif vrrpbr veth2-br
27
28 ip link set veth0 up
29 ip link set veth0-br up
30 ip link set veth1 up
31 ip link set veth1-br up
32 ip link set veth2 up
33 ip link set veth2-br up
34 ip link set vrrpbr up