mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
1399b2430a
shfmt -f selftest/ | xargs shfmt -w -p -i 0 -fn Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
18 lines
443 B
Bash
Executable File
18 lines
443 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# creates a bridge interface (i.e. 'selftest0') that connects together the
|
|
# veth interfaces for the various testenvs
|
|
|
|
br_name=$1
|
|
ip_addr=$2
|
|
ipv6_addr=$3
|
|
|
|
# make sure the loopback is up (needed for pinging between namespaces, etc)
|
|
ip link set dev lo up
|
|
|
|
# create the bridge interface and enable it
|
|
ip link add $br_name type bridge
|
|
ip addr add $ip_addr/24 dev $br_name
|
|
ip addr add $ipv6_addr/112 dev $br_name
|
|
ip link set $br_name up
|