Bryan Boreham
af3e1b8888
Revert "Resolve name to IP address when removing connected targets"
...
This reverts commit eef311ba69 .
2014-10-10 11:57:34 +01:00
Michael Bridgen
b1b75c4a8a
Moved the server startup code out of main.go
2014-10-10 11:53:21 +01:00
Bryan Boreham
eef311ba69
Resolve name to IP address when removing connected targets
2014-10-10 11:45:10 +01:00
Matthias Radestock
cf9c479727
check that the go stdlib was built with the required options
...
AFAICT, go build tags are a compile-time only construct, so there is
no way to query whether a certain package was built with a specific
tag. However, the 'netgo' tag triggers conditional compilation of the
cgo_stubs.go file, and that file name ends up in the executable. (we
could have looked for specific symbols in the 'net.a' library instead,
but that requires locating it first, which is more hassle than it is
worth)
issue #93
2014-10-09 20:57:56 +01:00
Matthias Radestock
7b02365de8
make dns resolution work in weave container
...
by using go's internal DNS resolver.
NB: this relies on go's std library having been compiled with the
netgo build tag, e.g.
sudo go install -tags netgo -a std
issue #93
2014-10-09 19:33:58 +01:00
Michael Bridgen
d48548b1b7
Included -iface in container args
...
.. since it's now a command line argument, with no default.
2014-10-09 15:17:36 +01:00
Bryan Boreham
65e95cd46a
Factor out channel
2014-10-09 14:46:53 +01:00
Bryan Boreham
17d192caee
Add test for two parallel queries
2014-10-09 14:15:02 +01:00
Bryan Boreham
5b32fa58e6
factor out response checking
2014-10-09 14:11:16 +01:00
Bryan Boreham
d41284f66d
Refactor test setup
2014-10-09 13:08:58 +01:00
Bryan Boreham
0f8932fbcd
Add test for name that we don't know
2014-10-08 17:16:57 +01:00
Bryan Boreham
64e9121e5b
Simple test of http function
2014-10-08 17:00:41 +01:00
Bryan Boreham
eec53d6c4d
Test failure condition
2014-10-08 15:20:12 +01:00
Bryan Boreham
97077339f4
Send back errors for SendQuery
2014-10-08 15:19:30 +01:00
Bryan Boreham
8295ecfe46
Shut down listener when test finished
2014-10-08 14:46:10 +01:00
Bryan Boreham
f30ecb4a48
MDNS Server test
2014-10-08 14:40:38 +01:00
Bryan Boreham
6fc817104e
Shut down client when test finished
2014-10-08 14:40:18 +01:00
Bryan Boreham
3175e64b63
Shut down multicast listener when client is shut down
2014-10-08 14:24:29 +01:00
Bryan Boreham
de94b06e89
Wait for response synchronously
2014-10-08 14:19:31 +01:00
Bryan Boreham
6a60b7b628
Don't need multiplexer
2014-10-08 14:16:13 +01:00
Bryan Boreham
6a9e0bb23f
Shut down minimal server at end of test
2014-10-08 14:14:10 +01:00
Bryan Boreham
dbc77b2943
Don't crash on nil (default) interface
2014-10-08 14:13:05 +01:00
Bryan Boreham
6506b63520
Removed IsInflightQuery that is done by IP address now
2014-10-08 13:49:20 +01:00
Bryan Boreham
d234fe9506
Move handleMDNS into server file
2014-10-08 12:31:20 +01:00
rade
8083779f21
Merge pull request #105 from squaremo/master
...
Added link to weave blog
2014-10-08 12:15:23 +01:00
Michael Bridgen
659e839652
Added link to weave blog
2014-10-08 11:57:51 +01:00
Bryan Boreham
f05191b0ca
Merge remote-tracking branch 'upstream/master'
2014-10-08 11:31:15 +01:00
Bryan Boreham
37924f9f9b
Refactor into separate client and server classes
2014-10-08 11:30:42 +01:00
Bryan Boreham
c3eed5d807
Wait 5 seconds for interface at startup
2014-10-08 09:58:56 +01:00
Bryan Boreham
ddccc29b0e
Static linking
2014-10-08 09:58:28 +01:00
Matthias Radestock
d4a2bc8024
document WEAVE_DOCKER_ARGS
2014-10-07 22:22:21 +01:00
Matthias Radestock
b766ed8a32
make it clearer what $HOST1/2 refer to
...
based on suggestion by @hesco
2014-10-07 22:21:27 +01:00
Matthias Radestock
6d0df649fc
refactor: extract weave docker image name
...
Thanks to @hesco for the suggestion.
2014-10-07 19:32:39 +01:00
Matthias Radestock
764ced41b8
more portable bridge creation
...
using the documented 'ip link add' syntax
Thanks to @hesco for the suggestion.
2014-10-07 19:27:14 +01:00
Michael Bridgen
a228bed744
Marked up API URLs as code
2014-10-07 18:02:00 +01:00
Michael Bridgen
696bb7f43f
Added design sketch
2014-10-07 17:59:07 +01:00
Bryan Boreham
9ec95e4fa8
Unit test
2014-10-07 16:29:58 +01:00
Bryan Boreham
930a6ff939
Remove log message
2014-10-07 16:29:17 +01:00
rade
b82cd8895e
Merge pull request #102 from dpw/makefile-tweaks
...
Makefile tweaks
2014-10-07 14:52:16 +01:00
David Wragg
399af7b0cb
Comment typo fix
2014-10-07 14:43:07 +01:00
Bryan Boreham
8feddc96ed
Merge remote-tracking branch 'upstream/master'
2014-10-07 13:18:34 +01:00
Bryan Boreham
ff6f54488f
Tidy up
2014-10-07 13:18:07 +01:00
Michael Bridgen
e8e86dadc0
Changed to accept a CIDR address and use net.IP
...
* In general we'll have an IP address and a subnet mask for the weave
network address; account for this in the zone DB and in the HTTP
server.
* Use the net.IP type rather than string, which gives us a bit more
generality (in theory it'll deal with Ipv6 too) and validation (we
attempt to parse the input)
2014-10-07 12:49:52 +01:00
Bryan Boreham
a545d2738c
Move timeout to incoming queries
2014-10-07 12:47:18 +01:00
Michael Bridgen
e7ac6dafb3
Made the weave-local domain "weave" a constant
...
Plus some logging on startup
2014-10-07 12:46:59 +01:00
Bryan Boreham
2cab8415f2
Tidy up slightly
2014-10-07 12:10:19 +01:00
Bryan Boreham
a78766524b
Time out mDNS queries
2014-10-07 11:48:56 +01:00
David Wragg
c4c06a2dc0
Don't use /tmp for big files
...
/tmp is on tmpfs on some systems, so it's better to use /var/tmp
for large files.
2014-10-06 19:35:24 +01:00
David Wragg
89fa310c00
Provide a way to bypass the use of sudo
...
It's not necessary to be root to run "docker" commands, if your
user is in the "docker" group.
2014-10-06 19:34:12 +01:00
Bryan Boreham
2d142abd3e
Close channel
2014-10-06 17:57:35 +01:00