cc3ad26691
Incorporate Casey's comments
2018-07-27 12:47:28 +09:00
4b296ba330
bridge: add random datadir to all testcases
2018-07-26 21:09:30 -05:00
6dc16b9132
plugins/ipam/static: Update docstring
2018-07-19 14:35:10 +02:00
f970542036
Merge pull request #173 from sak0/pr
...
remove duplicated assginment.
2018-07-11 16:32:59 +01:00
3b3622db67
Incorporate jellonek's comments.
2018-07-06 13:17:22 +09:00
dc899ac0e0
remove duplicated assginment.
...
Signed-off-by: CuiHaozhi <61755280@qq.com >
2018-07-05 09:21:09 +08:00
7571169160
Fix tc-tbf burst value in bytes.
2018-07-03 18:36:49 +08:00
b2fc336833
plugins/host-local: ensure subnet is a network address
...
Allocation code assumes the specified subnet is a clean network address
prefix, so check that is the case and throw an error otherwise
Fixes #161
2018-06-18 10:13:34 +01:00
6da1cb7876
Support CNI_ARGS in static IPAM plugin
...
This change is to add CNI_ARGS support in static IPAM plugin.
When IP/SUBNET/GATEWAY are given in CNI_ARGS, static IPAM adds
these info in addition to config files.
To configure ip address only from CNI_ARGS, 'address' field in config
is changed to optional from required.
2018-06-18 16:18:47 +09:00
68b4efb405
plugins/* stub-out GET functions so plugins build with v0.7
2018-06-15 15:28:53 +02:00
475fdb8a0a
plugins/dhcp: update to new go-systemd
2018-05-28 12:35:04 +00:00
1d973f59d2
Merge pull request #147 from databus23/host-device-fix
...
host-device: Ensure device is down before rename
2018-05-16 10:54:47 -05:00
731298003c
plugins/testutils: pass CNI_CONTAINERID to plugins in testcases
...
Recent CNI specification changes require the container ID on ADD/DEL,
which the testcases were not providing. Fix that up so things work
when this repo gets CNI revendored.
2018-04-26 11:24:30 -05:00
eb410208cb
host-device: Ensure device is down before rename
...
If the device is in state up trying to set the name fails with "device or resource busy"
2018-04-25 20:39:23 +02:00
1df359a210
Merge pull request #144 from squeed/build-fixes
...
build: some small improvements; bump to go1.10
2018-04-25 10:41:32 -05:00
adba9ec16e
Merge pull request #138 from m1093782566/runtime-config
...
traffic shaping: take configuration via a runtimeConfig
2018-04-25 17:09:41 +02:00
4a0971bcd8
update integration test configlist
2018-04-19 10:08:25 +08:00
7cf02869ec
traffic shaping: take configuration via a runtimeConfig
2018-04-13 10:57:17 +08:00
aade7b93ee
build: some small improvements; bump to go1.10
...
- bump to go 1.10
- Add a linker tag with the build version
- Remove fastbuild, go builds are cached now
- Use better ginkgo suite names
2018-04-12 16:59:51 +02:00
bb1e8d10a7
Merge pull request #143 from containernetworking/v0.7
...
Merge v0.7.1 fix into master
2018-04-12 09:21:42 -05:00
0dba9daee0
Merge pull request #136 from s1061123/add_static
...
plugins: add static CNI plugin
2018-04-12 06:34:52 -05:00
e4f13535ab
Merge pull request #131 from squeed/no-delete-ns
...
pkg/ns: remove namespace creation (and move to testutils)
2018-04-11 13:32:32 -05:00
26dafaa097
plugins/ptp: test for valid data in Interfaces field
2018-04-11 15:19:20 +02:00
13e6a4b2ba
plugins/bridge: Make stricter assertions about the return data
2018-04-11 15:10:39 +02:00
a0eac8d7d9
pkg/ns: remove namespace creation (and move to testutils)
...
Namespace creation had an unergonomic interface and isn't used, except
for testing code. Remove it; downstream users should really be creating
their own namespaces
2018-04-03 18:56:25 +02:00
263ff063a6
Add static CNI plugin
...
This changes to add 'static' CNI plugin, which provides to assign
IPv4/v6 address statically from given config file. See README.md
for the details.
2018-03-29 14:10:04 +09:00
e590fca5ae
Merge pull request #130 from jingax10/fix_typo_branch
...
Fix a typo in PTP plugin comment, i.e., s/IFF_POINTOPONT/IFF_POINTTOPOINT.
2018-03-21 08:28:55 -05:00
00fbba085e
Fix a typo s/IFF_POINTOPONT/IFF_POINTTOPOINT.
2018-03-15 22:47:54 -07:00
fe0cf201f8
Safely print error
...
Format plugin code
Signed-off-by: Aidan Obley <aobley@pivotal.io >
2018-03-12 15:53:23 -07:00
d2f6472474
Ensure the bandwith plugin chooses the host veth device
...
When chained with a plugin that returns multiple devices, the bandwidth
plugin chooses the host veth device.
Signed-off-by: Tyler Schultz <tschultz@pivotal.io >
2018-03-12 15:08:53 -07:00
90252c30fb
meta/bandwidth: package main so we can build a binary
2018-02-27 22:24:26 -08:00
59fa37252f
meta/bandwidth: group and sort imports
...
ref: https://github.com/golang/go/wiki/CodeReviewComments#imports
2018-02-27 20:47:42 -08:00
dce91d11d6
meta/bandwidth: remove boilerplate comments
2018-02-27 20:47:41 -08:00
b78e535055
plugins/meta/bandwith: traffic shaping plugin
...
Add chained plugin to add a tbf qdisc to shape ingress/egress traffic
2018-02-27 20:47:41 -08:00
372bb5e826
Merge pull request #119 from jzwlqx/master
...
dhcp: clean duplicated error message
2018-02-21 11:09:15 -06:00
69cc860821
bridge test: fix go vet error
2018-02-17 18:51:41 -08:00
fdc602c0f0
clean duplicated error message
2018-02-12 16:47:53 +08:00
596480eadc
dhcp: remove leases when they are released
...
Don't lock around the Stop() operation though, as that may take
a while and block other operations. That may mean we call Stop()
multiple times, but the Lease object should handle that correctly
itself.
2018-02-08 11:17:38 -06:00
61c3c42107
dhcp: don't try to close the lease stop channel multiple times
...
Fixes: https://github.com/containernetworking/plugins/issues/105
2018-02-08 11:17:38 -06:00
b522ed6aae
plugins/dhcp: add testcase
2018-02-08 11:17:38 -06:00
e2f063b534
Merge pull request #88 from lyft/ipvlan-master-intf-ipam
...
ipvlan: support enslaving an interface returned by ipam
2018-01-31 17:17:13 +01:00
9e5836047c
Merge pull request #104 from mzahorik/master
...
Append default route and process route options in compliance with RFC 3442
2018-01-31 15:08:57 +01:00
808d4e20ae
Append a default route to the CNI reply if there's a gateway advertised.
...
Classless static routes (DHCP option 121) are now processed first.
If CSRs exist, static routes (DHCP option 33) and the gateway default
route are ignored as per RFC 3442.
2018-01-26 10:06:26 -05:00
3468364f7e
Merge branch 'master' into ipvlan-master-intf-ipam
2018-01-25 15:06:06 -08:00
412b6d3128
Merge pull request #111 from s1061123/add_procfsprefx
...
Add -hostprefix in DHCP daemon to run the daemon as container
2018-01-25 12:00:51 +01:00
9604565b22
Add -hostprefix in DHCP daemon to run the daemon as container
...
This diff adds -hostprefix option in dhcp daemon. This option
could be used to run dhcp daemon as container because container
cannot touch host's netns directly. The diff changes dhcp daemon
to touch procfs mounted to another path, like '/hostfs/proc'.
2018-01-25 02:00:43 +09:00
2a0736c748
Merge pull request #97 from oilbeater/fix/link-leak
...
delete link and ip if err when cmdAdd to avoid resource leak.
2018-01-24 16:38:44 +00:00
2eba56ad52
Merge pull request #100 from squeed/range-arg
...
ipam/host-local: Accept ip ranges as a runtime argument
2018-01-24 15:45:39 +01:00
c42470bc79
Merge pull request #110 from dcbw/host-device-honor-ifname
...
host-device: respect CNI_IFNAME/args.IfName
2018-01-19 19:05:29 +01:00
ffc591e242
host-device: respect CNI_IFNAME/args.IfName
...
On ADD save the host device's name into its IFLA_ALIAS property and
rename the device to the requested CNI_IFNAME inside the container
to conform to the CNI specification. On DEL rename the device to
the original name and move it back into the host namespace.
2018-01-17 14:30:22 -06:00