Bryan Boreham
f11314ed3e
Introduce 'Count' type to avoid abusing 'Offset'
2016-03-19 11:47:34 +00:00
Bryan Boreham
604309fb53
Parse CIDR strings without separating into subnet and address
2016-03-02 17:21:52 -08:00
Bryan Boreham
b76e2a87cf
Store address+subnet prefix for 'owned' addresses
2016-03-02 17:21:24 -08:00
Matthias Radestock
6252871e93
Merge branch '1.4'
2016-02-09 09:30:19 +00:00
Bryan Boreham
9386c01845
Wait for multicast route on any interface, to match weave script
...
which only adds a route if there isn't one already
2016-02-08 14:04:25 +00:00
Bryan Boreham
78f2d82984
Extract function to listen on Unix socket
2016-02-01 10:11:46 +00:00
Matthias Radestock
3679065258
cope with nil route.Dst
...
Fixes #1932 .
2016-01-27 22:02:07 +00:00
Matthias Radestock
43419815f4
bypass netlink.LinkByIndex
...
since we are seeing some cases where it returns "Link not found" when
the link is in fact there.
2016-01-19 16:36:16 +00:00
Matthias Radestock
b5256f7b71
refactor: inline
...
This eliminates the unnecessary indirection via interface names,
instead identifying the interface by its index.
2016-01-19 16:36:16 +00:00
Matthias Radestock
0caa9dd652
cope with errors during route traversal
...
Fixes #1909 .
2016-01-19 15:28:31 +00:00
Bryan Boreham
3b29e8e6f2
Check for existing interfaces and routes after subscribing to receive new ones
2016-01-12 12:27:55 +00:00
Bryan Boreham
e230eeb486
Use upstream netlink code
2015-11-12 13:08:56 +00:00
Bryan Boreham
7b01dd9794
Drop use of interval notation
2015-11-04 16:45:16 +00:00
Bryan Boreham
6fce798164
Factor out deserializeRoute() func
2015-08-27 15:10:31 +01:00
Bryan Boreham
7801dcd849
Factor out common loop receiving from netlink
2015-08-27 15:10:31 +01:00
Bryan Boreham
2eed101a93
In weavewait, wait for the multicast route to be added before calling container entrypoint.
...
We have moved the 'route add' command to the end of 'attach', so this
indicates that all network interface set-up is complete.
2015-08-27 15:10:31 +01:00
Bryan Boreham
6e89b036e2
Wait for ethwe via netlink, not via polling or signals
...
('docker kill' breaks restart policy)
2015-08-27 15:03:41 +01:00
Tom Wilkie
9ab2da8deb
Add GET /name handler to return all dns entries (including tombstones) for debugging.
...
Also, make Address marshall into json as an IP string, not a number.
2015-07-20 12:03:33 +00:00
Bryan Boreham
1f4b943454
More helpful error message when --ip-alloc-range mismatched
2015-07-17 11:42:30 +01:00
Tom Wilkie
8b061fd555
Gossip-based DNS embedded in the router.
...
- Nameserver holds a sorted list of (hostname, peer, container id, ip) tuples.
- Entries are gossiped using topology gossip / broadcast - only new/updated entries
are propogated as expected.
- Entries for a given peer are removed when the connection to the peer is lost.
- Entries are tombstoned when containers die. Tombstones are kept for 10mins,
as they do not need to survive partition, only gossip propagation delay.
2015-07-14 16:00:38 +00:00
Bryan Boreham
6666fd14ac
Allow multiple --ignore-iface arguments
2015-07-07 12:52:29 +01:00
Bryan Boreham
e621aca77e
Added --ignore-iface option to netcheck and use it to ignore weave bridge route
2015-07-07 12:52:29 +01:00
Tom Wilkie
4fdb14293b
Move ipam/address to net/address
2015-07-07 10:33:20 +00:00
Matthias Radestock
8b0089565f
Merge branch '1.0'
2015-07-03 14:18:46 +01:00
Adam Harrison
6097dc8aaa
Add wait forever capability to EnsureInterface
2015-07-03 14:01:34 +01:00
Matthias Radestock
18a4c14670
clarify network/address route overlap error/warning message
...
Closes #1034 .
2015-07-02 11:51:22 +01:00
Bryan Boreham
84238a0262
Amend error message to reflect usage situation
2015-07-01 14:58:42 +01:00
Bryan Boreham
f05225da22
Check specific addresses differently to networks
...
For a network, as used by IPAM, we care if *any* address in the range
could possibly conflict with an existing address routed by the host.
When given a single address, we only care if *that specific address*
conflicts with an existing route.
2015-07-01 12:15:04 +01:00
Paul Bellamy
cdee7a5d6f
Replacing custom testing helpers with testify, where possible
2015-06-17 16:58:03 +01:00
Bryan Boreham
8285046962
Function to check if a network overlaps with existing routes
2015-06-11 17:27:20 +01:00
Matthias Radestock
8dcdf8d314
reduce interface availability check interval
...
in order to reduce container startup times
Closes #710 .
2015-05-28 19:05:09 +01:00
Matthias Radestock
8cb9e301ee
cosmetic: more linting
2015-03-27 01:24:19 +00:00
Michael Bridgen
27beebf5d5
Factor out the wait-for-interface code
2014-11-03 17:47:16 +00:00