Commit Graph
4834 Commits
Author SHA1 Message Date
Matthias Radestock 070ec0c0e9 add usage 2014-10-23 18:00:29 +01:00
Matthias Radestock 9cc6f9121e add 'weave start' 2014-10-23 17:55:23 +01:00
Matthias Radestock 041a4c5f6c don't talk about netmasks 2014-10-23 17:50:38 +01:00
Matthias Radestock f037865b82 consistency 2014-10-23 17:27:35 +01:00
Matthias Radestock 7778946f96 be more correct / precise about CIDR notation in usage 2014-10-23 17:25:34 +01:00
Michael Bridgen ad44a8816f Remove subnets from API, since we don't use them 2014-10-23 16:43:41 +01:00
Michael Bridgen 840c0b9f86 Renamed variables for consistency 2014-10-23 16:23:55 +01:00
Matthias Radestock 007f78e07c make 'docker load -i weave.tar' work again
for some reason it started complaining about an unknown ids for me
2014-10-23 12:09:41 +01:00
Bryan Boreham c63b163703 Formatting in error message 2014-10-22 18:27:55 +01:00
Bryan Boreham 94a812d98f Factor out error type checks 2014-10-22 18:24:02 +01:00
Bryan Boreham 0a5990bd6e Factor out testing status checks 2014-10-22 16:59:28 +01:00
Bryan Boreham d84226cc31 Factor out testing error checks 2014-10-22 16:52:35 +01:00
Matthias Radestock eb5548b1c3 move docker-ns 2014-10-22 14:29:18 +01:00
Matthias Radestock b8c308dd09 move weave script 2014-10-22 14:14:33 +01:00
Matthias Radestock 8dd97a07de fix up Makefile to cope with its new location
also various other Makefile tidy-ups
- extract consts for various targets
- mark non-file targets as phony
- use $@ when possible
2014-10-22 14:06:16 +01:00
Matthias Radestock bc02066bdb move Makefile to top-level 2014-10-22 13:36:06 +01:00
Michael Bridgen 156314a802 Complete multicast requests on first response
This is the simplest thing that works, is consistent with what happens
if there's a local answer, and avoids having all multicast requests
last 250ms or more.

Since we're no longer waiting *at least* the timeout period, I've
bumped the multicast response timeout up to half a second.

There was also a bug whereby the query would be entered into the
inflight map even if the socket write had failed (and the channel had
been closed).
2014-10-22 13:35:40 +01:00
Michael Bridgen e21069f3ab Factored out HTTP error + log 2014-10-22 11:58:55 +01:00
Michael Bridgen 1d5a55ea75 Factored out more (but different) err != nil code 2014-10-21 17:06:46 +01:00
Michael Bridgen 0615d122e9 Made zone return errors and http idempotent
The Zone DB tells you if you have a duplicate or missing record, but
the HTTP server smoothes these over.
2014-10-21 17:05:03 +01:00
Michael Bridgen 5c6410a3c6 Refactored indexOf* 2014-10-21 15:49:42 +01:00
Michael Bridgen 23edd79177 Changed Lock to RLock when matching 2014-10-21 14:01:07 +01:00
Michael Bridgen 6eb7d71499 Substituted checkFatal for repeated if err == nil 2014-10-21 13:58:12 +01:00
Michael Bridgen 1a593fc81f Used an init func instead of initialisers
Ends up slightly neater. (Also note Error goes from os.Stdout to
os.Stderr)
2014-10-21 12:25:05 +01:00
Bryan Boreham 10685a495e Set up defaults so it doesn't crash in tests 2014-10-21 11:57:12 +01:00
Bryan Boreham 699b685969 Adjust test to match change in ListenHttp 2014-10-21 11:55:13 +01:00
Bryan Boreham dd27396ce0 Merge remote-tracking branch 'upstream/master' 2014-10-21 10:15:57 +01:00
Michael Bridgen e8f9705211 Updated README re local domain 2014-10-20 18:39:40 +01:00
Michael Bridgen 35c09f37b9 Added logging.go, required by prior changes 2014-10-20 18:27:24 +01:00
Michael Bridgen 55d21d0ec1 Replaced another log.Printf
(in a file I hadn't noticed)
2014-10-20 18:22:25 +01:00
Michael Bridgen 337919d741 Replaced ad-hoc printf with log levels 2014-10-20 18:18:16 +01:00
Michael Bridgen d3d07deec6 Changed local domain handling
1. The local domain is now ".weave.local", which is safer from TLD
 pollution
 2. If the name given for an IP isn't a subdomain of the local domain,
 ignore it
2014-10-20 18:11:14 +01:00
Bryan Boreham 1b0066cc98 Commented on stop-gap data structure 2014-10-20 17:51:00 +01:00
Bryan Boreham bce06d2e9b Wait for interface in main 2014-10-20 17:26:11 +01:00
Bryan Boreham b8a06521c0 Extract interface util functions to their own file 2014-10-20 17:21:35 +01:00
Bryan Boreham 3af058481e Support returning AAAA records from delegated DNS queries 2014-10-20 17:18:17 +01:00
Bryan Boreham 624db7bdff Replace hard-coded 4 with const for channel size 2014-10-20 16:59:39 +01:00
Bryan Boreham b2dc08fd25 forgot to remove 'dns' 2014-10-20 16:00:56 +01:00
Bryan Boreham 9cfb93ab7b Simplified algorithm in checkInFlightQueries() 2014-10-20 15:43:13 +01:00
Bryan Boreham 217e5e921e Extract checkInFlightQueries method 2014-10-20 15:19:11 +01:00
Bryan Boreham 81c5690329 Hoist WriteMsg calls up 2014-10-20 15:00:59 +01:00
Bryan Boreham dcce09de52 Clean up some code-review issues 2014-10-20 14:21:29 +01:00
Bryan Boreham 8e2af9eec5 Tidy up exported/non-exported fields 2014-10-20 12:41:40 +01:00
Michael Bridgen a3cede3027 Tidied up a few printfs 2014-10-17 15:24:51 +01:00
Michael Bridgen 9606628edd Merge pull request #129 from squaremo/use_lxc_docker
Switched to lxc-docker (from docker.io)
2014-10-17 15:16:50 +01:00
Michael Bridgen 380f2eb6b9 Switched to lxc-container (from docker.io)
lxc-docker is the docker-maintained package, which is rather more
current than the Ubuntu one.
2014-10-17 15:14:24 +01:00
Bryan Boreham fe236e95db Work round change in Docker 1.3 where 'Pulling' messages are included in 'docker run' output 2014-10-17 12:38:37 +01:00
Michael Bridgen 9d1f2023b5 Documented the more egregious limitations 2014-10-17 12:29:43 +01:00
Michael Bridgen 8c0c252bf7 Made watch=true the default
It's now left out of the entrypoint arguments, so can be supplied as
an argument when running it.
2014-10-17 11:05:56 +01:00
Michael Bridgen 0eac2e60ed Added README 2014-10-16 17:46:46 +01:00