cosmetic: vertical alignment and consistency for better readability

This commit is contained in:
Matthias Radestock committed 2015-06-18 16:26:16 +01:00
1 parent 54b3061c50
commit d1e4a8ec8a
1 file changed
+12 -12
+12 -12
View File
@@ -50,19 +50,19 @@ weave_on $HOST1 launch -debug -iprange 10.2.3.0/24
launch_dns_on $HOST1 10.254.254.254/24 launch_dns_on $HOST1 10.254.254.254/24
# Run container with three cidrs # Run container with three cidrs
CID=$(start_container $HOST1 ip:10.2.1.1/24 10.2.2.1/24 net:10.2.3.0/24 --name=multicidr -h $NAME | cut -b 1-12) CID=$(start_container $HOST1 10.2.1.1/24 ip:10.2.2.1/24 net:10.2.3.0/24 --name=multicidr -h $NAME | cut -b 1-12)
assert_container_cidrs $HOST1 $CID 10.2.1.1/24 10.2.2.1/24 10.2.3.1/24 assert_container_cidrs $HOST1 $CID 10.2.1.1/24 10.2.2.1/24 10.2.3.1/24
assert_zone_records $HOST1 $CID $NAME. 10.2.1.1 10.2.2.1 10.2.3.1 assert_zone_records $HOST1 $CID $NAME. 10.2.1.1 10.2.2.1 10.2.3.1
# Remove two of them # Remove two of them
weave_on $HOST1 detach 10.2.1.1/24 net:10.2.3.0/24 $CID weave_on $HOST1 detach ip:10.2.2.1/24 net:10.2.3.0/24 $CID
assert_container_cidrs $HOST1 $CID 10.2.2.1/24 assert_container_cidrs $HOST1 $CID 10.2.1.1/24
assert_zone_records $HOST1 $CID $NAME. 10.2.2.1 assert_zone_records $HOST1 $CID $NAME. 10.2.1.1
# Put them both back # Put them both back
weave_on $HOST1 attach ip:10.2.1.1/24 net:10.2.3.0/24 $CID weave_on $HOST1 attach ip:10.2.2.1/24 net:10.2.3.0/24 $CID
assert_container_cidrs $HOST1 $CID 10.2.2.1/24 10.2.1.1/24 10.2.3.1/24 assert_container_cidrs $HOST1 $CID 10.2.1.1/24 10.2.2.1/24 10.2.3.1/24
assert_zone_records $HOST1 $CID $NAME. 10.2.2.1 10.2.1.1 10.2.3.1 assert_zone_records $HOST1 $CID $NAME. 10.2.1.1 10.2.2.1 10.2.3.1
# Stop the container, restart with three IPs # Stop the container, restart with three IPs
docker_on $HOST1 stop $CID docker_on $HOST1 stop $CID
@@ -70,13 +70,13 @@ weave_on $HOST1 start 10.2.1.1/24 ip:10.2.2.1/24 net:10.2.3.0/24 $CID
assert_container_cidrs $HOST1 $CID 10.2.1.1/24 10.2.2.1/24 10.2.3.1/24 assert_container_cidrs $HOST1 $CID 10.2.1.1/24 10.2.2.1/24 10.2.3.1/24
assert_zone_records $HOST1 $CID $NAME. 10.2.1.1 10.2.2.1 10.2.3.1 assert_zone_records $HOST1 $CID $NAME. 10.2.1.1 10.2.2.1 10.2.3.1
# Expose some cidrs # Expose three cidrs
weave_on $HOST1 expose 10.2.1.2/24 10.2.2.2/24 net:10.2.3.0/24 weave_on $HOST1 expose 10.2.1.2/24 ip:10.2.2.2/24 net:10.2.3.0/24
assert_bridge_cidrs $HOST1 weave 10.2.1.2/24 10.2.2.2/24 10.2.3.2/24 assert_bridge_cidrs $HOST1 weave 10.2.1.2/24 10.2.2.2/24 10.2.3.2/24
# Hide some cidrs # Hide two of them
weave_on $HOST1 hide 10.2.1.2/24 net:10.2.3.0/24 weave_on $HOST1 hide ip:10.2.2.2/24 net:10.2.3.0/24
assert_bridge_cidrs $HOST1 weave 10.2.2.2/24 assert_bridge_cidrs $HOST1 weave 10.2.1.2/24
# Now detach and run another container to check we have released IPs in IPAM # Now detach and run another container to check we have released IPs in IPAM
weave_on $HOST1 detach $CID weave_on $HOST1 detach $CID