Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
Snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
brb committed Jun 7, 2016
1 parent 607382e commit 44eec32
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
5 changes: 0 additions & 5 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,9 @@

# Urgent

* Check whether reset is not async

* Add the subnet checks / keep checksum offloading for the plugin
* Test with the plugin

* Simplify / get rid of some tests
* Document ipam/tracker/awsvpc.go

* Test with multiple addr from the default subnet

* Create new SSH keys or reuse the same for each test run
Expand Down
1 change: 1 addition & 0 deletions plugin/net/cni.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ func (c *CNIPlugin) CmdAdd(args *skel.CmdArgs) error {
if conf.IPAM.Type == "" {
result, err = ipamplugin.NewIpam(c.weave).Allocate(args)
} else {
// TODO(mp) check isAWSVPC !
result, err = ipam.ExecAdd(conf.IPAM.Type, args.StdinData)
}
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion plugin/net/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ func (driver *driver) GetCapabilities() (*api.GetCapabilityResponse, error) {
}

func (driver *driver) CreateNetwork(create *api.CreateNetworkRequest) error {
// TODO(mp) shall we / how can we check that the network is using weave's IPAM?
// TODO(mp) DRY
// In a case of an error, we skip applying necessary steps for AWSVPC, because
// "attach" should work without the weave router running.
Expand All @@ -83,7 +84,6 @@ func (driver *driver) CreateNetwork(create *api.CreateNetworkRequest) error {
}
}

// TODO(mp) create contains IPAM, check that is belongs to the same subnet
driver.logReq("CreateNetwork", create, create.NetworkID)
_, err := driver.setupNetworkInfo(create.NetworkID, stringOptions(create))
return err
Expand Down

0 comments on commit 44eec32

Please sign in to comment.