Commit Graph
1674 Commits
Author SHA1 Message Date
Matthias Radestock d1de3eac3e log something when we drop a UDP packet 2014-10-15 15:56:23 +01:00
Matthias Radestock 5acefd5d23 refactor: reduce indent 2014-10-15 15:55:44 +01:00
Matthias Radestock 4ffd15206b remove outdated comment 2014-10-15 15:41:29 +01:00
rade c8a5bcc793 Merge pull request #121 from squaremo/vagrant_dev
A Vagrant file for developing on other-than-Linux

Closes #119.
2014-10-15 15:28:45 +01:00
Matthias Radestock a587fef9c4 fix package name following move 2014-10-15 15:20:49 +01:00
Matthias Radestock e2fd1fda31 move router code 2014-10-15 15:07:42 +01:00
Michael Bridgen 4c7fb5ce91 Added hook for local vagrant config
If there's a file Vagrantfile.local, run that too. This can be used to
e.g., add the weavedns directory as a synced folder too.
2014-10-15 00:32:06 +01:00
Michael Bridgen 5f824e3bfd Added minimal vagrantfile
This makes an Ubuntu-based vagrant image that has
 - docker installed
 - go tools installed
 - weave dependencies installed
 - $GOPATH set to ~
 - the local working directory mapped as a synced folder into the
   right place in $GOPATH

So one should be able to

    $ vagrant up
    $ vagrant ssh
    vagrant$ cd src/github.com/zettio/weave
    vagrant$ make -C weaver
2014-10-14 18:45:22 +01:00
Bryan Boreham 6e3e7dcd68 Support DELETE function 2014-10-14 17:01:13 +01:00
Bryan Boreham 11ec66111a Check duplicate add 2014-10-14 17:00:14 +01:00
Bryan Boreham 4709f852c3 Better error reporting 2014-10-14 16:59:00 +01:00
Bryan Boreham 6d32ac80b7 Better error reporting 2014-10-14 16:50:20 +01:00
Bryan Boreham ff540265a9 Better error-checking 2014-10-14 16:49:27 +01:00
Bryan Boreham 10772f8289 Better error-checking 2014-10-14 16:12:50 +01:00
Bryan Boreham bc87c7c94b Initial Zone tests 2014-10-14 16:06:25 +01:00
Bryan Boreham 8ebc06315c Detect duplicate add 2014-10-14 16:06:08 +01:00
rade 0f364f7e47 Merge pull request #114 from squaremo/decimate_readme
Remove content duplicated in gh-pages site

Addresses part of issue #86.
2014-10-14 15:35:32 +01:00
Bryan Boreham 9bd464a003 Make putForm more generic 2014-10-14 15:23:20 +01:00
Bryan Boreham 7f6e0a1e42 Make error message more helpful 2014-10-14 15:19:20 +01:00
Bryan Boreham 36fa3cca73 Tidy up 2014-10-14 14:12:42 +01:00
Bryan Boreham 6bff651e87 Changed to new URL scheme with container identifier
Implementation matches design.md better:
 - http action changes from POST /add to PUT /name
 - each record now has the container identifier
2014-10-14 11:55:45 +01:00
Michael Bridgen 16732c9e0c Changed payload format
We need the docker (host network) IP, and the FQDN rather than just the domain.
2014-10-13 16:32:59 +01:00
Michael Bridgen 5935159d9d Removed cross-compilation bobbins
Cross-compilation isn't working, and it's misleading to suggest it
does by having these here.
2014-10-13 15:43:38 +01:00
Michael Bridgen e294269393 Features link here too 2014-10-13 10:13:04 +01:00
Matthias Radestock 32a7975777 make it clearer in usage message that subnet is specified as CIDR
See issue #116
2014-10-11 03:59:48 +01:00
Matthias Radestock 0e4a30c9ee refactor: 'ip addr list' -> '... show'
Since the man page only mentions the latter
2014-10-11 03:50:56 +01:00
Bryan Boreham 50d343e2fb Use specified port for http listener 2014-10-10 17:36:46 +01:00
Bryan Boreham 03cd04249c Check number of results received 2014-10-10 17:36:23 +01:00
Bryan Boreham be3d089410 Shorten mDNS timeout 2014-10-10 17:14:39 +01:00
Bryan Boreham ed6c7cb784 Concatenate multiple replies received over mDNS 2014-10-10 17:14:06 +01:00
Bryan Boreham 8521fdea0e Reply with array of addresses for delegated query 2014-10-10 16:31:09 +01:00
Bryan Boreham b5214f65e7 Forward DNS requests that aren't for our 'weave' domain 2014-10-10 15:41:09 +01:00
Bryan Boreham de65dc7996 Move usage of mdnsClient after initialization 2014-10-10 15:34:54 +01:00
Michael Bridgen bfe1b27ee8 Added links to docs on gh-pages site 2014-10-10 15:30:52 +01:00
Michael Bridgen 35ee71097a Took out things that will appear in the gh-pages site 2014-10-10 15:25:30 +01:00
Bryan Boreham c384bee226 Add -tags netgo 2014-10-10 14:27:52 +01:00
Bryan Boreham f79496ddcb Merge pull request #111 from zettio/93_fqdn_peers
permit peers to be specified by name - fixes #93
2014-10-10 12:43:58 +01:00
Bryan Boreham 61ce4d36e5 Change README to say that hostnames are allowed on the commandline 2014-10-10 12:42:37 +01:00
Bryan Boreham 8de22f4bf1 reformat 2014-10-10 12:28:52 +01:00
Bryan Boreham be39cb01bd Resolve peer names to IP address at startup 2014-10-10 12:22:01 +01:00
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