-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathdocker_cmds
More file actions
31 lines (23 loc) · 766 Bytes
/
docker_cmds
File metadata and controls
31 lines (23 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
export PYTHONPATH=/home/fge/Source/nmstate
cat > /usr/bin/nmstatectl << "END"
#!/usr/bin/python3
import sys
sys.path.append('/home/fge/Source/nmstate')
import nmstatectl.nmstatectl
sys.exit(nmstatectl.nmstatectl.main())
END
chmod +x /usr/bin/nmstatectl
ln -s /usr/bin/nmstatectl /usr/bin/ncl
ip netns add tmp
ip link add eth1 type veth peer name eth1peer
ip link add eth2 type veth peer name eth2peer
ip link set eth1 up
ip link set eth2 up
ip link set eth1peer netns tmp
ip link set eth2peer netns tmp
ip netns exec tmp ip link set eth1peer up
ip netns exec tmp ip link set eth2peer up
nmcli device set eth1 managed yes
nmcli device set eth2 managed yes
alias pt='pytest --log-level=DEBUG --verbose --verbose'
cd /home/fge/Source/nmstate/tests/integration/