This repository has been archived by the owner on Jun 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 674
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1921 from /issues/1745-plugin-ps
Make weave script scan veths with prefix 'ethwe' Fixes #1745
- Loading branch information
Showing
2 changed files
with
49 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#! /bin/bash | ||
|
||
. ./config.sh | ||
|
||
C1_NAME=c1.weave.local | ||
|
||
start_suite "Recovery of container details on router restart (via 'local' plugin)" | ||
|
||
weave_on $HOST1 launch | ||
start_container_local_plugin $HOST1 --name=c1 --hostname=$C1_NAME | ||
c1ip=$(container_ip $HOST1 c1) | ||
|
||
weave_on $HOST1 stop-router | ||
weave_on $HOST1 launch-router | ||
|
||
assert "container_ip $HOST1 c1" "$c1ip" | ||
assert "weave_on $HOST1 dns-lookup $C1_NAME" "$c1ip" | ||
|
||
# check that c1 IP has been reclaimed and doesn't get assigned to a | ||
# fresh container | ||
start_container $HOST1 --name=c2 | ||
assert_raises "container_ip $HOST1 c2 | grep -v $c1ip" | ||
|
||
end_suite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters