Commit Graph
478 Commits
Author SHA1 Message Date
Matthias Radestock 560cbabb54 refactor: simplify 'attach'
Move the interface into the container network NS asap, which
simplifies error handling.
2014-10-24 13:13:34 +01:00
Matthias Radestock de96742935 refactor: remove add_nat_rule
it did too little to be worthwhile
2014-10-24 13:03:28 +01:00
Matthias Radestock 093b23fa83 refactor: it's not an IPADDR but a CIDR 2014-10-24 12:59:47 +01:00
Matthias Radestock 5b6a892c38 refactor: don't extract param to var and shift unless we have to 2014-10-24 12:57:35 +01:00
Matthias Radestock 6501934a15 make with_container_netns take the container as the first arg
and invoke the subsequent command.
This is closer to typical 'with' semantics.
2014-10-24 12:50:29 +01:00
Matthias Radestock 34e240c4a5 remove misleading comment...
attach() and detach() are never invoked directly,
plus it's really not that hard to figure out what they do.
2014-10-24 12:49:04 +01:00
Matthias Radestock 579f3469c8 simplify code for attach 2014-10-24 12:30:42 +01:00
Matthias Radestock 7a53efe66c get error handling right 2014-10-24 11:27:32 +01:00
Matthias Radestock 85787f2d4e fix 'weave start' post rebase 2014-10-24 10:21:02 +01:00
Matthias Radestock 0adda9eae9 drop IP/network from 'weave launch'
plus a whole bunch of other small changes to weave script which I'll
eventually extract into separate commits.
2014-10-24 10:19:22 +01:00
Bryan Boreham ced7299140 Removed weave ps -v option 2014-10-24 10:14:32 +01:00
Bryan Boreham e4fe57a02c Make extra container information optional 2014-10-24 10:14:32 +01:00
Bryan Boreham f7eeb1f844 Fix issues raised in code review 2014-10-24 10:14:32 +01:00
Bryan Boreham 06adae8fb5 Added weave ps command 2014-10-24 10:14:32 +01:00
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 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
Matthias Radestock b8c308dd09 move weave script 2014-10-22 14:14:33 +01:00
Matthias Radestock 6320866961 rename exe to 'weaver' and script to 'weave' 2014-08-21 16:05:17 +01:00
Matthias Radestock a6f66d49b2 gitignore pipework 2014-08-21 13:05:27 +01:00
Matthias Radestock 01aa187494 s/$@/"$@"/g 2014-08-21 09:05:07 +01:00
Matthias Radestock 2daa5f7d6f permit running 'wedo' without script installation 2014-08-21 08:59:11 +01:00
Matthias Radestock 1ef941e77e capture and inject on the same pcap handle
...since there's no need to have separate handles

Also, make router.Start() perform all startup, including starting a
sniffer goroutine. The main goroutine is now kept alive by the signal
handling loop.
2014-08-19 15:47:09 +01:00
Matthias Radestock 31166023b2 rename interface 2014-08-19 11:55:15 +01:00
Matthias Radestock f762783fd9 fix the first octet of the generated MAC
so we don't accidentally create multi-cast addresses, or addresses
that claim to be vendor-assigned
2014-08-19 11:18:27 +01:00
Matthias Radestock aeef0d7343 git-ignore compile output 2014-08-18 18:02:28 +01:00
Matthias Radestock e6feefa1fc initial commit 2014-08-18 17:55:26 +01:00