File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 33# Dummy "ip addr show" and "ip link show up" emulator
44
55for arg in " $@ " ; do
6- case " $arg " in
7- link)
8- cat << EOF
6+ case " $arg " in
7+ link)
8+ cat << EOF
991: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
1010 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
11112: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default
1212 link/ether 33:33:33:33:33:33 brd ff:ff:ff:ff:ff:ff link-netnsid 0
1313EOF
14- exit 0
15- ;;
16- addr)
17- cat << EOF
14+ exit 0
15+ ;;
16+ addr)
17+ cat << EOF
18181: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
1919 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2020 inet 127.0.0.1/8 scope host lo
@@ -28,9 +28,9 @@ cat <<EOF
2828 inet6 fe80::000:0000:0000:0000/64 scope link
2929 valid_lft forever preferred_lft forever
3030EOF
31- exit 0
32- ;;
33- esac
31+ exit 0
32+ ;;
33+ esac
3434done
3535
3636exit 1
You can’t perform that action at this time.
0 commit comments