libnetwork support for docker on Solaris#1225
Conversation
dcda412 to
a290451
Compare
5dc5646 to
674d94c
Compare
f33120e to
24257e4
Compare
98c7882 to
c69fbda
Compare
fbf377b to
b96065c
Compare
3486790 to
b96065c
Compare
b96065c to
634da10
Compare
|
@aboch: Thanks for comments. Incorporated them and updated the branch. |
drivers/solaris/bridge/bridge.go
Outdated
| func (d *driver) createNetwork(config *networkConfiguration) error { | ||
| var err error | ||
|
|
||
| fmt.Println("Creating bridge network:", config.ID, |
There was a problem hiding this comment.
I think you can now replace the print calls with logrus ones.
|
A considerable amount of code is a duplicate from the current bridge driver implementation. |
e61a191 to
7d0499e
Compare
|
@aboch .. thanks for the comments. Re-synced the branch and replaced fmt.Printlns with logrus. I agree about the code duplication and had the same train of thought going ahead. |
670b903 to
192d69c
Compare
|
@aboch ... Can you please have a look if the PR needs anything else to merge ? |
|
LGTM again ping @mavenugo |
192d69c to
a134e79
Compare
|
@puneetpruthi IT is failing :( .... can you please rebase to the latest libnetwork which has the updated fix for the CI issue. |
a134e79 to
805089e
Compare
|
@mavenugo ... resynced and resolved the issues.. |
| return New(cfgOptions...) | ||
| } | ||
|
|
||
| func TestBoltdbBackend(t *testing.T) { |
There was a problem hiding this comment.
Curious to know why is this removed for solaris platform ?
There was a problem hiding this comment.
@mavenugo ... libnetwork on Solaris does not support 'host' networking used by this test.
| return nil | ||
| } | ||
|
|
||
| func (d *driver) RevokeExternalConnectivity(nid, eid string) error { |
There was a problem hiding this comment.
@aboch can u pls take a closer look at this API not being handled ?
There was a problem hiding this comment.
Did not notice the programExternalConenctivity() is implemented and the revoke is not.
@puneetpruthi I know this PR has been open for long time and you kept on improving it, has the above asymmetry always been there ? Can you call the counterpart removePFRule() in RevokeExternalConnectivity as long with the releasePorts().
There was a problem hiding this comment.
Thanks @puneetpruthi . pls get this comment addressed and I dont have any more comments
There was a problem hiding this comment.
Thanks @mavenugo .... added another commit with the changes.
|
|
||
| // NewSandbox provides a new sandbox instance created in an os specific way | ||
| // provided a key which uniquely identifies the sandbox | ||
| func NewSandbox(key string, osCreate, isRestore bool) (Sandbox, error) { |
There was a problem hiding this comment.
@mrjana could you pls chime in on the implications of not implementing the NewSandbox API ?
I know some other platforms also take this route. But am curious here because I dont have a way currently to verify this change.
There was a problem hiding this comment.
Yeah it's fine. Ideally we want every OS to implement this api but I understand that can be difficult to achieve in other OSes. But without being able to do this I am not sure how multiple networks can be attached to a container so that is an open question.
41441af to
f15210c
Compare
|
@puneetpruthi can u pls squash the changes ? |
f15210c to
566903d
Compare
Signed-off-by: Puneet Pruthi <puneetpruthi@gmail.com>
|
@mavenugo ... done. |
|
Thanks @mavenugo ! |
This PR is targeting to add following libnetwork support for docker on Solaris:
What this PR does not add support for:
The code changes for this PR are stable and open to review. The PR has been tested on Linux as well.
TODO:
Signed-off-by: Puneet Pruthi puneetpruthi@gmail.com